Lines Matching refs:block_size
134 remain = length % rctx->block_size; in aspeed_ahash_dma_prepare()
185 remain = (rctx->total + rctx->bufcnt) % rctx->block_size; in aspeed_ahash_dma_prepare_sg()
216 rctx->block_size * 2, in aspeed_ahash_dma_prepare_sg()
271 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_dma_prepare_sg()
312 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_transfer()
373 rctx->block_size * 2, DMA_TO_DEVICE); in aspeed_ahash_hmac_resume()
376 memcpy(rctx->buffer, bctx->opad, rctx->block_size); in aspeed_ahash_hmac_resume()
377 memcpy(rctx->buffer + rctx->block_size, rctx->digest, rctx->digsize); in aspeed_ahash_hmac_resume()
379 rctx->bufcnt = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume()
380 rctx->digcnt[0] = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume()
395 rctx->block_size * 2, in aspeed_ahash_hmac_resume()
439 rctx->block_size * 2, in aspeed_ahash_req_final()
477 rctx->block_size * 2, in aspeed_ahash_update_resume_sg()
607 if (rctx->bufcnt + rctx->total < rctx->block_size) { in aspeed_sham_update()
688 rctx->block_size = SHA1_BLOCK_SIZE; in aspeed_sham_init()
697 rctx->block_size = SHA224_BLOCK_SIZE; in aspeed_sham_init()
706 rctx->block_size = SHA256_BLOCK_SIZE; in aspeed_sham_init()
716 rctx->block_size = SHA384_BLOCK_SIZE; in aspeed_sham_init()
726 rctx->block_size = SHA512_BLOCK_SIZE; in aspeed_sham_init()
744 rctx->digcnt[0] = rctx->block_size; in aspeed_sham_init()
745 rctx->bufcnt = rctx->block_size; in aspeed_sham_init()
746 memcpy(rctx->buffer, bctx->ipad, rctx->block_size); in aspeed_sham_init()
772 rctx->block_size = SHA512_BLOCK_SIZE; in aspeed_sha512s_init()
782 rctx->block_size = SHA512_BLOCK_SIZE; in aspeed_sha512s_init()
800 rctx->digcnt[0] = rctx->block_size; in aspeed_sha512s_init()
801 rctx->bufcnt = rctx->block_size; in aspeed_sha512s_init()
802 memcpy(rctx->buffer, bctx->ipad, rctx->block_size); in aspeed_sha512s_init()