/drivers/crypto/nx/ |
D | nx-aes-gcm.c | 120 unsigned int processed = 0, to_process; in nx_gca() local 143 to_process = min_t(u64, nbytes - processed, in nx_gca() 145 to_process = min_t(u64, to_process, in nx_gca() 149 req->src, processed, &to_process); in nx_gca() 151 if ((to_process + processed) < nbytes) in nx_gca() 172 processed += to_process; in nx_gca() 189 unsigned int processed = 0, to_process; in gmac() local 211 to_process = min_t(u64, nbytes - processed, in gmac() 213 to_process = min_t(u64, to_process, in gmac() 217 req->src, processed, &to_process); in gmac() [all …]
|
D | nx-sha512.c | 75 u64 to_process, leftover = 0, total; in nx_sha512_update() local 138 to_process = min_t(u64, total, in nx_sha512_update() 140 to_process = to_process & ~(SHA512_BLOCK_SIZE - 1); in nx_sha512_update() 142 data_len = to_process - buf_len; in nx_sha512_update() 148 if (data_len != (to_process - buf_len)) { in nx_sha512_update() 153 to_process = data_len + buf_len; in nx_sha512_update() 154 leftover = total - to_process; in nx_sha512_update() 176 total -= to_process; in nx_sha512_update() 177 data += to_process - buf_len; in nx_sha512_update()
|
D | nx-aes-ccm.c | 283 unsigned int processed = 0, to_process; in generate_pat() local 294 to_process = min_t(u32, assoclen - processed, in generate_pat() 300 &to_process); in generate_pat() 302 if ((to_process + processed) < assoclen) { in generate_pat() 330 processed += to_process; in generate_pat() 351 unsigned int processed = 0, to_process; in ccm_nx_decrypt() local 373 to_process = nbytes - processed; in ccm_nx_decrypt() 375 if ((to_process + processed) < nbytes) in ccm_nx_decrypt() 383 &to_process, processed + req->assoclen, in ccm_nx_decrypt() 409 processed += to_process; in ccm_nx_decrypt() [all …]
|
D | nx-aes-xcbc.c | 188 u32 to_process = 0, leftover, total; in nx_xcbc_update() local 227 to_process = total - to_process; in nx_xcbc_update() 228 to_process = to_process & ~(AES_BLOCK_SIZE - 1); in nx_xcbc_update() 230 leftover = total - to_process; in nx_xcbc_update() 238 to_process -= AES_BLOCK_SIZE; in nx_xcbc_update() 254 data_len = to_process - sctx->count; in nx_xcbc_update() 260 if (data_len != to_process - sctx->count) { in nx_xcbc_update() 292 total -= to_process; in nx_xcbc_update() 293 data += to_process - sctx->count; in nx_xcbc_update()
|
D | nx-sha256.c | 75 u64 to_process = 0, leftover, total; in nx_sha256_update() local 139 to_process = min_t(u64, total, in nx_sha256_update() 141 to_process = to_process & ~(SHA256_BLOCK_SIZE - 1); in nx_sha256_update() 143 data_len = to_process - buf_len; in nx_sha256_update() 149 to_process = data_len + buf_len; in nx_sha256_update() 150 leftover = total - to_process; in nx_sha256_update() 172 total -= to_process; in nx_sha256_update() 173 data += to_process - buf_len; in nx_sha256_update()
|
D | nx-aes-ecb.c | 74 unsigned int processed = 0, to_process; in ecb_aes_nx_crypt() local 85 to_process = nbytes - processed; in ecb_aes_nx_crypt() 87 rc = nx_build_sg_lists(nx_ctx, desc, dst, src, &to_process, in ecb_aes_nx_crypt() 106 processed += to_process; in ecb_aes_nx_crypt()
|
D | nx-aes-cbc.c | 74 unsigned int processed = 0, to_process; in cbc_aes_nx_crypt() local 85 to_process = nbytes - processed; in cbc_aes_nx_crypt() 87 rc = nx_build_sg_lists(nx_ctx, desc, dst, src, &to_process, in cbc_aes_nx_crypt() 107 processed += to_process; in cbc_aes_nx_crypt()
|
D | nx-aes-ctr.c | 92 unsigned int processed = 0, to_process; in ctr_aes_nx_crypt() local 98 to_process = nbytes - processed; in ctr_aes_nx_crypt() 100 rc = nx_build_sg_lists(nx_ctx, desc, dst, src, &to_process, in ctr_aes_nx_crypt() 121 processed += to_process; in ctr_aes_nx_crypt()
|
/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 569 unsigned int processed = 0, to_process; in bcm_sysport_desc_rx() local 581 to_process = (RDMA_CONS_INDEX_MASK + 1) - in bcm_sysport_desc_rx() 584 to_process = p_index - priv->rx_c_index; in bcm_sysport_desc_rx() 588 p_index, priv->rx_c_index, to_process); in bcm_sysport_desc_rx() 590 while ((processed < to_process) && (processed < budget)) { in bcm_sysport_desc_rx()
|