Lines Matching refs:reqlen

134 static int sg_nents_xlen(struct scatterlist *sg, unsigned int reqlen,  in sg_nents_xlen()  argument
153 while (sg && reqlen) { in sg_nents_xlen()
154 less = min(reqlen, sg_dma_len(sg) - skip_len); in sg_nents_xlen()
156 reqlen -= less; in sg_nents_xlen()
1677 if (nbytes + req_ctx->reqlen >= bs) { in chcr_ahash_update()
1678 remainder = (nbytes + req_ctx->reqlen) % bs; in chcr_ahash_update()
1679 nbytes = nbytes + req_ctx->reqlen - remainder; in chcr_ahash_update()
1682 + req_ctx->reqlen, nbytes, 0); in chcr_ahash_update()
1683 req_ctx->reqlen += nbytes; in chcr_ahash_update()
1707 params.sg_len = chcr_hash_ent_in_wr(req->src, !!req_ctx->reqlen, in chcr_ahash_update()
1711 params.sg_len = rounddown(params.sg_len + req_ctx->reqlen, bs) - in chcr_ahash_update()
1712 req_ctx->reqlen; in chcr_ahash_update()
1716 params.bfr_len = req_ctx->reqlen; in chcr_ahash_update()
1736 req_ctx->reqlen = remainder; in chcr_ahash_update()
1797 params.bfr_len = req_ctx->reqlen; in chcr_ahash_final()
1800 if (req_ctx->reqlen == 0) { in chcr_ahash_final()
1818 req_ctx->reqlen = 0; in chcr_ahash_final()
1873 params.sg_len = chcr_hash_ent_in_wr(req->src, !!req_ctx->reqlen, in chcr_ahash_finup()
1882 params.sg_len = rounddown(params.sg_len + req_ctx->reqlen, bs) in chcr_ahash_finup()
1883 - req_ctx->reqlen; in chcr_ahash_finup()
1891 params.scmd1 = req_ctx->data_len + req_ctx->reqlen + in chcr_ahash_finup()
1894 params.bfr_len = req_ctx->reqlen; in chcr_ahash_finup()
1898 if ((req_ctx->reqlen + req->nbytes) == 0) { in chcr_ahash_finup()
1910 req_ctx->reqlen = 0; in chcr_ahash_finup()
1969 params.sg_len = chcr_hash_ent_in_wr(req->src, !!req_ctx->reqlen, in chcr_ahash_digest()
2107 if (hctx_wr->isfinal || ((hctx_wr->processed + reqctx->reqlen) == in chcr_handle_ahash_resp()
2169 state->reqlen = req_ctx->reqlen; in chcr_ahash_export()
2171 memcpy(state->bfr1, req_ctx->reqbfr, req_ctx->reqlen); in chcr_ahash_export()
2183 req_ctx->reqlen = state->reqlen; in chcr_ahash_import()
2298 req_ctx->reqlen = 0; in chcr_sha_init()