• Home
  • Raw
  • Download

Lines Matching refs:sg

27 	struct scatterlist *sg;  in sun8i_ss_need_fallback()  local
35 sg = areq->src; in sun8i_ss_need_fallback()
36 while (sg) { in sun8i_ss_need_fallback()
37 if ((sg->length % 16) != 0) in sun8i_ss_need_fallback()
39 if ((sg_dma_len(sg) % 16) != 0) in sun8i_ss_need_fallback()
41 if (!IS_ALIGNED(sg->offset, 16)) in sun8i_ss_need_fallback()
43 sg = sg_next(sg); in sun8i_ss_need_fallback()
45 sg = areq->dst; in sun8i_ss_need_fallback()
46 while (sg) { in sun8i_ss_need_fallback()
47 if ((sg->length % 16) != 0) in sun8i_ss_need_fallback()
49 if ((sg_dma_len(sg) % 16) != 0) in sun8i_ss_need_fallback()
51 if (!IS_ALIGNED(sg->offset, 16)) in sun8i_ss_need_fallback()
53 sg = sg_next(sg); in sun8i_ss_need_fallback()
102 struct scatterlist *sg = areq->src; in sun8i_ss_setup_ivs() local
119 while (sg && len) { in sun8i_ss_setup_ivs()
120 if (sg_dma_len(sg) == 0) { in sun8i_ss_setup_ivs()
121 sg = sg_next(sg); in sun8i_ss_setup_ivs()
137 todo = min(len, sg_dma_len(sg)); in sun8i_ss_setup_ivs()
141 offset = sg->length - ivsize; in sun8i_ss_setup_ivs()
142 scatterwalk_map_and_copy(sf->iv[i], sg, offset, ivsize, 0); in sun8i_ss_setup_ivs()
145 sg = sg_next(sg); in sun8i_ss_setup_ivs()
168 struct scatterlist *sg; in sun8i_ss_cipher() local
232 sg = areq->src; in sun8i_ss_cipher()
233 while (i < nr_sgs && sg && len) { in sun8i_ss_cipher()
234 if (sg_dma_len(sg) == 0) in sun8i_ss_cipher()
236 rctx->t_src[i].addr = sg_dma_address(sg); in sun8i_ss_cipher()
237 todo = min(len, sg_dma_len(sg)); in sun8i_ss_cipher()
240 areq->cryptlen, i, rctx->t_src[i].len, sg->offset, todo); in sun8i_ss_cipher()
244 sg = sg_next(sg); in sun8i_ss_cipher()
254 sg = areq->dst; in sun8i_ss_cipher()
255 while (i < nr_sgd && sg && len) { in sun8i_ss_cipher()
256 if (sg_dma_len(sg) == 0) in sun8i_ss_cipher()
258 rctx->t_dst[i].addr = sg_dma_address(sg); in sun8i_ss_cipher()
259 todo = min(len, sg_dma_len(sg)); in sun8i_ss_cipher()
262 areq->cryptlen, i, rctx->t_dst[i].len, sg->offset, todo); in sun8i_ss_cipher()
266 sg = sg_next(sg); in sun8i_ss_cipher()