summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam/desc.h
diff options
context:
space:
mode:
authorCristian Stoica <cristian.stoica@freescale.com>2016-05-19 17:11:18 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-05-31 10:41:53 +0200
commitbd52f1c23255a7c355268215c3c75aabbe11a67a (patch)
tree8bdcc1b3c872e0f8749d0506625b48caf0e2134f /drivers/crypto/caam/desc.h
parentpowerpc: add io{read,write}64 accessors (diff)
downloadlinux-bd52f1c23255a7c355268215c3c75aabbe11a67a.tar.xz
linux-bd52f1c23255a7c355268215c3c75aabbe11a67a.zip
crypto: caam - fix offset field in hw sg entries
The offset field is 13 bits wide; make sure we don't overwrite more than that in the caam hardware scatter gather structure. Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com> Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/desc.h')
-rw-r--r--drivers/crypto/caam/desc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/desc.h b/drivers/crypto/caam/desc.h
index 1e93c6af2275..fe30ff69088c 100644
--- a/drivers/crypto/caam/desc.h
+++ b/drivers/crypto/caam/desc.h
@@ -20,7 +20,7 @@
#define SEC4_SG_BPID_MASK 0x000000ff
#define SEC4_SG_BPID_SHIFT 16
#define SEC4_SG_LEN_MASK 0x3fffffff /* Excludes EXT and FINAL */
-#define SEC4_SG_OFFS_MASK 0x00001fff
+#define SEC4_SG_OFFSET_MASK 0x00001fff
struct sec4_sg_entry {
#ifdef CONFIG_CRYPTO_DEV_FSL_CAAM_IMX