linux/drivers/crypto/nx
Dan Streetman 2c6f6eabc0 crypto: nx - replace NX842_MEM_COMPRESS with function
Replace the NX842_MEM_COMPRESS define with a function that returns the
specific platform driver's required working memory size.

The common nx-842.c driver refuses to load if there is no platform
driver present, so instead of defining an approximate working memory
size that's the maximum approximate size of both platform driver's
size requirements, the platform driver can directly provide its
specific, i.e. sizeof(struct nx842_workmem), size requirements which
the 842-nx crypto compression driver will use.

This saves memory by both reducing the required size of each driver
to the specific sizeof() amount, as well as using the specific loaded
platform driver's required amount, instead of the maximum of both.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2015-06-15 18:15:57 +08:00
..
Kconfig crypto: nx - add hardware 842 crypto comp alg 2015-05-11 15:06:48 +08:00
Makefile crypto: nx - prevent nx 842 load if no hw driver 2015-06-03 10:51:23 +08:00
nx_csbcpb.h
nx_debugfs.c powerpc/crypto: debugfs routines and docs for the nx device driver 2012-05-16 15:05:45 +10:00
nx-842-crypto.c crypto: nx - replace NX842_MEM_COMPRESS with function 2015-06-15 18:15:57 +08:00
nx-842-platform.c crypto: nx - prevent nx 842 load if no hw driver 2015-06-03 10:51:23 +08:00
nx-842-powernv.c crypto: nx - replace NX842_MEM_COMPRESS with function 2015-06-15 18:15:57 +08:00
nx-842-pseries.c crypto: nx - replace NX842_MEM_COMPRESS with function 2015-06-15 18:15:57 +08:00
nx-842.c crypto: nx - replace NX842_MEM_COMPRESS with function 2015-06-15 18:15:57 +08:00
nx-842.h crypto: nx - replace NX842_MEM_COMPRESS with function 2015-06-15 18:15:57 +08:00
nx-aes-cbc.c crypto: nx - Moving NX-AES-CBC to be processed logic 2014-11-06 23:15:00 +08:00
nx-aes-ccm.c crypto: nx - Moving NX-AES-CCM to be processed logic and sg_list bounds 2014-11-06 23:15:00 +08:00
nx-aes-ctr.c crypto: nx - Moving limit and bound logic in CTR and fix IV vector 2014-11-06 23:15:01 +08:00
nx-aes-ecb.c crypto: nx - Moving NX-AES-ECB to be processed logic 2014-11-06 23:15:01 +08:00
nx-aes-gcm.c crypto: nx - Remove unnecessary maxauthsize check 2015-05-22 11:25:54 +08:00
nx-aes-xcbc.c crypto: nx - Moving NX-AES-XCBC to be processed logic 2014-11-06 23:15:02 +08:00
nx-sha256.c crypto: nx - Fixing SHA update bug 2015-04-26 14:33:19 +08:00
nx-sha512.c crypto: nx - Fixing SHA update bug 2015-04-26 14:33:19 +08:00
nx.c crypto: nx - Fixing SHA update bug 2015-04-26 14:33:19 +08:00
nx.h crypto: nx - Fixing SHA update bug 2015-04-26 14:33:19 +08:00