Lines Matching refs:in_sg
108 #define _walked_in (cryp->in_walk.offset - cryp->in_sg->offset)
152 struct scatterlist *in_sg; member
318 ret = stm32_cryp_check_aligned(cryp->in_sg, cryp->total_in, in stm32_cryp_check_io_aligned()
367 sg_copy_buf(buf_in, cryp->in_sg, 0, cryp->total_in, 0); in stm32_cryp_copy_sgs()
370 cryp->in_sg = &cryp->in_sgl; in stm32_cryp_copy_sgs()
986 cryp->in_sg = req ? req->src : areq->src; 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()
1008 scatterwalk_start(&cryp->in_walk, cryp->in_sg); in stm32_cryp_prepare_req()
1095 if (unlikely(cryp->in_sg->length == _walked_in)) { in stm32_cryp_next_in()
1096 cryp->in_sg = sg_next(cryp->in_sg); in stm32_cryp_next_in()
1097 if (cryp->in_sg) { in stm32_cryp_next_in()
1098 scatterwalk_start(&cryp->in_walk, cryp->in_sg); in stm32_cryp_next_in()
1099 return (sg_virt(cryp->in_sg) + _walked_in); in stm32_cryp_next_in()
1198 scatterwalk_map_and_copy(in_tag, cryp->in_sg, in stm32_cryp_read_auth_tag()
1297 src = sg_virt(cryp->in_sg) + _walked_in; in stm32_cryp_irq_write_block()
1545 src = sg_virt(cryp->in_sg) + _walked_in; in stm32_cryp_irq_write_gcm_header()
1598 src = sg_virt(cryp->in_sg) + _walked_in; in stm32_cryp_irq_write_ccm_header()