diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2017-02-10 15:07:19 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-02-15 08:23:39 +0300 |
commit | fa0c92db1eb818a36c1b837b5f6da7e95b181247 (patch) | |
tree | ea919e3f21fb0fbff4c7e5dd6e4eadf88904371e /drivers/crypto/atmel-tdes-regs.h | |
parent | fd144d83cc42cfe6c82cba76bc0113dacd53a4d4 (diff) | |
download | linux-fa0c92db1eb818a36c1b837b5f6da7e95b181247.tar.xz |
crypto: caam - replace sg_count() with sg_nents_for_len()
Replace internal sg_count() function and the convoluted logic
around it with the standard sg_nents_for_len() function.
src_nents, dst_nents now hold the number of SW S/G entries,
instead of the HW S/G table entries.
With this change, null (zero length) input data for AEAD case
needs to be handled in a visible way. req->src is no longer
(un)mapped, pointer address is set to 0 in SEQ IN PTR command.
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/atmel-tdes-regs.h')
0 files changed, 0 insertions, 0 deletions