Home
last modified time | relevance | path

Searched refs:digcnt (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/crypto/
Datmel-sha.c95 u64 digcnt[2]; member
367 size[0] = ctx->digcnt[0]; in atmel_sha_fill_padding()
368 size[1] = ctx->digcnt[1]; in atmel_sha_fill_padding()
466 ctx->digcnt[0] = 0; in atmel_sha_init()
467 ctx->digcnt[1] = 0; in atmel_sha_init()
520 if (!(ctx->digcnt[0] || ctx->digcnt[1])) { in atmel_sha_write_ctrl()
569 ctx->digcnt[1], ctx->digcnt[0], length, final); in atmel_sha_xmit_cpu()
574 ctx->digcnt[0] += length; in atmel_sha_xmit_cpu()
575 if (ctx->digcnt[0] < length) in atmel_sha_xmit_cpu()
576 ctx->digcnt[1]++; in atmel_sha_xmit_cpu()
[all …]
Domap-sham.c150 size_t digcnt; member
376 if (likely(ctx->digcnt)) in omap_sham_write_ctrl_omap2()
377 omap_sham_write(dd, SHA_REG_DIGCNT(dd), ctx->digcnt); in omap_sham_write_ctrl_omap2()
388 if (!ctx->digcnt) in omap_sham_write_ctrl_omap2()
445 if (likely(ctx->digcnt)) in omap_sham_write_ctrl_omap4()
446 omap_sham_write(dd, SHA_REG_DIGCNT(dd), ctx->digcnt); in omap_sham_write_ctrl_omap4()
454 if (!ctx->digcnt) { in omap_sham_write_ctrl_omap4()
470 ctx->digcnt += bs; in omap_sham_write_ctrl_omap4()
515 ctx->digcnt, length, final); in omap_sham_xmit_cpu()
521 ctx->digcnt += length; in omap_sham_xmit_cpu()
[all …]
Ds5p-sss.c360 u64 digcnt; member
942 if (likely(ctx->digcnt)) { in s5p_hash_write_ctrl()
952 tmplen = ctx->digcnt * 8; in s5p_hash_write_ctrl()
999 ctx->digcnt += length; in s5p_hash_xmit_dma()
1315 if (ctx->digcnt) in s5p_hash_finish()
1318 dev_dbg(dd->dev, "hash_finish digcnt: %lld\n", ctx->digcnt); in s5p_hash_finish()
1414 if (ctx->digcnt) in s5p_hash_handle_queue()
1553 if (!ctx->digcnt && ctx->bufcnt < BUFLEN) { in s5p_hash_final()
1606 ctx->digcnt = 0; in s5p_hash_init()
/linux-6.1.9/drivers/crypto/aspeed/
Daspeed-hace-hash.c100 bits[0] = cpu_to_be64(rctx->digcnt[0] << 3); in aspeed_ahash_fill_padding()
109 bits[1] = cpu_to_be64(rctx->digcnt[0] << 3); in aspeed_ahash_fill_padding()
110 bits[0] = cpu_to_be64(rctx->digcnt[1] << 3 | in aspeed_ahash_fill_padding()
111 rctx->digcnt[0] >> 61); in aspeed_ahash_fill_padding()
380 rctx->digcnt[0] = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume()
603 rctx->digcnt[0] += rctx->total; in aspeed_sham_update()
604 if (rctx->digcnt[0] < rctx->total) in aspeed_sham_update()
605 rctx->digcnt[1]++; in aspeed_sham_update()
739 rctx->digcnt[0] = 0; in aspeed_sham_init()
740 rctx->digcnt[1] = 0; in aspeed_sham_init()
[all …]
Daspeed-hace.h213 u64 digcnt[2]; member
/linux-6.1.9/drivers/crypto/axis/
Dartpec6_crypto.c297 u64 digcnt; member
308 u64 digcnt; member
1447 req_ctx->digcnt += ready_bytes; in artpec6_crypto_prepare_hash()
1474 req_ctx->digcnt += req_ctx->partial_bytes; in artpec6_crypto_prepare_hash()
1479 digest_bits = 8 * (req_ctx->digcnt + blocksize); in artpec6_crypto_prepare_hash()
1481 digest_bits = 8 * req_ctx->digcnt; in artpec6_crypto_prepare_hash()
1485 req_ctx->digcnt, digest_bits); in artpec6_crypto_prepare_hash()
1490 req_ctx->digcnt = 0; in artpec6_crypto_prepare_hash()
2444 state->digcnt = ctx->digcnt; in artpec6_crypto_hash_export()
2470 ctx->digcnt = state->digcnt; in artpec6_crypto_hash_import()
/linux-6.1.9/drivers/crypto/stm32/
Dstm32-hash.c130 size_t digcnt; member
693 rctx->digcnt = crypto_ahash_digestsize(tfm); in stm32_hash_init()
694 switch (rctx->digcnt) { in stm32_hash_init()
785 memcpy(req->result, rctx->digest, rctx->digcnt); in stm32_hash_finish()