Home
last modified time | relevance | path

Searched refs:aes_dev (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/crypto/intel/keembay/
H A Docs-aes.c204 static inline void aes_a_set_endianness(const struct ocs_aes_dev *aes_dev) in aes_a_set_endianness() argument
206 iowrite32(0x7FF, aes_dev->base_reg + AES_BYTE_ORDER_CFG_OFFSET); in aes_a_set_endianness()
210 static inline void aes_a_op_trigger(const struct ocs_aes_dev *aes_dev) in aes_a_op_trigger() argument
212 iowrite32(AES_ACTIVE_TRIGGER, aes_dev->base_reg + AES_ACTIVE_OFFSET); in aes_a_op_trigger()
216 static inline void aes_a_op_termination(const struct ocs_aes_dev *aes_dev) in aes_a_op_termination() argument
219 aes_dev->base_reg + AES_ACTIVE_OFFSET); in aes_a_op_termination()
231 static inline void aes_a_set_last_gcx(const struct ocs_aes_dev *aes_dev) in aes_a_set_last_gcx() argument
234 aes_dev->base_reg + AES_ACTIVE_OFFSET); in aes_a_set_last_gcx()
238 static inline void aes_a_wait_last_gcx(const struct ocs_aes_dev *aes_dev) in aes_a_wait_last_gcx() argument
243 aes_active_reg = ioread32(aes_dev->base_reg + in aes_a_wait_last_gcx()
[all …]
H A Dkeembay-ocs-aes-core.c48 struct ocs_aes_dev *aes_dev; member
121 struct ocs_aes_dev *aes_dev; in kmb_ocs_aes_find_dev() local
125 if (tctx->aes_dev) { in kmb_ocs_aes_find_dev()
126 aes_dev = tctx->aes_dev; in kmb_ocs_aes_find_dev()
131 aes_dev = list_first_entry(&ocs_aes.dev_list, struct ocs_aes_dev, list); in kmb_ocs_aes_find_dev()
132 tctx->aes_dev = aes_dev; in kmb_ocs_aes_find_dev()
137 return aes_dev; in kmb_ocs_aes_find_dev()
316 struct ocs_aes_dev *aes_dev; in kmb_ocs_sk_common() local
350 aes_dev = kmb_ocs_aes_find_dev(tctx); in kmb_ocs_sk_common()
351 if (!aes_dev) in kmb_ocs_sk_common()
[all …]
H A Docs-aes.h67 int ocs_aes_set_key(struct ocs_aes_dev *aes_dev, const u32 key_size,
70 int ocs_aes_op(struct ocs_aes_dev *aes_dev,
88 static inline int ocs_aes_bypass_op(struct ocs_aes_dev *aes_dev, in ocs_aes_bypass_op() argument
92 return ocs_aes_op(aes_dev, OCS_MODE_ECB, OCS_AES, OCS_BYPASS, in ocs_aes_bypass_op()
96 int ocs_aes_gcm_op(struct ocs_aes_dev *aes_dev,
108 int ocs_aes_ccm_op(struct ocs_aes_dev *aes_dev,
120 int ocs_create_linked_list_from_sg(const struct ocs_aes_dev *aes_dev,
/linux/drivers/crypto/
H A Datmel-sha.c2115 struct atmel_aes_dev *aes_dev; member
2132 authctx->cb(authctx->aes_dev, err, authctx->base.dd->is_async); in atmel_sha_authenc_complete()
2148 return authctx->cb(authctx->aes_dev, err, dd->is_async); in atmel_sha_authenc_start()
2246 struct atmel_aes_dev *aes_dev) in atmel_sha_authenc_schedule() argument
2260 return cb(aes_dev, -ENODEV, false); in atmel_sha_authenc_schedule()
2266 authctx->aes_dev = aes_dev; in atmel_sha_authenc_schedule()
2278 struct atmel_aes_dev *aes_dev) in atmel_sha_authenc_init() argument
2290 authctx->aes_dev = aes_dev; in atmel_sha_authenc_init()
2342 return authctx->cb(authctx->aes_dev, 0, dd->is_async); in atmel_sha_authenc_init_done()
2348 struct atmel_aes_dev *aes_dev) in atmel_sha_authenc_final() argument
[all …]