Lines Matching refs:sg

173 	struct scatterlist sg[3];  in crypto_ccm_auth()  local
183 sg_init_table(sg, 3); in crypto_ccm_auth()
184 sg_set_buf(&sg[0], odata, 16); in crypto_ccm_auth()
189 sg_set_buf(&sg[1], idata, ilen); in crypto_ccm_auth()
190 sg_chain(sg, 3, req->src); in crypto_ccm_auth()
193 sg_chain(sg, 2, req->src); in crypto_ccm_auth()
198 ahash_request_set_crypt(ahreq, sg, NULL, assoclen + ilen + 16); in crypto_ccm_auth()
210 sg_init_table(sg, 2); in crypto_ccm_auth()
211 sg_set_buf(&sg[0], idata, ilen); in crypto_ccm_auth()
213 sg_chain(sg, 2, plain); in crypto_ccm_auth()
214 plain = sg; in crypto_ccm_auth()
250 struct scatterlist *sg; in crypto_ccm_init_crypt() local
267 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_ccm_init_crypt()
268 if (sg != pctx->src + 1) in crypto_ccm_init_crypt()
269 sg_chain(pctx->src, 2, sg); in crypto_ccm_init_crypt()
274 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); in crypto_ccm_init_crypt()
275 if (sg != pctx->dst + 1) in crypto_ccm_init_crypt()
276 sg_chain(pctx->dst, 2, sg); in crypto_ccm_init_crypt()
605 struct scatterlist *sg; in crypto_rfc4309_crypt() local
619 sg = scatterwalk_ffwd(rctx->src + 1, req->src, req->assoclen); in crypto_rfc4309_crypt()
620 if (sg != rctx->src + 1) in crypto_rfc4309_crypt()
621 sg_chain(rctx->src, 2, sg); in crypto_rfc4309_crypt()
626 sg = scatterwalk_ffwd(rctx->dst + 1, req->dst, req->assoclen); in crypto_rfc4309_crypt()
627 if (sg != rctx->dst + 1) in crypto_rfc4309_crypt()
628 sg_chain(rctx->dst, 2, sg); in crypto_rfc4309_crypt()