Go to the documentation of this file.
5 #define NX_NAME "nx-crypto"
6 #define NX_STRING "IBM Power7+ Nest Accelerator Crypto Driver"
7 #define NX_VERSION "1.0"
9 static const char nx_driver_string[] =
NX_STRING;
10 static const char nx_driver_version[] =
NX_VERSION;
19 #define NX_PAGE_SIZE (4096)
20 #define NX_MAX_SG_ENTRIES (NX_PAGE_SIZE/(sizeof(struct nx_sg)))
48 #define NX_OF_FLAG_MAXSGLEN_SET (1)
49 #define NX_OF_FLAG_STATUS_SET (2)
50 #define NX_OF_FLAG_MAXSYNCCOP_SET (4)
51 #define NX_OF_FLAG_MASK_READY (NX_OF_FLAG_MAXSGLEN_SET | \
52 NX_OF_FLAG_STATUS_SET | \
53 NX_OF_FLAG_MAXSYNCCOP_SET)
92 #define NX_GCM4106_NONCE_LEN (4)
93 #define NX_GCM_CTR_OFFSET (12)
100 #define NX_CCM_AES_KEY_LEN (16)
101 #define NX_CCM4309_AES_KEY_LEN (19)
102 #define NX_CCM4309_NONCE_LEN (3)
123 struct vio_pfo_op
op;
163 #ifdef CONFIG_DEBUG_FS
164 #define NX_DEBUGFS_INIT(drv) nx_debugfs_init(drv)
165 #define NX_DEBUGFS_FINI(drv) nx_debugfs_fini(drv)
170 #define NX_DEBUGFS_INIT(drv) (0)
171 #define NX_DEBUGFS_FINI(drv) (0)
174 #define NX_PAGE_NUM(x) ((u64)(x) & 0xfffffffffffff000ULL)
190 #define SCATTERWALK_TO_SG 1
191 #define SCATTERWALK_FROM_SG 0