Searched refs:to_process (Results 1 - 10 of 10) sorted by relevance

/linux-4.4.14/drivers/crypto/nx/
H A Dnx-aes-gcm.c120 unsigned int processed = 0, to_process; nx_gca() local
140 * to_process: the data chunk to process in this update. nx_gca()
143 to_process = min_t(u64, nbytes - processed, nx_gca()
145 to_process = min_t(u64, to_process, nx_gca()
149 req->src, processed, &to_process); nx_gca()
151 if ((to_process + processed) < nbytes) nx_gca()
172 processed += to_process; nx_gca()
189 unsigned int processed = 0, to_process; gmac() local
208 * to_process: the data chunk to process in this update. gmac()
211 to_process = min_t(u64, nbytes - processed, gmac()
213 to_process = min_t(u64, to_process, gmac()
217 req->src, processed, &to_process); gmac()
219 if ((to_process + processed) < nbytes) gmac()
245 processed += to_process; gmac()
329 unsigned int processed = 0, to_process; gcm_aes_nx_crypt() local
369 to_process = nbytes - processed; gcm_aes_nx_crypt()
373 req->src, &to_process, gcm_aes_nx_crypt()
380 if ((to_process + processed) < nbytes) gcm_aes_nx_crypt()
403 processed += to_process; gcm_aes_nx_crypt()
H A Dnx-sha512.c75 u64 to_process, leftover = 0, total; nx_sha512_update() local
131 /* to_process: SHA512_BLOCK_SIZE aligned chunk to be nx_sha512_update()
138 to_process = min_t(u64, total, nx_sha512_update()
140 to_process = to_process & ~(SHA512_BLOCK_SIZE - 1); nx_sha512_update()
142 data_len = to_process - buf_len; nx_sha512_update()
148 if (data_len != (to_process - buf_len)) { nx_sha512_update()
153 to_process = data_len + buf_len; nx_sha512_update()
154 leftover = total - to_process; nx_sha512_update()
176 total -= to_process; nx_sha512_update()
177 data += to_process - buf_len; nx_sha512_update()
H A Dnx-sha256.c75 u64 to_process = 0, leftover, total; nx_sha256_update() local
132 /* to_process: SHA256_BLOCK_SIZE aligned chunk to be nx_sha256_update()
139 to_process = min_t(u64, total, nx_sha256_update()
141 to_process = to_process & ~(SHA256_BLOCK_SIZE - 1); nx_sha256_update()
143 data_len = to_process - buf_len; nx_sha256_update()
149 to_process = data_len + buf_len; nx_sha256_update()
150 leftover = total - to_process; nx_sha256_update()
172 total -= to_process; nx_sha256_update()
173 data += to_process - buf_len; nx_sha256_update()
H A Dnx-aes-cbc.c74 unsigned int processed = 0, to_process; cbc_aes_nx_crypt() local
85 to_process = nbytes - processed; cbc_aes_nx_crypt()
87 rc = nx_build_sg_lists(nx_ctx, desc, dst, src, &to_process, cbc_aes_nx_crypt()
107 processed += to_process; cbc_aes_nx_crypt()
H A Dnx-aes-ccm.c283 unsigned int processed = 0, to_process; generate_pat() local
294 to_process = min_t(u32, assoclen - processed, generate_pat()
300 &to_process); generate_pat()
302 if ((to_process + processed) < assoclen) { generate_pat()
330 processed += to_process; generate_pat()
351 unsigned int processed = 0, to_process; ccm_nx_decrypt() local
370 /* to_process: the AES_BLOCK_SIZE data chunk to process in this ccm_nx_decrypt()
373 to_process = nbytes - processed; ccm_nx_decrypt()
375 if ((to_process + processed) < nbytes) ccm_nx_decrypt()
383 &to_process, processed + req->assoclen, ccm_nx_decrypt()
409 processed += to_process; ccm_nx_decrypt()
428 unsigned int processed = 0, to_process; ccm_nx_encrypt() local
442 to_process = nbytes - processed; ccm_nx_encrypt()
444 if ((to_process + processed) < nbytes) ccm_nx_encrypt()
452 &to_process, processed + req->assoclen, ccm_nx_encrypt()
478 processed += to_process; ccm_nx_encrypt()
H A Dnx-aes-ecb.c74 unsigned int processed = 0, to_process; ecb_aes_nx_crypt() local
85 to_process = nbytes - processed; ecb_aes_nx_crypt()
87 rc = nx_build_sg_lists(nx_ctx, desc, dst, src, &to_process, ecb_aes_nx_crypt()
106 processed += to_process; ecb_aes_nx_crypt()
H A Dnx-aes-xcbc.c188 u32 to_process = 0, leftover, total; nx_xcbc_update() local
227 to_process = total - to_process; nx_xcbc_update()
228 to_process = to_process & ~(AES_BLOCK_SIZE - 1); nx_xcbc_update()
230 leftover = total - to_process; nx_xcbc_update()
238 to_process -= AES_BLOCK_SIZE; nx_xcbc_update()
254 data_len = to_process - sctx->count; nx_xcbc_update()
260 if (data_len != to_process - sctx->count) { nx_xcbc_update()
292 total -= to_process; nx_xcbc_update()
293 data += to_process - sctx->count; nx_xcbc_update()
H A Dnx-aes-ctr.c92 unsigned int processed = 0, to_process; ctr_aes_nx_crypt() local
98 to_process = nbytes - processed; ctr_aes_nx_crypt()
100 rc = nx_build_sg_lists(nx_ctx, desc, dst, src, &to_process, ctr_aes_nx_crypt()
121 processed += to_process; ctr_aes_nx_crypt()
H A Dnx.c204 /* update to_process */ nx_walk_and_build()
/linux-4.4.14/drivers/net/ethernet/broadcom/
H A Dbcmsysport.c591 unsigned int processed = 0, to_process; bcm_sysport_desc_rx() local
603 to_process = (RDMA_CONS_INDEX_MASK + 1) - bcm_sysport_desc_rx()
606 to_process = p_index - priv->rx_c_index; bcm_sysport_desc_rx()
609 "p_index=%d rx_c_index=%d to_process=%d\n", bcm_sysport_desc_rx()
610 p_index, priv->rx_c_index, to_process); bcm_sysport_desc_rx()
612 while ((processed < to_process) && (processed < budget)) { bcm_sysport_desc_rx()

Completed in 213 milliseconds