/linux/drivers/crypto/nx/ |
H A D | nx-aes-gcm.c | 109 unsigned int processed = 0, to_process; in nx_gca() local 132 to_process = min_t(u64, nbytes - processed, in nx_gca() 134 to_process = min_t(u64, to_process, in nx_gca() 138 req->src, processed, &to_process); in nx_gca() 140 if ((to_process + processed) < nbytes) in nx_gca() 161 processed += to_process; in nx_gca() 177 unsigned int processed = 0, to_process; in gmac() local 199 to_process = min_t(u64, nbytes - processed, in gmac() 201 to_process = min_t(u64, to_process, in gmac() 205 req->src, processed, &to_process); in gmac() [all …]
|
H A D | nx-aes-xcbc.c | 174 u32 to_process = 0, leftover, total; in nx_xcbc_update() local 213 to_process = total - to_process; in nx_xcbc_update() 214 to_process = to_process & ~(AES_BLOCK_SIZE - 1); in nx_xcbc_update() 216 leftover = total - to_process; in nx_xcbc_update() 224 to_process -= AES_BLOCK_SIZE; in nx_xcbc_update() 240 data_len = to_process - sctx->count; in nx_xcbc_update() 246 if (data_len != to_process - sctx->count) { in nx_xcbc_update() 277 total -= to_process; in nx_xcbc_update() 278 data += to_process - sctx->count; in nx_xcbc_update()
|
H A D | nx-aes-ccm.c | 268 unsigned int processed = 0, to_process; in generate_pat() local 279 to_process = min_t(u32, assoclen - processed, in generate_pat() 285 &to_process); in generate_pat() 287 if ((to_process + processed) < assoclen) { in generate_pat() 315 processed += to_process; in generate_pat() 336 unsigned int processed = 0, to_process; in ccm_nx_decrypt() local 358 to_process = nbytes - processed; in ccm_nx_decrypt() 360 if ((to_process + processed) < nbytes) in ccm_nx_decrypt() 368 &to_process, processed + req->assoclen, in ccm_nx_decrypt() 394 processed += to_process; in ccm_nx_decrypt() [all …]
|
H A D | nx-sha512.c | 68 u64 to_process, leftover = 0, total; in nx_sha512_update() local 131 to_process = min_t(u64, total, in nx_sha512_update() 133 to_process = to_process & ~(SHA512_BLOCK_SIZE - 1); in nx_sha512_update() 135 data_len = to_process - buf_len; in nx_sha512_update() 141 if (data_len != (to_process - buf_len)) { in nx_sha512_update() 146 to_process = data_len + buf_len; in nx_sha512_update() 147 leftover = total - to_process; in nx_sha512_update() 168 total -= to_process; in nx_sha512_update() 169 data += to_process - buf_len; in nx_sha512_update()
|
H A D | nx-sha256.c | 68 u64 to_process = 0, leftover, total; in nx_sha256_update() local 132 to_process = min_t(u64, total, in nx_sha256_update() 134 to_process = to_process & ~(SHA256_BLOCK_SIZE - 1); in nx_sha256_update() 136 data_len = to_process - buf_len; in nx_sha256_update() 142 to_process = data_len + buf_len; in nx_sha256_update() 143 leftover = total - to_process; in nx_sha256_update() 164 total -= to_process; in nx_sha256_update() 165 data += to_process - buf_len; in nx_sha256_update()
|
H A D | nx-aes-ecb.c | 60 unsigned int processed = 0, to_process; in ecb_aes_nx_crypt() local 71 to_process = req->cryptlen - processed; in ecb_aes_nx_crypt() 74 &to_process, processed, NULL); in ecb_aes_nx_crypt() 92 processed += to_process; in ecb_aes_nx_crypt()
|
H A D | nx-aes-cbc.c | 60 unsigned int processed = 0, to_process; in cbc_aes_nx_crypt() local 71 to_process = req->cryptlen - processed; in cbc_aes_nx_crypt() 74 &to_process, processed, in cbc_aes_nx_crypt() 94 processed += to_process; in cbc_aes_nx_crypt()
|
H A D | nx-aes-ctr.c | 78 unsigned int processed = 0, to_process; in ctr_aes_nx_crypt() local 84 to_process = req->cryptlen - processed; in ctr_aes_nx_crypt() 87 &to_process, processed, in ctr_aes_nx_crypt() 108 processed += to_process; in ctr_aes_nx_crypt()
|
/linux/drivers/usb/gadget/function/ |
H A D | f_ncm.c | 1182 int to_process = skb->len; in ncm_unwrap_ntb() local 1340 to_process -= block_len; in ncm_unwrap_ntb() 1346 if (to_process == 1 && in ncm_unwrap_ntb() 1348 to_process--; in ncm_unwrap_ntb() 1349 } else if ((to_process > 0) && (block_len != 0)) { in ncm_unwrap_ntb()
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | bcmsysport.c | 761 unsigned int processed = 0, to_process; in bcm_sysport_desc_rx() local 782 to_process = (p_index - priv->rx_c_index) & RDMA_CONS_INDEX_MASK; in bcm_sysport_desc_rx() 786 p_index, priv->rx_c_index, to_process); in bcm_sysport_desc_rx() 788 while ((processed < to_process) && (processed < budget)) { in bcm_sysport_desc_rx()
|