Lines Matching refs:sg
239 struct scatterlist *sg_last, *sg; in qce_ahash_update() local
281 sg = sg_last = req->src; in qce_ahash_update()
283 while (len < nbytes && sg) { in qce_ahash_update()
284 if (len + sg_dma_len(sg) > nbytes) in qce_ahash_update()
286 len += sg_dma_len(sg); in qce_ahash_update()
287 sg_last = sg; in qce_ahash_update()
288 sg = sg_next(sg); in qce_ahash_update()
297 sg_init_table(rctx->sg, 2); in qce_ahash_update()
298 sg_set_buf(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_update()
299 scatterwalk_sg_chain(rctx->sg, 2, req->src); in qce_ahash_update()
300 req->src = rctx->sg; in qce_ahash_update()
324 sg_init_one(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_final()
326 req->src = rctx->sg; in qce_ahash_final()
374 struct scatterlist sg; in qce_ahash_hmac_setkey() local
419 sg_init_one(&sg, buf, keylen); in qce_ahash_hmac_setkey()
420 ahash_request_set_crypt(req, &sg, ctx->authkey, keylen); in qce_ahash_hmac_setkey()