crypto: scatterwalk - Add support for calculating number of SG elements
authorJoel Fernandes <joelf@ti.com>
Sun, 18 Aug 2013 02:42:22 +0000 (21:42 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 21 Aug 2013 11:27:58 +0000 (21:27 +1000)
commit257aff515409f9455edff3a946344e71baf9e116
tree01dea1b98b5d1534a2530698171e414e2bb1dfda
parentb4eba0ca341fb6ad0199ab3f2244aa7e0c4cb34d
crypto: scatterwalk - Add support for calculating number of SG elements

Crypto layer only passes nbytes to encrypt but in omap-aes driver we need to
know number of SG elements to pass to dmaengine slave API.  We add function for
the same to scatterwalk library.

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