Lines Matching refs:total
122 length = rctx->total + rctx->bufcnt; in aspeed_ahash_dma_prepare()
130 if (rctx->total + rctx->bufcnt < ASPEED_CRYPTO_SRC_DMA_BUF_LEN) { in aspeed_ahash_dma_prepare()
133 rctx->offset, rctx->total - remain, 0); in aspeed_ahash_dma_prepare()
134 rctx->offset += rctx->total - remain; in aspeed_ahash_dma_prepare()
174 remain = (rctx->total + rctx->bufcnt) % rctx->block_size; in aspeed_ahash_dma_prepare_sg()
175 length = rctx->total + rctx->bufcnt - remain; in aspeed_ahash_dma_prepare_sg()
178 "rctx total", rctx->total, "bufcnt", rctx->bufcnt, in aspeed_ahash_dma_prepare_sg()
250 rctx->offset = rctx->total - remain; in aspeed_ahash_dma_prepare_sg()
251 hash_engine->src_length = rctx->total + rctx->bufcnt - remain; in aspeed_ahash_dma_prepare_sg()
473 rctx->total - rctx->offset, 0); in aspeed_ahash_update_resume_sg()
475 rctx->bufcnt = rctx->total - rctx->offset; in aspeed_ahash_update_resume_sg()
590 rctx->total = req->nbytes; in aspeed_sham_update()
596 rctx->digcnt[0] += rctx->total; in aspeed_sham_update()
597 if (rctx->digcnt[0] < rctx->total) in aspeed_sham_update()
600 if (rctx->bufcnt + rctx->total < rctx->block_size) { in aspeed_sham_update()
603 rctx->total, 0); in aspeed_sham_update()
604 rctx->bufcnt += rctx->total; in aspeed_sham_update()
630 req->nbytes, rctx->total); in aspeed_sham_final()
731 rctx->total = 0; in aspeed_sham_init()