Lines Matching refs:sg
235 struct scatterlist *sg_last, *sg; in qce_ahash_update() local
277 sg = sg_last = req->src; in qce_ahash_update()
279 while (len < nbytes && sg) { in qce_ahash_update()
280 if (len + sg_dma_len(sg) > nbytes) in qce_ahash_update()
282 len += sg_dma_len(sg); in qce_ahash_update()
283 sg_last = sg; in qce_ahash_update()
284 sg = sg_next(sg); in qce_ahash_update()
293 sg_init_table(rctx->sg, 2); in qce_ahash_update()
294 sg_set_buf(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_update()
295 sg_chain(rctx->sg, 2, req->src); in qce_ahash_update()
296 req->src = rctx->sg; in qce_ahash_update()
320 sg_init_one(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_final()
322 req->src = rctx->sg; in qce_ahash_final()
370 struct scatterlist sg; in qce_ahash_hmac_setkey() local
415 sg_init_one(&sg, buf, keylen); in qce_ahash_hmac_setkey()
416 ahash_request_set_crypt(req, &sg, ctx->authkey, keylen); in qce_ahash_hmac_setkey()