Lines Matching defs:atmel_aes_dev
97 struct atmel_aes_dev;
100 typedef int (*atmel_aes_fn_t)(struct atmel_aes_dev *);
104 struct atmel_aes_dev *dd;
182 struct atmel_aes_dev {
345 static inline u32 atmel_aes_read(struct atmel_aes_dev *dd, u32 offset)
361 static inline void atmel_aes_write(struct atmel_aes_dev *dd,
376 static void atmel_aes_read_n(struct atmel_aes_dev *dd, u32 offset,
383 static void atmel_aes_write_n(struct atmel_aes_dev *dd, u32 offset,
390 static inline void atmel_aes_read_block(struct atmel_aes_dev *dd, u32 offset,
396 static inline void atmel_aes_write_block(struct atmel_aes_dev *dd, u32 offset,
402 static inline int atmel_aes_wait_for_data_ready(struct atmel_aes_dev *dd,
421 static struct atmel_aes_dev *atmel_aes_find_dev(struct atmel_aes_base_ctx *ctx)
423 struct atmel_aes_dev *aes_dd = NULL;
424 struct atmel_aes_dev *tmp;
442 static int atmel_aes_hw_init(struct atmel_aes_dev *dd)
456 static inline unsigned int atmel_aes_get_version(struct atmel_aes_dev *dd)
461 static int atmel_aes_hw_version_init(struct atmel_aes_dev *dd)
477 static inline void atmel_aes_set_mode(struct atmel_aes_dev *dd,
484 static inline bool atmel_aes_is_encrypt(const struct atmel_aes_dev *dd)
490 static void atmel_aes_authenc_complete(struct atmel_aes_dev *dd, int err);
493 static void atmel_aes_set_iv_as_last_ciphertext_block(struct atmel_aes_dev *dd)
522 static void atmel_aes_ctr_update_req_iv(struct atmel_aes_dev *dd)
542 static inline int atmel_aes_complete(struct atmel_aes_dev *dd, int err)
571 static void atmel_aes_write_ctrl_key(struct atmel_aes_dev *dd, bool use_dma,
602 static inline void atmel_aes_write_ctrl(struct atmel_aes_dev *dd, bool use_dma,
612 static int atmel_aes_cpu_transfer(struct atmel_aes_dev *dd)
645 static int atmel_aes_cpu_start(struct atmel_aes_dev *dd,
672 static bool atmel_aes_check_aligned(struct atmel_aes_dev *dd,
722 static int atmel_aes_map(struct atmel_aes_dev *dd,
787 static void atmel_aes_unmap(struct atmel_aes_dev *dd)
814 static int atmel_aes_dma_transfer_start(struct atmel_aes_dev *dd,
865 static int atmel_aes_dma_start(struct atmel_aes_dev *dd,
932 struct atmel_aes_dev *dd = data;
939 static int atmel_aes_handle_queue(struct atmel_aes_dev *dd,
982 static int atmel_aes_transfer_complete(struct atmel_aes_dev *dd)
987 static int atmel_aes_start(struct atmel_aes_dev *dd)
1011 static int atmel_aes_ctr_transfer(struct atmel_aes_dev *dd)
1067 static int atmel_aes_ctr_start(struct atmel_aes_dev *dd)
1091 struct atmel_aes_dev *dd;
1394 static int atmel_aes_gcm_ghash(struct atmel_aes_dev *dd,
1398 static int atmel_aes_gcm_ghash_init(struct atmel_aes_dev *dd);
1399 static int atmel_aes_gcm_ghash_finalize(struct atmel_aes_dev *dd);
1401 static int atmel_aes_gcm_start(struct atmel_aes_dev *dd);
1402 static int atmel_aes_gcm_process(struct atmel_aes_dev *dd);
1403 static int atmel_aes_gcm_length(struct atmel_aes_dev *dd);
1404 static int atmel_aes_gcm_data(struct atmel_aes_dev *dd);
1405 static int atmel_aes_gcm_tag_init(struct atmel_aes_dev *dd);
1406 static int atmel_aes_gcm_tag(struct atmel_aes_dev *dd);
1407 static int atmel_aes_gcm_finalize(struct atmel_aes_dev *dd);
1415 static int atmel_aes_gcm_ghash(struct atmel_aes_dev *dd,
1432 static int atmel_aes_gcm_ghash_init(struct atmel_aes_dev *dd)
1447 static int atmel_aes_gcm_ghash_finalize(struct atmel_aes_dev *dd)
1473 static int atmel_aes_gcm_start(struct atmel_aes_dev *dd)
1510 static int atmel_aes_gcm_process(struct atmel_aes_dev *dd)
1533 static int atmel_aes_gcm_length(struct atmel_aes_dev *dd)
1568 static int atmel_aes_gcm_data(struct atmel_aes_dev *dd)
1616 static int atmel_aes_gcm_tag_init(struct atmel_aes_dev *dd)
1642 static int atmel_aes_gcm_tag(struct atmel_aes_dev *dd)
1661 static int atmel_aes_gcm_finalize(struct atmel_aes_dev *dd)
1694 struct atmel_aes_dev *dd;
1778 static int atmel_aes_xts_process_data(struct atmel_aes_dev *dd);
1780 static int atmel_aes_xts_start(struct atmel_aes_dev *dd)
1806 static int atmel_aes_xts_process_data(struct atmel_aes_dev *dd)
1897 static int atmel_aes_authenc_start(struct atmel_aes_dev *dd);
1898 static int atmel_aes_authenc_init(struct atmel_aes_dev *dd, int err,
1900 static int atmel_aes_authenc_transfer(struct atmel_aes_dev *dd, int err,
1902 static int atmel_aes_authenc_digest(struct atmel_aes_dev *dd);
1903 static int atmel_aes_authenc_final(struct atmel_aes_dev *dd, int err,
1906 static void atmel_aes_authenc_complete(struct atmel_aes_dev *dd, int err)
1916 static int atmel_aes_authenc_start(struct atmel_aes_dev *dd)
1934 static int atmel_aes_authenc_init(struct atmel_aes_dev *dd, int err,
1955 static int atmel_aes_authenc_transfer(struct atmel_aes_dev *dd, int err,
1998 static int atmel_aes_authenc_digest(struct atmel_aes_dev *dd)
2010 static int atmel_aes_authenc_final(struct atmel_aes_dev *dd, int err,
2130 struct atmel_aes_dev *dd;
2252 static int atmel_aes_buff_init(struct atmel_aes_dev *dd)
2266 static void atmel_aes_buff_cleanup(struct atmel_aes_dev *dd)
2271 static int atmel_aes_dma_init(struct atmel_aes_dev *dd)
2297 static void atmel_aes_dma_cleanup(struct atmel_aes_dev *dd)
2305 struct atmel_aes_dev *dd = (struct atmel_aes_dev *)data;
2312 struct atmel_aes_dev *dd = (struct atmel_aes_dev *)data;
2320 struct atmel_aes_dev *aes_dd = dev_id;
2336 static void atmel_aes_unregister_algs(struct atmel_aes_dev *dd)
2367 static int atmel_aes_register_algs(struct atmel_aes_dev *dd)
2437 static void atmel_aes_get_cap(struct atmel_aes_dev *dd)
2486 struct atmel_aes_dev *aes_dd;
2604 struct atmel_aes_dev *aes_dd;