]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: omap-aes - Populate number of SG elements
authorJoel Fernandes <joelf@ti.com>
Sun, 18 Aug 2013 02:42:24 +0000 (21:42 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 21 Aug 2013 11:27:59 +0000 (21:27 +1000)
commite77c756eca76077032db23d8d4b85dcd743742b4
tree33f55e0e38d5aab727cb52d6c23f5e6bed781ecf
parent016af9b5c51e58ecda573f14dabe85a67363b20f
crypto: omap-aes - Populate number of SG elements

Crypto layer only passes nbytes but number of SG elements is needed for mapping
or unmapping SGs at one time using dma_map* API and also needed to pass in for
dmaengine prep function.

We call function added to scatterwalk for this purpose in omap_aes_handle_queue
to populate the values which are used later.

Signed-off-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c