/linux-6.3-rc2/arch/x86/crypto/ |
A D | sm4_aesni_avx_glue.c | 49 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 D | des3_ede_glue.c | 70 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 D | aesni-intel_glue.c | 302 while ((nbytes = walk.nbytes)) { in ecb_encrypt() 324 while ((nbytes = walk.nbytes)) { in ecb_decrypt() 346 while ((nbytes = walk.nbytes)) { in cbc_encrypt() 368 while ((nbytes = walk.nbytes)) { in cbc_decrypt() 521 while ((nbytes = walk.nbytes) > 0) { in ctr_crypt() 530 if (walk.nbytes == walk.total && nbytes > 0) { in ctr_crypt() 572 while ((nbytes = walk.nbytes) > 0) { in xctr_crypt() 579 byte_ctr += walk.nbytes - nbytes; in xctr_crypt() 581 if (walk.nbytes == walk.total && nbytes > 0) { in xctr_crypt() 587 - nbytes, keystream, nbytes); in xctr_crypt() [all …]
|
A D | aria_gfni_avx512_glue.c | 81 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-6.3-rc2/arch/arm64/crypto/ |
A D | sm4-neon-glue.c | 46 while ((nbytes = walk.nbytes) > 0) { in sm4_ecb_do_crypt() 92 while ((nbytes = walk.nbytes) > 0) { in sm4_cbc_encrypt() 124 while ((nbytes = walk.nbytes) > 0) { in sm4_cbc_decrypt() 155 while ((nbytes = walk.nbytes) > 0) { in sm4_cfb_encrypt() 173 if (walk.nbytes == walk.total && nbytes > 0) { in sm4_cfb_encrypt() 176 nbytes = 0; in sm4_cfb_encrypt() 195 while ((nbytes = walk.nbytes) > 0) { in sm4_cfb_decrypt() 215 if (walk.nbytes == walk.total && nbytes > 0) { in sm4_cfb_decrypt() 220 nbytes = 0; in sm4_cfb_decrypt() 239 while ((nbytes = walk.nbytes) > 0) { in sm4_ctr_crypt() [all …]
|
A D | sm4-ce-glue.c | 25 #define BYTES2BLKS(nbytes) ((nbytes) >> 4) argument 122 while ((nbytes = walk.nbytes) > 0) { in sm4_ecb_do_crypt() 170 while ((nbytes = walk.nbytes) > 0) { in sm4_cbc_crypt() 293 while ((nbytes = walk.nbytes) > 0) { in sm4_cfb_encrypt() 309 if (walk.nbytes == walk.total && nbytes > 0) { in sm4_cfb_encrypt() 335 while ((nbytes = walk.nbytes) > 0) { in sm4_cfb_decrypt() 351 if (walk.nbytes == walk.total && nbytes > 0) { in sm4_cfb_decrypt() 377 while ((nbytes = walk.nbytes) > 0) { in sm4_ctr_crypt() 393 if (walk.nbytes == walk.total && nbytes > 0) { in sm4_ctr_crypt() 449 while ((nbytes = walk.nbytes) >= SM4_BLOCK_SIZE) { in sm4_xts_crypt() [all …]
|
A D | aes-neonbs-glue.c | 108 if (walk.nbytes < walk.total) in __ecb_crypt() 216 while (walk.nbytes > 0) { in ctr_encrypt() 218 int nbytes = walk.nbytes % (8 * AES_BLOCK_SIZE); in ctr_encrypt() local 229 if (nbytes && walk.nbytes == walk.total) { in ctr_encrypt() 231 nbytes, walk.iv); in ctr_encrypt() 232 nbytes = 0; in ctr_encrypt() 276 int nbytes, err; in __xts_crypt() local 308 nbytes = walk.nbytes; in __xts_crypt() 325 if (walk.nbytes == walk.total && nbytes > 0) { in __xts_crypt() 334 nbytes = first = 0; in __xts_crypt() [all …]
|
/linux-6.3-rc2/drivers/media/test-drivers/vidtv/ |
A D | vidtv_ts.c | 53 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 D | vidtv_pes.c | 128 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 D | vidtv_psi.c | 172 u32 nbytes = 0; in vidtv_psi_ts_psi_write_into() local 247 return nbytes; in vidtv_psi_ts_psi_write_into() 644 u32 nbytes = 0; in vidtv_psi_desc_write_into() local 745 return nbytes; in vidtv_psi_desc_write_into() 981 u32 nbytes = 0; in vidtv_psi_pat_write_into() local 1014 return nbytes; in vidtv_psi_pat_write_into() 1160 u32 nbytes = 0; in vidtv_psi_pmt_write_into() local 1247 return nbytes; in vidtv_psi_pmt_write_into() 1389 return nbytes; in vidtv_psi_sdt_write_into() 1745 return nbytes; in vidtv_psi_nit_write_into() [all …]
|
/linux-6.3-rc2/crypto/ |
A D | pcbc.c | 25 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 D | cfb.c | 52 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 D | xctr.c | 40 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 D | cbc.c | 22 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 D | scatterwalk.c | 18 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-6.3-rc2/arch/powerpc/crypto/ |
A D | aes-spe-glue.c | 190 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.3-rc2/drivers/comedi/ |
A D | comedi_buf.c | 346 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.3-rc2/lib/mpi/ |
A D | mpicoder.c | 46 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() 475 nbytes -= lzeros; in mpi_read_raw_from_sgl() 483 if (nbytes > 0) in mpi_read_raw_from_sgl() 497 if (nbytes == 0) in mpi_read_raw_from_sgl() [all …]
|
/linux-6.3-rc2/arch/s390/crypto/ |
A D | chacha-glue.c | 22 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.3-rc2/drivers/spi/ |
A D | spi-mtk-nor.c | 188 if (op->dummy.nbytes) in mtk_nor_match_read() 216 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_match_prg() 260 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_adj_prg_size() 279 if (!op->data.nbytes) in mtk_nor_adjust_op_size() 282 if ((op->addr.nbytes == 3) || (op->addr.nbytes == 4)) { in mtk_nor_adjust_op_size() 319 if ((op->addr.nbytes == 3) || (op->addr.nbytes == 4)) { in mtk_nor_supports_op() 525 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_spi_mem_prg() 529 tx_len += op->dummy.nbytes + op->data.nbytes; in mtk_nor_spi_mem_prg() 533 prg_len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes + in mtk_nor_spi_mem_prg() 534 op->data.nbytes; in mtk_nor_spi_mem_prg() [all …]
|
A D | spi-wpcm-fiu.c | 83 for (i = 0; i < nbytes; i++) in wpcm_fiu_set_data() 147 return (op->addr.nbytes == 0 || op->addr.nbytes == 3) && in wpcm_fiu_normal_match() 148 op->dummy.nbytes == 0 && op->data.nbytes <= 4; in wpcm_fiu_normal_match() 174 op->data.nbytes >= 1 && op->data.nbytes <= 4 && in wpcm_fiu_fast_read_match() 193 return op->addr.nbytes == 4 && op->dummy.nbytes == 0 && op->data.nbytes <= 4; in wpcm_fiu_4ba_match() 237 op->dummy.nbytes == 0 && op->data.nbytes == 6 && in wpcm_fiu_rdid_match() 273 return (op->addr.nbytes == 0 || op->addr.nbytes == 3) && in wpcm_fiu_dummy_match() 274 op->dummy.nbytes >= 1 && op->dummy.nbytes <= 5 && in wpcm_fiu_dummy_match() 288 wpcm_fiu_do_uma(fiu, cs, op->addr.nbytes != 0, true, op->dummy.nbytes - 1); in wpcm_fiu_dummy_exec() 370 if (op->data.nbytes > 4) in wpcm_fiu_adjust_op_size() [all …]
|
A D | spi-mem.c | 42 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() 346 tmpbufsize = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op() 383 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op() 464 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size() 469 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size() 489 op.data.nbytes = len; in spi_mem_no_dirmap_read() 509 op.data.nbytes = len; in spi_mem_no_dirmap_write() 543 if (!info->op_tmpl.addr.nbytes || info->op_tmpl.addr.nbytes > 8) in spi_mem_dirmap_create() [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/ |
A D | pio_copy.c | 184 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.3-rc2/lib/crypto/ |
A D | poly1305.c | 31 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-6.3-rc2/include/crypto/ |
A D | ctr.h | 36 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()
|