diff options
author | Ovidiu Panait <ovidiu.panait.oss@gmail.com> | 2025-09-02 16:21:33 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-09-13 12:11:05 +0800 |
commit | c3a61eea658a9f6808a3d466a0978320b3855b49 (patch) | |
tree | a6a32243d97d04d07f157cf159b45bb8577bd4e7 /rust/kernel/irq/request.rs | |
parent | 49034c03b5814ba4257927be2916bdadfe281be7 (diff) |
crypto: sun8i-ce - save hash buffers and dma info to request context
Similar to sun8i-ce skcipher code, move all request-specific data to
request context. This simplifies sun8i_ce_hash_run() and it eliminates
the remaining kmalloc() calls from the digest path.
Since the 'result' buffer in the request ctx struct is used for from-device
DMA, it needs to be properly aligned to CRYPTO_DMA_ALIGN. Therefore:
- increase reqsize by CRYPTO_DMA_PADDING
- add __aligned(CRYPTO_DMA_ALIGN) attribute for the 'result' buffer
- convert all ahash_request_ctx_dma() calls to ahash_request_ctx_dma()
Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'rust/kernel/irq/request.rs')
0 files changed, 0 insertions, 0 deletions