]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: marvell - Copy IV vectors by DMA transfers for acipher requests
authorRomain Perier <romain.perier@free-electrons.com>
Tue, 21 Jun 2016 08:08:34 +0000 (10:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:14:03 +0000 (18:14 +0800)
commita92bad0bcb39efcaeb544b6652b9afbc725777b0
tree0eb0fdc0a856f601eab7f627ffe10e5312d90a3b
parent7d0e4dbfc3fd33696ff2dd6dcd6cc053eb32efc8
crypto: marvell - Copy IV vectors by DMA transfers for acipher requests

Add a TDMA descriptor at the end of the request for copying the
output IV vector via a DMA transfer. This is a good way for offloading
as much as processing as possible to the DMA and the crypto engine.
This is also required for processing multiple cipher requests
in chained mode, otherwise the content of the IV vector would be
overwritten by the last processed request.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/cesa.c
drivers/crypto/marvell/cesa.h
drivers/crypto/marvell/cipher.c
drivers/crypto/marvell/tdma.c