Home
last modified time | relevance | path

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

/linux-6.6.21/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.c146 size_t digcnt; member
371 if (likely(ctx->digcnt)) in omap_sham_write_ctrl_omap2()
372 omap_sham_write(dd, SHA_REG_DIGCNT(dd), ctx->digcnt); in omap_sham_write_ctrl_omap2()
383 if (!ctx->digcnt) in omap_sham_write_ctrl_omap2()
440 if (likely(ctx->digcnt)) in omap_sham_write_ctrl_omap4()
441 omap_sham_write(dd, SHA_REG_DIGCNT(dd), ctx->digcnt); in omap_sham_write_ctrl_omap4()
449 if (!ctx->digcnt) { in omap_sham_write_ctrl_omap4()
465 ctx->digcnt += bs; in omap_sham_write_ctrl_omap4()
510 ctx->digcnt, length, final); in omap_sham_xmit_cpu()
516 ctx->digcnt += length; in omap_sham_xmit_cpu()
[all …]
Ds5p-sss.c359 u64 digcnt; member
941 if (likely(ctx->digcnt)) { in s5p_hash_write_ctrl()
951 tmplen = ctx->digcnt * 8; in s5p_hash_write_ctrl()
998 ctx->digcnt += length; in s5p_hash_xmit_dma()
1314 if (ctx->digcnt) in s5p_hash_finish()
1317 dev_dbg(dd->dev, "hash_finish digcnt: %lld\n", ctx->digcnt); in s5p_hash_finish()
1413 if (ctx->digcnt) in s5p_hash_handle_queue()
1552 if (!ctx->digcnt && ctx->bufcnt < BUFLEN) { in s5p_hash_final()
1605 ctx->digcnt = 0; in s5p_hash_init()
/linux-6.6.21/drivers/crypto/aspeed/
Daspeed-hace-hash.c89 bits[0] = cpu_to_be64(rctx->digcnt[0] << 3); in aspeed_ahash_fill_padding()
98 bits[1] = cpu_to_be64(rctx->digcnt[0] << 3); in aspeed_ahash_fill_padding()
99 bits[0] = cpu_to_be64(rctx->digcnt[1] << 3 | in aspeed_ahash_fill_padding()
100 rctx->digcnt[0] >> 61); in aspeed_ahash_fill_padding()
369 rctx->digcnt[0] = rctx->block_size + rctx->digsize; in aspeed_ahash_hmac_resume()
596 rctx->digcnt[0] += rctx->total; in aspeed_sham_update()
597 if (rctx->digcnt[0] < rctx->total) in aspeed_sham_update()
598 rctx->digcnt[1]++; in aspeed_sham_update()
732 rctx->digcnt[0] = 0; in aspeed_sham_init()
733 rctx->digcnt[1] = 0; in aspeed_sham_init()
[all …]
Daspeed-hace.h201 u64 digcnt[2]; member
/linux-6.6.21/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.6.21/drivers/crypto/stm32/
Dstm32-hash.c159 size_t digcnt; member
811 rctx->digcnt = crypto_ahash_digestsize(tfm); in stm32_hash_init()
812 switch (rctx->digcnt) { in stm32_hash_init()
963 memcpy(req->result, rctx->digest, rctx->digcnt); in stm32_hash_finish()