Lines Matching refs:sg

28 	struct scatterlist *sg;  in sl3516_ce_need_fallback()  local
49 sg = areq->src; in sl3516_ce_need_fallback()
50 while (sg) { in sl3516_ce_need_fallback()
51 if ((sg->length % 16) != 0) { in sl3516_ce_need_fallback()
55 if ((sg_dma_len(sg) % 16) != 0) { in sl3516_ce_need_fallback()
59 if (!IS_ALIGNED(sg->offset, 16)) { in sl3516_ce_need_fallback()
63 sg = sg_next(sg); in sl3516_ce_need_fallback()
65 sg = areq->dst; in sl3516_ce_need_fallback()
66 while (sg) { in sl3516_ce_need_fallback()
67 if ((sg->length % 16) != 0) { in sl3516_ce_need_fallback()
71 if ((sg_dma_len(sg) % 16) != 0) { in sl3516_ce_need_fallback()
75 if (!IS_ALIGNED(sg->offset, 16)) { in sl3516_ce_need_fallback()
79 sg = sg_next(sg); in sl3516_ce_need_fallback()
131 struct scatterlist *sg; in sl3516_ce_cipher() local
177 sg = areq->src; in sl3516_ce_cipher()
178 while (i < nr_sgs && sg && len) { in sl3516_ce_cipher()
179 if (sg_dma_len(sg) == 0) in sl3516_ce_cipher()
181 rctx->t_src[i].addr = sg_dma_address(sg); in sl3516_ce_cipher()
182 todo = min(len, sg_dma_len(sg)); in sl3516_ce_cipher()
185 areq->cryptlen, i, rctx->t_src[i].len, sg->offset, todo); in sl3516_ce_cipher()
189 sg = sg_next(sg); in sl3516_ce_cipher()
199 sg = areq->dst; in sl3516_ce_cipher()
200 while (i < nr_sgd && sg && len) { in sl3516_ce_cipher()
201 if (sg_dma_len(sg) == 0) in sl3516_ce_cipher()
203 rctx->t_dst[i].addr = sg_dma_address(sg); in sl3516_ce_cipher()
204 todo = min(len, sg_dma_len(sg)); in sl3516_ce_cipher()
207 areq->cryptlen, i, rctx->t_dst[i].len, sg->offset, todo); in sl3516_ce_cipher()
212 sg = sg_next(sg); in sl3516_ce_cipher()