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;
184 struct atmel_aes_dev {
347 static inline u32 atmel_aes_read(struct atmel_aes_dev *dd, u32 offset)
363 static inline void atmel_aes_write(struct atmel_aes_dev *dd,
378 static void atmel_aes_read_n(struct atmel_aes_dev *dd, u32 offset,
385 static void atmel_aes_write_n(struct atmel_aes_dev *dd, u32 offset,
392 static inline void atmel_aes_read_block(struct atmel_aes_dev *dd, u32 offset,
398 static inline void atmel_aes_write_block(struct atmel_aes_dev *dd, u32 offset,
404 static inline int atmel_aes_wait_for_data_ready(struct atmel_aes_dev *dd,
423 static struct atmel_aes_dev *atmel_aes_dev_alloc(struct atmel_aes_base_ctx *ctx)
425 struct atmel_aes_dev *aes_dd;
430 struct atmel_aes_dev, list);
435 static int atmel_aes_hw_init(struct atmel_aes_dev *dd)
449 static inline unsigned int atmel_aes_get_version(struct atmel_aes_dev *dd)
454 static int atmel_aes_hw_version_init(struct atmel_aes_dev *dd)
470 static inline void atmel_aes_set_mode(struct atmel_aes_dev *dd,
477 static inline bool atmel_aes_is_encrypt(const struct atmel_aes_dev *dd)
483 static void atmel_aes_authenc_complete(struct atmel_aes_dev *dd, int err);
486 static void atmel_aes_set_iv_as_last_ciphertext_block(struct atmel_aes_dev *dd)
509 static void atmel_aes_ctr_update_req_iv(struct atmel_aes_dev *dd)
529 static inline int atmel_aes_complete(struct atmel_aes_dev *dd, int err)
558 static void atmel_aes_write_ctrl_key(struct atmel_aes_dev *dd, bool use_dma,
589 static inline void atmel_aes_write_ctrl(struct atmel_aes_dev *dd, bool use_dma,
599 static int atmel_aes_cpu_transfer(struct atmel_aes_dev *dd)
632 static int atmel_aes_cpu_start(struct atmel_aes_dev *dd,
659 static bool atmel_aes_check_aligned(struct atmel_aes_dev *dd,
709 static int atmel_aes_map(struct atmel_aes_dev *dd,
774 static void atmel_aes_unmap(struct atmel_aes_dev *dd)
801 static int atmel_aes_dma_transfer_start(struct atmel_aes_dev *dd,
852 static int atmel_aes_dma_start(struct atmel_aes_dev *dd,
919 struct atmel_aes_dev *dd = data;
926 static int atmel_aes_handle_queue(struct atmel_aes_dev *dd,
969 static int atmel_aes_transfer_complete(struct atmel_aes_dev *dd)
974 static int atmel_aes_start(struct atmel_aes_dev *dd)
998 static int atmel_aes_ctr_transfer(struct atmel_aes_dev *dd)
1054 static int atmel_aes_ctr_start(struct atmel_aes_dev *dd)
1264 struct atmel_aes_dev *dd;
1280 struct atmel_aes_dev *dd;
1425 static int atmel_aes_gcm_ghash(struct atmel_aes_dev *dd,
1429 static int atmel_aes_gcm_ghash_init(struct atmel_aes_dev *dd);
1430 static int atmel_aes_gcm_ghash_finalize(struct atmel_aes_dev *dd);
1432 static int atmel_aes_gcm_start(struct atmel_aes_dev *dd);
1433 static int atmel_aes_gcm_process(struct atmel_aes_dev *dd);
1434 static int atmel_aes_gcm_length(struct atmel_aes_dev *dd);
1435 static int atmel_aes_gcm_data(struct atmel_aes_dev *dd);
1436 static int atmel_aes_gcm_tag_init(struct atmel_aes_dev *dd);
1437 static int atmel_aes_gcm_tag(struct atmel_aes_dev *dd);
1438 static int atmel_aes_gcm_finalize(struct atmel_aes_dev *dd);
1446 static int atmel_aes_gcm_ghash(struct atmel_aes_dev *dd,
1463 static int atmel_aes_gcm_ghash_init(struct atmel_aes_dev *dd)
1478 static int atmel_aes_gcm_ghash_finalize(struct atmel_aes_dev *dd)
1504 static int atmel_aes_gcm_start(struct atmel_aes_dev *dd)
1541 static int atmel_aes_gcm_process(struct atmel_aes_dev *dd)
1564 static int atmel_aes_gcm_length(struct atmel_aes_dev *dd)
1599 static int atmel_aes_gcm_data(struct atmel_aes_dev *dd)
1647 static int atmel_aes_gcm_tag_init(struct atmel_aes_dev *dd)
1673 static int atmel_aes_gcm_tag(struct atmel_aes_dev *dd)
1692 static int atmel_aes_gcm_finalize(struct atmel_aes_dev *dd)
1771 struct atmel_aes_dev *dd;
1810 static int atmel_aes_xts_process_data(struct atmel_aes_dev *dd);
1812 static int atmel_aes_xts_start(struct atmel_aes_dev *dd)
1838 static int atmel_aes_xts_process_data(struct atmel_aes_dev *dd)
1907 struct atmel_aes_dev *dd;
1954 static int atmel_aes_authenc_start(struct atmel_aes_dev *dd);
1955 static int atmel_aes_authenc_init(struct atmel_aes_dev *dd, int err,
1957 static int atmel_aes_authenc_transfer(struct atmel_aes_dev *dd, int err,
1959 static int atmel_aes_authenc_digest(struct atmel_aes_dev *dd);
1960 static int atmel_aes_authenc_final(struct atmel_aes_dev *dd, int err,
1963 static void atmel_aes_authenc_complete(struct atmel_aes_dev *dd, int err)
1973 static int atmel_aes_authenc_start(struct atmel_aes_dev *dd)
1991 static int atmel_aes_authenc_init(struct atmel_aes_dev *dd, int err,
2012 static int atmel_aes_authenc_transfer(struct atmel_aes_dev *dd, int err,
2055 static int atmel_aes_authenc_digest(struct atmel_aes_dev *dd)
2067 static int atmel_aes_authenc_final(struct atmel_aes_dev *dd, int err,
2135 struct atmel_aes_dev *dd;
2310 static int atmel_aes_buff_init(struct atmel_aes_dev *dd)
2324 static void atmel_aes_buff_cleanup(struct atmel_aes_dev *dd)
2329 static int atmel_aes_dma_init(struct atmel_aes_dev *dd)
2355 static void atmel_aes_dma_cleanup(struct atmel_aes_dev *dd)
2363 struct atmel_aes_dev *dd = (struct atmel_aes_dev *)data;
2370 struct atmel_aes_dev *dd = (struct atmel_aes_dev *)data;
2378 struct atmel_aes_dev *aes_dd = dev_id;
2394 static void atmel_aes_unregister_algs(struct atmel_aes_dev *dd)
2425 static int atmel_aes_register_algs(struct atmel_aes_dev *dd)
2495 static void atmel_aes_get_cap(struct atmel_aes_dev *dd)
2544 struct atmel_aes_dev *aes_dd;
2653 struct atmel_aes_dev *aes_dd;