Lines Matching refs:atmel_aes_dev

85 struct atmel_aes_dev;
88 typedef int (*atmel_aes_fn_t)(struct atmel_aes_dev *);
92 struct atmel_aes_dev *dd;
172 struct atmel_aes_dev {
335 static inline u32 atmel_aes_read(struct atmel_aes_dev *dd, u32 offset)
351 static inline void atmel_aes_write(struct atmel_aes_dev *dd,
366 static void atmel_aes_read_n(struct atmel_aes_dev *dd, u32 offset,
373 static void atmel_aes_write_n(struct atmel_aes_dev *dd, u32 offset,
380 static inline void atmel_aes_read_block(struct atmel_aes_dev *dd, u32 offset,
386 static inline void atmel_aes_write_block(struct atmel_aes_dev *dd, u32 offset,
392 static inline int atmel_aes_wait_for_data_ready(struct atmel_aes_dev *dd,
411 static struct atmel_aes_dev *atmel_aes_dev_alloc(struct atmel_aes_base_ctx *ctx)
413 struct atmel_aes_dev *aes_dd;
418 struct atmel_aes_dev, list);
423 static int atmel_aes_hw_init(struct atmel_aes_dev *dd)
437 static inline unsigned int atmel_aes_get_version(struct atmel_aes_dev *dd)
442 static int atmel_aes_hw_version_init(struct atmel_aes_dev *dd)
458 static inline void atmel_aes_set_mode(struct atmel_aes_dev *dd,
465 static inline bool atmel_aes_is_encrypt(const struct atmel_aes_dev *dd)
471 static void atmel_aes_authenc_complete(struct atmel_aes_dev *dd, int err);
474 static void atmel_aes_set_iv_as_last_ciphertext_block(struct atmel_aes_dev *dd)
497 static void atmel_aes_ctr_update_req_iv(struct atmel_aes_dev *dd)
517 static inline int atmel_aes_complete(struct atmel_aes_dev *dd, int err)
546 static void atmel_aes_write_ctrl_key(struct atmel_aes_dev *dd, bool use_dma,
577 static inline void atmel_aes_write_ctrl(struct atmel_aes_dev *dd, bool use_dma,
587 static int atmel_aes_cpu_transfer(struct atmel_aes_dev *dd)
620 static int atmel_aes_cpu_start(struct atmel_aes_dev *dd,
647 static bool atmel_aes_check_aligned(struct atmel_aes_dev *dd,
697 static int atmel_aes_map(struct atmel_aes_dev *dd,
762 static void atmel_aes_unmap(struct atmel_aes_dev *dd)
789 static int atmel_aes_dma_transfer_start(struct atmel_aes_dev *dd,
840 static int atmel_aes_dma_start(struct atmel_aes_dev *dd,
891 struct atmel_aes_dev *dd = data;
898 static int atmel_aes_handle_queue(struct atmel_aes_dev *dd,
941 static int atmel_aes_transfer_complete(struct atmel_aes_dev *dd)
946 static int atmel_aes_start(struct atmel_aes_dev *dd)
970 static int atmel_aes_ctr_transfer(struct atmel_aes_dev *dd)
1026 static int atmel_aes_ctr_start(struct atmel_aes_dev *dd)
1156 struct atmel_aes_dev *dd;
1172 struct atmel_aes_dev *dd;
1232 static int atmel_aes_gcm_ghash(struct atmel_aes_dev *dd,
1236 static int atmel_aes_gcm_ghash_init(struct atmel_aes_dev *dd);
1237 static int atmel_aes_gcm_ghash_finalize(struct atmel_aes_dev *dd);
1239 static int atmel_aes_gcm_start(struct atmel_aes_dev *dd);
1240 static int atmel_aes_gcm_process(struct atmel_aes_dev *dd);
1241 static int atmel_aes_gcm_length(struct atmel_aes_dev *dd);
1242 static int atmel_aes_gcm_data(struct atmel_aes_dev *dd);
1243 static int atmel_aes_gcm_tag_init(struct atmel_aes_dev *dd);
1244 static int atmel_aes_gcm_tag(struct atmel_aes_dev *dd);
1245 static int atmel_aes_gcm_finalize(struct atmel_aes_dev *dd);
1253 static int atmel_aes_gcm_ghash(struct atmel_aes_dev *dd,
1270 static int atmel_aes_gcm_ghash_init(struct atmel_aes_dev *dd)
1285 static int atmel_aes_gcm_ghash_finalize(struct atmel_aes_dev *dd)
1311 static int atmel_aes_gcm_start(struct atmel_aes_dev *dd)
1348 static int atmel_aes_gcm_process(struct atmel_aes_dev *dd)
1371 static int atmel_aes_gcm_length(struct atmel_aes_dev *dd)
1406 static int atmel_aes_gcm_data(struct atmel_aes_dev *dd)
1454 static int atmel_aes_gcm_tag_init(struct atmel_aes_dev *dd)
1480 static int atmel_aes_gcm_tag(struct atmel_aes_dev *dd)
1499 static int atmel_aes_gcm_finalize(struct atmel_aes_dev *dd)
1578 struct atmel_aes_dev *dd;
1617 static int atmel_aes_xts_process_data(struct atmel_aes_dev *dd);
1619 static int atmel_aes_xts_start(struct atmel_aes_dev *dd)
1645 static int atmel_aes_xts_process_data(struct atmel_aes_dev *dd)
1714 struct atmel_aes_dev *dd;
1761 static int atmel_aes_authenc_start(struct atmel_aes_dev *dd);
1762 static int atmel_aes_authenc_init(struct atmel_aes_dev *dd, int err,
1764 static int atmel_aes_authenc_transfer(struct atmel_aes_dev *dd, int err,
1766 static int atmel_aes_authenc_digest(struct atmel_aes_dev *dd);
1767 static int atmel_aes_authenc_final(struct atmel_aes_dev *dd, int err,
1770 static void atmel_aes_authenc_complete(struct atmel_aes_dev *dd, int err)
1780 static int atmel_aes_authenc_start(struct atmel_aes_dev *dd)
1798 static int atmel_aes_authenc_init(struct atmel_aes_dev *dd, int err,
1819 static int atmel_aes_authenc_transfer(struct atmel_aes_dev *dd, int err,
1862 static int atmel_aes_authenc_digest(struct atmel_aes_dev *dd)
1874 static int atmel_aes_authenc_final(struct atmel_aes_dev *dd, int err,
1942 struct atmel_aes_dev *dd;
2117 static int atmel_aes_buff_init(struct atmel_aes_dev *dd)
2131 static void atmel_aes_buff_cleanup(struct atmel_aes_dev *dd)
2136 static int atmel_aes_dma_init(struct atmel_aes_dev *dd)
2162 static void atmel_aes_dma_cleanup(struct atmel_aes_dev *dd)
2170 struct atmel_aes_dev *dd = (struct atmel_aes_dev *)data;
2177 struct atmel_aes_dev *dd = (struct atmel_aes_dev *)data;
2185 struct atmel_aes_dev *aes_dd = dev_id;
2201 static void atmel_aes_unregister_algs(struct atmel_aes_dev *dd)
2229 static int atmel_aes_register_algs(struct atmel_aes_dev *dd)
2289 static void atmel_aes_get_cap(struct atmel_aes_dev *dd)
2334 struct atmel_aes_dev *aes_dd;
2443 struct atmel_aes_dev *aes_dd;