misc:cryptodev: alloc tfms only for algos required
authorShravani Dingari <shravanid@nvidia.com>
Mon, 2 Feb 2015 09:04:51 +0000 (14:04 +0530)
committerShravani Dingari <shravanid@nvidia.com>
Tue, 3 Mar 2015 10:52:48 +0000 (02:52 -0800)
commit2acd9f1b866f41237601c0fc7601821614ca619b
tree3cb83334d30ef7be5fa169195d3c0a9ded261259
parent0aa9fd5dc5c90581e5186d625edfa659783df380
misc:cryptodev: alloc tfms only for algos required

Do not allocate tfms for all the algorithms in
cryptodev_open(). Only allocate a particular tfm
when required. Also, remove/modify few macros and
defines wherever required.

Bug 200075033

Change-Id: I3230348be85f3079950179571deff0a8a9031b02
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/677642
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/misc/tegra-cryptodev.c
drivers/misc/tegra-cryptodev.h