Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/linux/arch/x86/crypto/
A Dsm4_aesni_avx_glue.c49 while ((nbytes = walk.nbytes) > 0) { in ecb_do_crypt()
103 while ((nbytes = walk.nbytes) > 0) { in sm4_cbc_encrypt()
137 while ((nbytes = walk.nbytes) > 0) { in sm4_avx_cbc_decrypt()
201 while ((nbytes = walk.nbytes) > 0) { in sm4_cfb_encrypt()
219 if (walk.nbytes == walk.total && nbytes > 0) { in sm4_cfb_encrypt()
222 nbytes = 0; in sm4_cfb_encrypt()
243 while ((nbytes = walk.nbytes) > 0) { in sm4_avx_cfb_decrypt()
280 if (walk.nbytes == walk.total && nbytes > 0) { in sm4_avx_cfb_decrypt()
285 nbytes = 0; in sm4_avx_cfb_decrypt()
312 while ((nbytes = walk.nbytes) > 0) { in sm4_avx_ctr_crypt()
[all …]
A Dblowfish_glue.c82 while ((nbytes = walk.nbytes)) { in ecb_crypt()
106 nbytes -= bsize; in ecb_crypt()
130 unsigned int nbytes = walk->nbytes; in __cbc_encrypt() local
142 nbytes -= bsize; in __cbc_encrypt()
146 return nbytes; in __cbc_encrypt()
159 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
171 unsigned int nbytes = walk->nbytes; in __cbc_decrypt() local
200 nbytes -= bsize; in __cbc_decrypt()
214 nbytes -= bsize; in __cbc_decrypt()
227 return nbytes; in __cbc_decrypt()
[all …]
A Ddes3_ede_glue.c83 while ((nbytes = walk.nbytes)) { in ecb_crypt()
108 nbytes -= bsize; in ecb_crypt()
138 unsigned int nbytes = walk->nbytes; in __cbc_encrypt() local
150 nbytes -= bsize; in __cbc_encrypt()
154 return nbytes; in __cbc_encrypt()
167 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
179 unsigned int nbytes = walk->nbytes; in __cbc_decrypt() local
206 nbytes -= bsize; in __cbc_decrypt()
220 nbytes -= bsize; in __cbc_decrypt()
233 return nbytes; in __cbc_decrypt()
[all …]
A Daesni-intel_glue.c288 while ((nbytes = walk.nbytes)) { in ecb_encrypt()
310 while ((nbytes = walk.nbytes)) { in ecb_decrypt()
332 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
354 while ((nbytes = walk.nbytes)) { in cbc_decrypt()
507 while ((nbytes = walk.nbytes) > 0) { in ctr_crypt()
516 if (walk.nbytes == walk.total && nbytes > 0) { in ctr_crypt()
518 crypto_xor_cpy(walk.dst.virt.addr + walk.nbytes - nbytes, in ctr_crypt()
519 walk.src.virt.addr + walk.nbytes - nbytes, in ctr_crypt()
522 nbytes = 0; in ctr_crypt()
881 int nbytes = walk.nbytes; in xts_crypt() local
[all …]
/linux/drivers/media/test-drivers/vidtv/
A Dvidtv_ts.c53 u32 nbytes = 0; in vidtv_ts_null_write_into() local
75 TS_PACKET_LEN - nbytes); in vidtv_ts_null_write_into()
78 if (nbytes != TS_PACKET_LEN) in vidtv_ts_null_write_into()
81 nbytes); in vidtv_ts_null_write_into()
83 return nbytes; in vidtv_ts_null_write_into()
88 u32 nbytes = 0; in vidtv_ts_pcr_write_into() local
120 args.dest_offset + nbytes, in vidtv_ts_pcr_write_into()
127 TS_PACKET_LEN - nbytes); in vidtv_ts_pcr_write_into()
130 if (nbytes != TS_PACKET_LEN) in vidtv_ts_pcr_write_into()
133 nbytes); in vidtv_ts_pcr_write_into()
[all …]
A Dvidtv_pes.c128 return nbytes; in vidtv_pes_write_pts_dts()
179 return nbytes; in vidtv_pes_write_h()
212 u32 nbytes = 0; in vidtv_pes_write_stuffing() local
245 dest_offset + nbytes, in vidtv_pes_write_stuffing()
268 return nbytes; in vidtv_pes_write_stuffing()
275 u32 nbytes = 0; in vidtv_pes_write_ts_h() local
297 nbytes += vidtv_pes_write_stuffing(&args, args.dest_offset + nbytes, in vidtv_pes_write_ts_h()
300 return nbytes; in vidtv_pes_write_ts_h()
332 u32 nbytes = 0; in vidtv_pes_write_into() local
407 nbytes; in vidtv_pes_write_into()
[all …]
A Dvidtv_psi.c178 u32 nbytes = 0; in vidtv_psi_ts_psi_write_into() local
253 return nbytes; in vidtv_psi_ts_psi_write_into()
650 u32 nbytes = 0; in vidtv_psi_desc_write_into() local
751 return nbytes; in vidtv_psi_desc_write_into()
987 u32 nbytes = 0; in vidtv_psi_pat_write_into() local
1020 return nbytes; in vidtv_psi_pat_write_into()
1166 u32 nbytes = 0; in vidtv_psi_pmt_write_into() local
1253 return nbytes; in vidtv_psi_pmt_write_into()
1395 return nbytes; in vidtv_psi_sdt_write_into()
1751 return nbytes; in vidtv_psi_nit_write_into()
[all …]
A Dvidtv_mux.c164 u32 nbytes; in vidtv_mux_push_si() local
218 return nbytes; in vidtv_mux_push_si()
225 u32 nbytes = 0; in vidtv_mux_push_pcr() local
241 return nbytes; in vidtv_mux_push_pcr()
287 u32 nbytes = 0; in vidtv_mux_packetize_access_units() local
319 return nbytes; in vidtv_mux_packetize_access_units()
346 return nbytes; in vidtv_mux_poll_encoders()
358 u32 nbytes; in vidtv_mux_pad_with_nulls() local
377 return nbytes; in vidtv_mux_pad_with_nulls()
396 u32 nbytes; in vidtv_mux_tick() local
[all …]
/linux/crypto/
A Dpcbc.c25 unsigned int nbytes = walk->nbytes; in crypto_pcbc_encrypt_segment() local
39 return nbytes; in crypto_pcbc_encrypt_segment()
47 unsigned int nbytes = walk->nbytes; in crypto_pcbc_encrypt_inplace() local
61 return nbytes; in crypto_pcbc_encrypt_inplace()
69 unsigned int nbytes; in crypto_pcbc_encrypt() local
74 while ((nbytes = walk.nbytes)) { in crypto_pcbc_encrypt()
92 unsigned int nbytes = walk->nbytes; in crypto_pcbc_decrypt_segment() local
106 return nbytes; in crypto_pcbc_decrypt_segment()
114 unsigned int nbytes = walk->nbytes; in crypto_pcbc_decrypt_inplace() local
128 return nbytes; in crypto_pcbc_decrypt_inplace()
[all …]
A Dcfb.c52 unsigned int nbytes = walk->nbytes; in crypto_cfb_final() local
62 unsigned int nbytes = walk->nbytes; in crypto_cfb_encrypt_segment() local
78 return nbytes; in crypto_cfb_encrypt_segment()
85 unsigned int nbytes = walk->nbytes; in crypto_cfb_encrypt_inplace() local
100 return nbytes; in crypto_cfb_encrypt_inplace()
120 if (walk.nbytes) { in crypto_cfb_encrypt()
132 unsigned int nbytes = walk->nbytes; in crypto_cfb_decrypt_segment() local
148 return nbytes; in crypto_cfb_decrypt_segment()
155 unsigned int nbytes = walk->nbytes; in crypto_cfb_decrypt_inplace() local
167 return nbytes; in crypto_cfb_decrypt_inplace()
[all …]
A Dcbc.c22 unsigned int nbytes = walk->nbytes; in crypto_cbc_encrypt_segment() local
42 return nbytes; in crypto_cbc_encrypt_segment()
50 unsigned int nbytes = walk->nbytes; in crypto_cbc_encrypt_inplace() local
70 return nbytes; in crypto_cbc_encrypt_inplace()
81 while (walk.nbytes) { in crypto_cbc_encrypt()
97 unsigned int nbytes = walk->nbytes; in crypto_cbc_decrypt_segment() local
119 return nbytes; in crypto_cbc_decrypt_segment()
127 unsigned int nbytes = walk->nbytes; in crypto_cbc_decrypt_inplace() local
138 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace()
152 return nbytes; in crypto_cbc_decrypt_inplace()
[all …]
A Dscatterwalk.c18 static inline void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) in memcpy_dir() argument
23 memcpy(dst, src, nbytes); in memcpy_dir()
27 size_t nbytes, int out) in scatterwalk_copychunks() argument
33 if (len_this_page > nbytes) in scatterwalk_copychunks()
34 len_this_page = nbytes; in scatterwalk_copychunks()
44 if (nbytes == len_this_page) in scatterwalk_copychunks()
48 nbytes -= len_this_page; in scatterwalk_copychunks()
56 unsigned int start, unsigned int nbytes, int out) in scatterwalk_map_and_copy() argument
61 if (!nbytes) in scatterwalk_map_and_copy()
67 scatterwalk_copychunks(buf, &walk, nbytes, out); in scatterwalk_map_and_copy()
/linux/arch/powerpc/crypto/
A Daes-spe-glue.c190 while ((nbytes = walk.nbytes) != 0) { in ppc_ecb_crypt()
191 nbytes = min_t(unsigned int, nbytes, MAX_BYTES); in ppc_ecb_crypt()
192 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_ecb_crypt()
229 while ((nbytes = walk.nbytes) != 0) { in ppc_cbc_crypt()
230 nbytes = min_t(unsigned int, nbytes, MAX_BYTES); in ppc_cbc_crypt()
231 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_cbc_crypt()
270 while ((nbytes = walk.nbytes) != 0) { in ppc_ctr_crypt()
271 nbytes = min_t(unsigned int, nbytes, MAX_BYTES); in ppc_ctr_crypt()
273 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_ctr_crypt()
298 while ((nbytes = walk.nbytes) != 0) { in ppc_xts_crypt()
[all …]
/linux/drivers/comedi/
A Dcomedi_buf.c347 nbytes = unalloc; in comedi_buf_write_alloc()
357 return nbytes; in comedi_buf_write_alloc()
437 nbytes = allocated; in comedi_buf_write_free()
445 return nbytes; in comedi_buf_write_free()
503 nbytes = available; in comedi_buf_read_alloc()
513 return nbytes; in comedi_buf_read_alloc()
549 nbytes = allocated; in comedi_buf_read_free()
554 return nbytes; in comedi_buf_read_free()
588 while (nbytes) { in comedi_buf_memcpy_from()
650 return nbytes; in comedi_buf_write_samples()
[all …]
/linux/drivers/spi/
A Dspi-mtk-nor.c163 if (op->dummy.nbytes) in mtk_nor_match_read()
191 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_match_prg()
235 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_adj_prg_size()
254 if (!op->data.nbytes) in mtk_nor_adjust_op_size()
257 if ((op->addr.nbytes == 3) || (op->addr.nbytes == 4)) { in mtk_nor_adjust_op_size()
294 if ((op->addr.nbytes == 3) || (op->addr.nbytes == 4)) { in mtk_nor_supports_op()
507 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_spi_mem_prg()
511 tx_len += op->dummy.nbytes + op->data.nbytes; in mtk_nor_spi_mem_prg()
515 prg_len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes + in mtk_nor_spi_mem_prg()
516 op->data.nbytes; in mtk_nor_spi_mem_prg()
[all …]
A Dspi-mem.c41 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data()
87 if (!op->data.nbytes) in spi_controller_dma_unmap_mem_op_data()
147 if (op->addr.nbytes && in spi_mem_check_buswidth()
333 tmpbufsize = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
370 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
451 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
456 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size()
476 op.data.nbytes = len; in spi_mem_no_dirmap_read()
496 op.data.nbytes = len; in spi_mem_no_dirmap_write()
530 if (!info->op_tmpl.addr.nbytes || info->op_tmpl.addr.nbytes > 8) in spi_mem_dirmap_create()
[all …]
/linux/lib/mpi/
A Dmpicoder.c46 nbytes--; in mpi_read_raw_data()
49 nbits = nbytes * 8; in mpi_read_raw_data()
54 if (nbytes > 0) in mpi_read_raw_data()
65 if (nbytes > 0) { in mpi_read_raw_data()
316 if (!nbytes) in mpi_get_buffer()
373 if (nbytes < n) in mpi_write_to_sgl()
389 nbytes -= i; in mpi_write_to_sgl()
469 nbytes -= lzeros; in mpi_read_raw_from_sgl()
475 nbytes -= lzeros; in mpi_read_raw_from_sgl()
483 if (nbytes > 0) in mpi_read_raw_from_sgl()
[all …]
/linux/drivers/infiniband/hw/hfi1/
A Dpio_copy.c184 unsigned int nbytes) in read_low_bytes() argument
188 pbuf->carry_bytes = nbytes; in read_low_bytes()
203 pbuf->carry_bytes += nbytes; in read_extra_bytes()
263 const void *from, size_t nbytes) in seg_pio_copy_start() argument
559 pbuf->qw_written += nbytes >> 3; in mid_copy_straight()
598 nbytes -= to_align; in seg_pio_copy_mid()
609 nbytes -= to_fill; in seg_pio_copy_mid()
611 if (extra > nbytes) in seg_pio_copy_mid()
612 extra = nbytes; in seg_pio_copy_mid()
639 nbytes -= extra; in seg_pio_copy_mid()
[all …]
/linux/include/trace/events/
A Drandom.h143 TP_PROTO(int nbytes, unsigned long IP),
145 TP_ARGS(nbytes, IP),
148 __field( int, nbytes )
153 __entry->nbytes = nbytes;
161 TP_PROTO(int nbytes, unsigned long IP),
163 TP_ARGS(nbytes, IP)
167 TP_PROTO(int nbytes, unsigned long IP),
169 TP_ARGS(nbytes, IP)
180 __field( int, nbytes )
187 __entry->nbytes = nbytes;
[all …]
/linux/arch/arm64/crypto/
A Dghash-ce-glue.c368 int nbytes = walk.nbytes; in gcm_encrypt() local
372 if (unlikely(nbytes > 0 && nbytes < AES_BLOCK_SIZE)) { in gcm_encrypt()
374 src, nbytes); in gcm_encrypt()
389 if (unlikely(nbytes > 0 && nbytes < AES_BLOCK_SIZE)) in gcm_encrypt()
391 buf + sizeof(buf) - nbytes, nbytes); in gcm_encrypt()
393 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in gcm_encrypt()
440 int nbytes = walk.nbytes; in gcm_decrypt() local
444 if (unlikely(nbytes > 0 && nbytes < AES_BLOCK_SIZE)) { in gcm_decrypt()
461 if (unlikely(nbytes > 0 && nbytes < AES_BLOCK_SIZE)) in gcm_decrypt()
463 buf + sizeof(buf) - nbytes, nbytes); in gcm_decrypt()
[all …]
A Daes-neonbs-glue.c103 while (walk.nbytes >= AES_BLOCK_SIZE) { in __ecb_crypt()
106 if (walk.nbytes < walk.total) in __ecb_crypt()
189 if (walk.nbytes < walk.total) in cbc_decrypt()
215 while (walk.nbytes > 0) { in ctr_encrypt()
219 if (walk.nbytes < walk.total) { in ctr_encrypt()
282 int nbytes, err; in __xts_crypt() local
313 if (walk.nbytes < walk.total || walk.nbytes % AES_BLOCK_SIZE) in __xts_crypt()
319 nbytes = walk.nbytes; in __xts_crypt()
334 nbytes -= blocks * AES_BLOCK_SIZE; in __xts_crypt()
337 if (walk.nbytes == walk.total && nbytes > 0) in __xts_crypt()
[all …]
/linux/drivers/thunderbolt/
A Dnvm.c188 size_t nbytes; in tb_nvm_read_data() local
195 dwords = ALIGN(nbytes, 4) / 4; in tb_nvm_read_data()
204 nbytes -= offset; in tb_nvm_read_data()
205 memcpy(buf, data + offset, nbytes); in tb_nvm_read_data()
207 size -= nbytes; in tb_nvm_read_data()
208 address += nbytes; in tb_nvm_read_data()
209 buf += nbytes; in tb_nvm_read_data()
235 size_t nbytes; in tb_nvm_write_data() local
254 size -= nbytes; in tb_nvm_write_data()
255 address += nbytes; in tb_nvm_write_data()
[all …]
/linux/lib/crypto/
A Dpoly1305.c31 unsigned int nbytes) in poly1305_update_generic() argument
36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - desc->buflen); in poly1305_update_generic()
39 nbytes -= bytes; in poly1305_update_generic()
49 if (likely(nbytes >= POLY1305_BLOCK_SIZE)) { in poly1305_update_generic()
51 nbytes / POLY1305_BLOCK_SIZE, 1); in poly1305_update_generic()
52 src += nbytes - (nbytes % POLY1305_BLOCK_SIZE); in poly1305_update_generic()
53 nbytes %= POLY1305_BLOCK_SIZE; in poly1305_update_generic()
56 if (unlikely(nbytes)) { in poly1305_update_generic()
57 desc->buflen = nbytes; in poly1305_update_generic()
58 memcpy(desc->buf, src, nbytes); in poly1305_update_generic()
/linux/arch/sparc/crypto/
A Daes_glue.c224 unsigned int nbytes; in ecb_encrypt() local
232 while ((nbytes = walk.nbytes) != 0) { in ecb_encrypt()
248 unsigned int nbytes; in ecb_decrypt() local
257 while ((nbytes = walk.nbytes) != 0) { in ecb_decrypt()
273 unsigned int nbytes; in cbc_encrypt() local
281 while ((nbytes = walk.nbytes) != 0) { in cbc_encrypt()
298 unsigned int nbytes; in cbc_decrypt() local
307 while ((nbytes = walk.nbytes) != 0) { in cbc_decrypt()
326 unsigned int nbytes = walk->nbytes; in ctr_crypt_final() local
347 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in ctr_crypt()
[all …]
/linux/include/crypto/
A Dctr.h36 while (walk.nbytes > 0) { in crypto_ctr_encrypt_walk()
39 int nbytes = walk.nbytes; in crypto_ctr_encrypt_walk() local
42 if (nbytes < walk.total) { in crypto_ctr_encrypt_walk()
43 tail = walk.nbytes & (blocksize - 1); in crypto_ctr_encrypt_walk()
44 nbytes -= tail; in crypto_ctr_encrypt_walk()
48 int bsize = min(nbytes, blocksize); in crypto_ctr_encrypt_walk()
57 nbytes -= bsize; in crypto_ctr_encrypt_walk()
58 } while (nbytes > 0); in crypto_ctr_encrypt_walk()

Completed in 45 milliseconds

12345678910>>...18