Lines Matching refs:src_sg
27 struct scatterlist *src_sg = areq->src; in meson_cipher_need_fallback() local
33 if (sg_nents(src_sg) != sg_nents(dst_sg)) in meson_cipher_need_fallback()
37 if (sg_nents(src_sg) > MAXDESC - 3 || sg_nents(dst_sg) > MAXDESC - 3) in meson_cipher_need_fallback()
40 while (src_sg && dst_sg) { in meson_cipher_need_fallback()
41 if ((src_sg->length % 16) != 0) in meson_cipher_need_fallback()
45 if (src_sg->length != dst_sg->length) in meson_cipher_need_fallback()
47 if (!IS_ALIGNED(src_sg->offset, sizeof(u32))) in meson_cipher_need_fallback()
51 src_sg = sg_next(src_sg); in meson_cipher_need_fallback()
94 struct scatterlist *src_sg = areq->src; in meson_cipher() local
203 src_sg = areq->src; in meson_cipher()
206 while (src_sg) { in meson_cipher()
210 desc->t_src = cpu_to_le32(sg_dma_address(src_sg)); in meson_cipher()
212 todo = min(len, sg_dma_len(src_sg)); in meson_cipher()
218 if (!sg_next(src_sg)) in meson_cipher()
222 src_sg = sg_next(src_sg); in meson_cipher()