Home
last modified time | relevance | path

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

12345678910>>...20

/linux-6.15/crypto/
H A Dscatterwalk.c24 while (nbytes > sg->length) { in scatterwalk_skip()
25 nbytes -= sg->length; in scatterwalk_skip()
34 unsigned int nbytes) in memcpy_from_scatterwalk() argument
43 nbytes -= to_copy; in memcpy_from_scatterwalk()
44 } while (nbytes); in memcpy_from_scatterwalk()
49 unsigned int nbytes) in memcpy_to_scatterwalk() argument
58 nbytes -= to_copy; in memcpy_to_scatterwalk()
59 } while (nbytes); in memcpy_to_scatterwalk()
90 unsigned int nbytes) in memcpy_sglist() argument
111 nbytes -= len; in memcpy_sglist()
[all …]
H A Dpcbc.c26 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 (walk.nbytes) { in crypto_pcbc_encrypt()
93 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 …]
H A Dxctr.c40 unsigned int nbytes = walk->nbytes; in crypto_xctr_crypt_final() local
45 crypto_xor_cpy(dst, keystream, src, nbytes); in crypto_xctr_crypt_final()
56 unsigned int nbytes = walk->nbytes; in crypto_xctr_crypt_segment() local
71 return nbytes; in crypto_xctr_crypt_segment()
80 unsigned int nbytes = walk->nbytes; in crypto_xctr_crypt_inplace() local
97 return nbytes; in crypto_xctr_crypt_inplace()
105 unsigned int nbytes; in crypto_xctr_crypt() local
111 while (walk.nbytes >= XCTR_BLOCKSIZE) { in crypto_xctr_crypt()
119 byte_ctr += walk.nbytes - nbytes; in crypto_xctr_crypt()
120 err = skcipher_walk_done(&walk, nbytes); in crypto_xctr_crypt()
[all …]
H A Dcbc.c21 for (; nbytes >= bsize; src += bsize, dst += bsize, nbytes -= bsize) { in crypto_cbc_encrypt_segment()
27 return nbytes; in crypto_cbc_encrypt_segment()
36 if (nbytes < bsize) in crypto_cbc_encrypt_inplace()
45 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace()
50 return nbytes; in crypto_cbc_encrypt_inplace()
76 if (nbytes < bsize) in crypto_cbc_decrypt_segment()
91 return nbytes; in crypto_cbc_decrypt_segment()
100 if (nbytes < bsize) in crypto_cbc_decrypt_inplace()
104 src += nbytes - (nbytes & (bsize - 1)) - bsize; in crypto_cbc_decrypt_inplace()
109 if ((nbytes -= bsize) < bsize) in crypto_cbc_decrypt_inplace()
[all …]
/linux-6.15/drivers/media/test-drivers/vidtv/
H 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 …]
H A Dvidtv_pes.c129 return nbytes; in vidtv_pes_write_pts_dts()
180 return nbytes; in vidtv_pes_write_h()
213 u32 nbytes = 0; in vidtv_pes_write_stuffing() local
246 dest_offset + nbytes, in vidtv_pes_write_stuffing()
269 return nbytes; in vidtv_pes_write_stuffing()
276 u32 nbytes = 0; in vidtv_pes_write_ts_h() local
298 nbytes += vidtv_pes_write_stuffing(&args, args.dest_offset + nbytes, in vidtv_pes_write_ts_h()
301 return nbytes; in vidtv_pes_write_ts_h()
333 u32 nbytes = 0; in vidtv_pes_write_into() local
408 nbytes; in vidtv_pes_write_into()
[all …]
H A Dvidtv_psi.c172 u32 nbytes = 0; in vidtv_psi_ts_psi_write_into() local
247 return nbytes; in vidtv_psi_ts_psi_write_into()
679 u32 nbytes = 0; in vidtv_psi_desc_write_into() local
780 return nbytes; in vidtv_psi_desc_write_into()
1016 u32 nbytes = 0; in vidtv_psi_pat_write_into() local
1049 return nbytes; in vidtv_psi_pat_write_into()
1195 u32 nbytes = 0; in vidtv_psi_pmt_write_into() local
1282 return nbytes; in vidtv_psi_pmt_write_into()
1424 return nbytes; in vidtv_psi_sdt_write_into()
1780 return nbytes; in vidtv_psi_nit_write_into()
[all …]
/linux-6.15/lib/crypto/mpi/
H A Dmpicoder.c45 nbytes--; in mpi_read_raw_data()
48 nbits = nbytes * 8; in mpi_read_raw_data()
53 if (nbytes > 0) in mpi_read_raw_data()
64 if (nbytes > 0) { in mpi_read_raw_data()
209 if (!nbytes) in mpi_get_buffer()
266 if (nbytes < n) in mpi_write_to_sgl()
282 nbytes -= i; in mpi_write_to_sgl()
368 nbytes -= lzeros; in mpi_read_raw_from_sgl()
376 if (nbytes > 0) in mpi_read_raw_from_sgl()
390 if (nbytes == 0) in mpi_read_raw_from_sgl()
[all …]
/linux-6.15/arch/x86/crypto/
H A Dsm4_aesni_avx_glue.c42 unsigned int nbytes; in ecb_do_crypt() local
47 while ((nbytes = walk.nbytes) > 0) { in ecb_do_crypt()
101 while ((nbytes = walk.nbytes) > 0) { in sm4_cbc_encrypt()
135 while ((nbytes = walk.nbytes) > 0) { in sm4_avx_cbc_decrypt()
145 nbytes -= bsize; in sm4_avx_cbc_decrypt()
200 while ((nbytes = walk.nbytes) > 0) { in sm4_avx_ctr_crypt()
210 nbytes -= bsize; in sm4_avx_ctr_crypt()
236 if (walk.nbytes == walk.total && nbytes > 0) { in sm4_avx_ctr_crypt()
245 dst += nbytes; in sm4_avx_ctr_crypt()
246 src += nbytes; in sm4_avx_ctr_crypt()
[all …]
H A Ddes3_ede_glue.c70 unsigned int nbytes; in ecb_crypt() local
75 while ((nbytes = walk.nbytes)) { in ecb_crypt()
100 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()
154 unsigned int nbytes; in cbc_encrypt() local
171 unsigned int nbytes = walk->nbytes; in __cbc_decrypt() local
198 nbytes -= bsize; in __cbc_decrypt()
212 nbytes -= bsize; in __cbc_decrypt()
[all …]
/linux-6.15/include/crypto/
H A Dscatterwalk.h53 unsigned int nbytes) in scatterwalk_clamp() argument
147 return nbytes; in scatterwalk_next()
157 unsigned int nbytes) in scatterwalk_advance() argument
159 walk->offset += nbytes; in scatterwalk_advance()
171 unsigned int nbytes) in scatterwalk_done_src() argument
174 scatterwalk_advance(walk, nbytes); in scatterwalk_done_src()
187 unsigned int nbytes) in scatterwalk_done_dst() argument
211 scatterwalk_advance(walk, nbytes); in scatterwalk_done_dst()
217 unsigned int nbytes);
220 unsigned int nbytes);
[all …]
H 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()
/linux-6.15/arch/arm64/crypto/
H A Dsm4-neon-glue.c39 unsigned int nbytes; in sm4_ecb_do_crypt() local
44 while ((nbytes = walk.nbytes) > 0) { in sm4_ecb_do_crypt()
85 unsigned int nbytes; in sm4_cbc_encrypt() local
90 while ((nbytes = walk.nbytes) > 0) { in sm4_cbc_encrypt()
101 nbytes -= SM4_BLOCK_SIZE; in sm4_cbc_encrypt()
117 unsigned int nbytes; in sm4_cbc_decrypt() local
122 while ((nbytes = walk.nbytes) > 0) { in sm4_cbc_decrypt()
148 unsigned int nbytes; in sm4_ctr_crypt() local
153 while ((nbytes = walk.nbytes) > 0) { in sm4_ctr_crypt()
173 if (walk.nbytes == walk.total && nbytes > 0) { in sm4_ctr_crypt()
[all …]
H A Daes-neonbs-glue.c217 while (walk.nbytes > 0) { in ctr_encrypt()
219 int nbytes = walk.nbytes % (8 * AES_BLOCK_SIZE); in ctr_encrypt() local
230 if (nbytes && walk.nbytes == walk.total) { in ctr_encrypt()
236 src, nbytes); in ctr_encrypt()
239 nbytes, walk.iv); in ctr_encrypt()
244 nbytes = 0; in ctr_encrypt()
288 int nbytes, err; in __xts_crypt() local
321 nbytes = walk.nbytes; in __xts_crypt()
338 if (walk.nbytes == walk.total && nbytes > 0) { in __xts_crypt()
347 nbytes = first = 0; in __xts_crypt()
[all …]
/linux-6.15/drivers/spi/
H A Dspi-realtek-rtl-snand.c171 nbytes = len - pos; in rtl_snand_xfer()
172 if (nbytes > 4) in rtl_snand_xfer()
173 nbytes = 4; in rtl_snand_xfer()
194 pos += nbytes; in rtl_snand_xfer()
202 if (nbytes > 4) in rtl_snand_xfer()
203 nbytes = 4; in rtl_snand_xfer()
207 pos += nbytes; in rtl_snand_xfer()
274 nbytes = len - pos; in rtl_snand_dma_xfer()
276 nbytes = maxlen; in rtl_snand_dma_xfer()
284 pos += nbytes; in rtl_snand_dma_xfer()
[all …]
H A Dspi-mem.c42 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data()
88 if (!op->data.nbytes) in spi_controller_dma_unmap_mem_op_data()
331 len = op->cmd.nbytes + op->addr.nbytes; in spi_mem_add_op_stats()
332 len += op->dummy.nbytes + op->data.nbytes; in spi_mem_add_op_stats()
382 op->addr.nbytes, (op->addr.nbytes ? op->addr.val : 0), in spi_mem_exec_op()
420 tmpbufsize = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
459 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
542 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
547 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size()
672 if (!info->op_tmpl.addr.nbytes || info->op_tmpl.addr.nbytes > 8) in spi_mem_dirmap_create()
[all …]
H A Dspi-mtk-nor.c189 if (op->dummy.nbytes) in mtk_nor_match_read()
217 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_match_prg()
261 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_adj_prg_size()
280 if (!op->data.nbytes) in mtk_nor_adjust_op_size()
283 if ((op->addr.nbytes == 3) || (op->addr.nbytes == 4)) { in mtk_nor_adjust_op_size()
320 if ((op->addr.nbytes == 3) || (op->addr.nbytes == 4)) { in mtk_nor_supports_op()
526 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_spi_mem_prg()
530 tx_len += op->dummy.nbytes + op->data.nbytes; in mtk_nor_spi_mem_prg()
534 prg_len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes + in mtk_nor_spi_mem_prg()
535 op->data.nbytes; in mtk_nor_spi_mem_prg()
[all …]
H A Dspi-wpcm-fiu.c82 for (i = 0; i < nbytes; i++) in wpcm_fiu_set_data()
146 return (op->addr.nbytes == 0 || op->addr.nbytes == 3) && in wpcm_fiu_normal_match()
147 op->dummy.nbytes == 0 && op->data.nbytes <= 4; in wpcm_fiu_normal_match()
173 op->data.nbytes >= 1 && op->data.nbytes <= 4 && in wpcm_fiu_fast_read_match()
192 return op->addr.nbytes == 4 && op->dummy.nbytes == 0 && op->data.nbytes <= 4; in wpcm_fiu_4ba_match()
236 op->dummy.nbytes == 0 && op->data.nbytes == 6 && in wpcm_fiu_rdid_match()
272 return (op->addr.nbytes == 0 || op->addr.nbytes == 3) && in wpcm_fiu_dummy_match()
273 op->dummy.nbytes >= 1 && op->dummy.nbytes <= 5 && in wpcm_fiu_dummy_match()
287 wpcm_fiu_do_uma(fiu, cs, op->addr.nbytes != 0, true, op->dummy.nbytes - 1); in wpcm_fiu_dummy_exec()
369 if (op->data.nbytes > 4) in wpcm_fiu_adjust_op_size()
[all …]
/linux-6.15/arch/powerpc/crypto/
H 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-6.15/drivers/comedi/
H A Dcomedi_buf.c346 nbytes = unalloc; in comedi_buf_write_alloc()
356 return nbytes; in comedi_buf_write_alloc()
436 nbytes = allocated; in comedi_buf_write_free()
444 return nbytes; in comedi_buf_write_free()
502 nbytes = available; in comedi_buf_read_alloc()
512 return nbytes; in comedi_buf_read_alloc()
548 nbytes = allocated; in comedi_buf_read_free()
553 return nbytes; in comedi_buf_read_free()
587 while (nbytes) { in comedi_buf_memcpy_from()
649 return nbytes; in comedi_buf_write_samples()
[all …]
/linux-6.15/arch/s390/crypto/
H A Dchacha-glue.c22 unsigned int nbytes, const u32 *key, in chacha20_crypt_s390() argument
28 chacha20_vx(dst, src, nbytes, key, counter); in chacha20_crypt_s390()
40 unsigned int nbytes; in chacha20_s390() local
46 while (walk.nbytes > 0) { in chacha20_s390()
47 nbytes = walk.nbytes; in chacha20_s390()
48 if (nbytes < walk.total) in chacha20_s390()
49 nbytes = round_down(nbytes, walk.stride); in chacha20_s390()
51 if (nbytes <= CHACHA_BLOCK_SIZE) { in chacha20_s390()
53 walk.src.virt.addr, nbytes, in chacha20_s390()
57 walk.src.virt.addr, nbytes, in chacha20_s390()
[all …]
/linux-6.15/drivers/infiniband/hw/hfi1/
H 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-6.15/arch/riscv/crypto/
H A Daes-riscv64-glue.c140 unsigned int nbytes; in riscv64_aes_ecb_crypt() local
144 while ((nbytes = walk.nbytes) != 0) { in riscv64_aes_ecb_crypt()
178 unsigned int nbytes; in riscv64_aes_cbc_crypt() local
182 while ((nbytes = walk.nbytes) != 0) { in riscv64_aes_cbc_crypt()
290 while ((nbytes = walk.nbytes) != 0) { in riscv64_aes_ctr_crypt()
293 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in riscv64_aes_ctr_crypt()
331 err = skcipher_walk_done(&walk, walk.nbytes - nbytes); in riscv64_aes_ctr_crypt()
398 while (walk.nbytes) { in riscv64_aes_xts_crypt()
399 unsigned int nbytes = walk.nbytes; in riscv64_aes_xts_crypt() local
402 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in riscv64_aes_xts_crypt()
[all …]
H A Dchacha-riscv64-glue.c26 unsigned int nbytes; in riscv64_chacha20_crypt() local
36 while (walk.nbytes) { in riscv64_chacha20_crypt()
37 nbytes = walk.nbytes & ~(CHACHA_BLOCK_SIZE - 1); in riscv64_chacha20_crypt()
38 tail_bytes = walk.nbytes & (CHACHA_BLOCK_SIZE - 1); in riscv64_chacha20_crypt()
40 if (nbytes) { in riscv64_chacha20_crypt()
42 walk.dst.virt.addr, nbytes, iv); in riscv64_chacha20_crypt()
43 iv[0] += nbytes / CHACHA_BLOCK_SIZE; in riscv64_chacha20_crypt()
45 if (walk.nbytes == walk.total && tail_bytes > 0) { in riscv64_chacha20_crypt()
46 memcpy(block_buffer, walk.src.virt.addr + nbytes, in riscv64_chacha20_crypt()
50 memcpy(walk.dst.virt.addr + nbytes, block_buffer, in riscv64_chacha20_crypt()
/linux-6.15/lib/crypto/
H 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()

12345678910>>...20