Lines Matching refs:nbytes
1093 static int sg_count(struct scatterlist *sg_list, int nbytes, bool *chained) in sg_count() argument
1099 while (nbytes > 0) { in sg_count()
1101 nbytes -= sg->length; in sg_count()
1372 unsigned int cryptlen = areq->nbytes; in common_nonsnoop()
1469 areq->info, 0, areq->nbytes, 0, ivsize, 0, in ablkcipher_edesc_alloc()
1642 unsigned int nbytes) in ahash_edesc_alloc() argument
1649 nbytes, 0, 0, 0, areq->base.flags, false); in ahash_edesc_alloc()
1696 static int ahash_process_req(struct ahash_request *areq, unsigned int nbytes) in ahash_process_req() argument
1709 if (!req_ctx->last && (nbytes + req_ctx->nbuf <= blocksize)) { in ahash_process_req()
1712 sg_count(areq->src, nbytes, &chained), in ahash_process_req()
1713 req_ctx->buf + req_ctx->nbuf, nbytes); in ahash_process_req()
1714 req_ctx->nbuf += nbytes; in ahash_process_req()
1719 nbytes_to_hash = nbytes + req_ctx->nbuf; in ahash_process_req()
1745 int nents = sg_count(areq->src, nbytes, &chained); in ahash_process_req()
1749 nbytes - to_hash_later); in ahash_process_req()
1786 return ahash_process_req(areq, areq->nbytes); in ahash_update()
1804 return ahash_process_req(areq, areq->nbytes); in ahash_finup()
1815 return ahash_process_req(areq, areq->nbytes); in ahash_digest()