Lines Matching refs:total_in

147 	size_t                  total_in;  member
318 ret = stm32_cryp_check_aligned(cryp->in_sg, cryp->total_in, in stm32_cryp_check_io_aligned()
346 int pages, total_in, total_out; in stm32_cryp_copy_sgs() local
353 total_in = ALIGN(cryp->total_in, cryp->hw_blocksize); in stm32_cryp_copy_sgs()
354 pages = total_in ? get_order(total_in) : 1; in stm32_cryp_copy_sgs()
367 sg_copy_buf(buf_in, cryp->in_sg, 0, cryp->total_in, 0); in stm32_cryp_copy_sgs()
369 sg_init_one(&cryp->in_sgl, buf_in, total_in); in stm32_cryp_copy_sgs()
947 cryp->total_in = req->cryptlen; in stm32_cryp_prepare_req()
948 cryp->total_out = cryp->total_in; in stm32_cryp_prepare_req()
974 cryp->total_in = areq->assoclen + areq->cryptlen; in stm32_cryp_prepare_req()
977 cryp->total_out = cryp->total_in + cryp->authsize; in stm32_cryp_prepare_req()
980 cryp->total_out = cryp->total_in - cryp->authsize; in stm32_cryp_prepare_req()
983 cryp->total_in_save = cryp->total_in; in stm32_cryp_prepare_req()
990 cryp->in_sg_len = sg_nents_for_len(cryp->in_sg, cryp->total_in); in stm32_cryp_prepare_req()
1281 return !(cryp->total_out - tag_size) || !cryp->total_in; in stm32_cryp_irq_read_data()
1300 if (likely(cryp->total_in - tag_size >= sizeof(u32))) { in stm32_cryp_irq_write_block()
1305 cryp->total_in -= sizeof(u32); in stm32_cryp_irq_write_block()
1306 } else if (cryp->total_in == tag_size) { in stm32_cryp_irq_write_block()
1312 for (j = 0; j < cryp->total_in - tag_size; j++) { in stm32_cryp_irq_write_block()
1318 cryp->total_in = tag_size; in stm32_cryp_irq_write_block()
1327 size_t total_in_ori = cryp->total_in; in stm32_cryp_irq_write_gcm_padded_data()
1353 cryp->total_in = total_in_ori; in stm32_cryp_irq_write_gcm_padded_data()
1378 if (cryp->total_in) in stm32_cryp_irq_write_gcm_padded_data()
1383 cryp->total_in -= min_t(size_t, sizeof(u32), cryp->total_in); in stm32_cryp_irq_write_gcm_padded_data()
1409 payload_bytes = is_decrypt(cryp) ? cryp->total_in - cryp->authsize : in stm32_cryp_irq_set_npblb()
1410 cryp->total_in; in stm32_cryp_irq_set_npblb()
1421 size_t last_total_out, total_in_ori = cryp->total_in; in stm32_cryp_irq_write_ccm_padded_data()
1456 cryp->total_in = total_in_ori; in stm32_cryp_irq_write_ccm_padded_data()
1504 if (unlikely(!cryp->total_in)) { in stm32_cryp_irq_write_data()
1509 if (unlikely(cryp->total_in < AES_BLOCK_SIZE && in stm32_cryp_irq_write_data()
1521 if (unlikely((cryp->total_in - cryp->authsize < AES_BLOCK_SIZE) && in stm32_cryp_irq_write_data()
1551 cryp->total_in -= min_t(size_t, sizeof(u32), cryp->total_in); in stm32_cryp_irq_write_gcm_header()
1554 if ((cryp->total_in_save - cryp->total_in) == in stm32_cryp_irq_write_gcm_header()
1586 if (!cryp->total_in) in stm32_cryp_irq_write_gcm_header()
1614 cryp->total_in -= min_t(size_t, 2, cryp->total_in); in stm32_cryp_irq_write_ccm_header()
1635 cryp->total_in -= min_t(size_t, 2, cryp->total_in); in stm32_cryp_irq_write_ccm_header()
1647 cryp->total_in -= min_t(size_t, 1, cryp->total_in); in stm32_cryp_irq_write_ccm_header()
1648 if ((cryp->total_in_save - cryp->total_in) == alen) in stm32_cryp_irq_write_ccm_header()
1654 if ((cryp->total_in_save - cryp->total_in) == alen) { in stm32_cryp_irq_write_ccm_header()