Lines Matching refs:reqlen

138 static int sg_nents_xlen(struct scatterlist *sg, unsigned int reqlen,  in sg_nents_xlen()  argument
157 while (sg && reqlen) { in sg_nents_xlen()
158 less = min(reqlen, sg_dma_len(sg) - skip_len); in sg_nents_xlen()
160 reqlen -= less; in sg_nents_xlen()
1679 if (nbytes + req_ctx->reqlen >= bs) { in chcr_ahash_update()
1680 remainder = (nbytes + req_ctx->reqlen) % bs; in chcr_ahash_update()
1681 nbytes = nbytes + req_ctx->reqlen - remainder; in chcr_ahash_update()
1684 + req_ctx->reqlen, nbytes, 0); in chcr_ahash_update()
1685 req_ctx->reqlen += nbytes; in chcr_ahash_update()
1709 params.sg_len = chcr_hash_ent_in_wr(req->src, !!req_ctx->reqlen, in chcr_ahash_update()
1713 params.sg_len = rounddown(params.sg_len + req_ctx->reqlen, bs) - in chcr_ahash_update()
1714 req_ctx->reqlen; in chcr_ahash_update()
1718 params.bfr_len = req_ctx->reqlen; in chcr_ahash_update()
1738 req_ctx->reqlen = remainder; in chcr_ahash_update()
1799 params.bfr_len = req_ctx->reqlen; in chcr_ahash_final()
1802 if (req_ctx->reqlen == 0) { in chcr_ahash_final()
1820 req_ctx->reqlen = 0; in chcr_ahash_final()
1875 params.sg_len = chcr_hash_ent_in_wr(req->src, !!req_ctx->reqlen, in chcr_ahash_finup()
1884 params.sg_len = rounddown(params.sg_len + req_ctx->reqlen, bs) in chcr_ahash_finup()
1885 - req_ctx->reqlen; in chcr_ahash_finup()
1893 params.scmd1 = req_ctx->data_len + req_ctx->reqlen + in chcr_ahash_finup()
1896 params.bfr_len = req_ctx->reqlen; in chcr_ahash_finup()
1900 if ((req_ctx->reqlen + req->nbytes) == 0) { in chcr_ahash_finup()
1912 req_ctx->reqlen = 0; in chcr_ahash_finup()
1971 params.sg_len = chcr_hash_ent_in_wr(req->src, !!req_ctx->reqlen, in chcr_ahash_digest()
2109 if (hctx_wr->isfinal || ((hctx_wr->processed + reqctx->reqlen) == in chcr_handle_ahash_resp()
2171 state->reqlen = req_ctx->reqlen; in chcr_ahash_export()
2173 memcpy(state->bfr1, req_ctx->reqbfr, req_ctx->reqlen); in chcr_ahash_export()
2185 req_ctx->reqlen = state->reqlen; in chcr_ahash_import()
2300 req_ctx->reqlen = 0; in chcr_sha_init()