diff options
author | Ruchika Gupta <ruchika.gupta@freescale.com> | 2013-10-25 06:31:02 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-08 00:22:26 (GMT) |
commit | df85548b8be6be209af0c5eaa73cbee8d8748d33 (patch) | |
tree | 91fdb790aa048fd625179e119ae7a0954307bcb9 /drivers/crypto/caam/intern.h | |
parent | 3ccdc959a0597c7cbe71be371d2f05b01ecab8f3 (diff) | |
download | linux-fsl-qoriq-df85548b8be6be209af0c5eaa73cbee8d8748d33.tar.xz |
crypto: caam - Add API's to allocate/free Job Rings
With each of the Job Ring available as a platform device, the
Job Ring driver needs to take care of allocation/deallocation
of the Job Rings to the above interface layers. Added APIs
in Job Ring Driver to allocate/free Job rings
Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Reviewed-by: Garg Vakul-B16394 <vakul@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 07defbfb0fd662272dff5207001a0a5e09aeaeec)
Diffstat (limited to 'drivers/crypto/caam/intern.h')
-rw-r--r-- | drivers/crypto/caam/intern.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/caam/intern.h b/drivers/crypto/caam/intern.h index bff4acd..b781445 100644 --- a/drivers/crypto/caam/intern.h +++ b/drivers/crypto/caam/intern.h @@ -44,6 +44,9 @@ struct caam_drv_private_jr { struct tasklet_struct irqtask; int irq; /* One per queue */ + /* Number of scatterlist crypt transforms active on the JobR */ + atomic_t tfm_count ____cacheline_aligned; + /* Job ring info */ int ringsize; /* Size of rings (assume input = output) */ struct caam_jrentry_info *entinfo; /* Alloc'ed 1 per ring entry */ |