Home
last modified time | relevance | path

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

12345678910>>...19

/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.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 …]
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 …]
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/lib/crypto/mpi/
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/arch/x86/crypto/
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 …]
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 …]
A Daria_gfni_avx512_glue.c81 unsigned int nbytes; in aria_avx512_ctr_encrypt() local
86 while ((nbytes = walk.nbytes) > 0) { in aria_avx512_ctr_encrypt()
120 nbytes -= ARIA_AESNI_PARALLEL_BLOCK_SIZE; in aria_avx512_ctr_encrypt()
123 while (nbytes >= ARIA_BLOCK_SIZE) { in aria_avx512_ctr_encrypt()
135 nbytes -= ARIA_BLOCK_SIZE; in aria_avx512_ctr_encrypt()
138 if (walk.nbytes == walk.total && nbytes > 0) { in aria_avx512_ctr_encrypt()
147 nbytes); in aria_avx512_ctr_encrypt()
148 dst += nbytes; in aria_avx512_ctr_encrypt()
149 src += nbytes; in aria_avx512_ctr_encrypt()
150 nbytes = 0; in aria_avx512_ctr_encrypt()
[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 (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 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 …]
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 …]
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/arm64/crypto/
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 …]
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
320 nbytes = walk.nbytes; in __xts_crypt()
337 if (walk.nbytes == walk.total && nbytes > 0) { in __xts_crypt()
346 nbytes = first = 0; in __xts_crypt()
[all …]
/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.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/arch/s390/crypto/
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/drivers/spi/
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 …]
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 …]
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()
148 if (op->addr.nbytes && in spi_mem_check_buswidth()
318 len = op->cmd.nbytes + op->addr.nbytes; in spi_mem_add_op_stats()
319 len += op->dummy.nbytes + op->data.nbytes; in spi_mem_add_op_stats()
393 tmpbufsize = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
430 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
511 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size()
516 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size()
590 if (!info->op_tmpl.addr.nbytes || info->op_tmpl.addr.nbytes > 8) in spi_mem_dirmap_create()
[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/arch/riscv/crypto/
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 …]
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/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/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 64 milliseconds

12345678910>>...19