/linux/drivers/crypto/ccree/ |
H A D | cc_fips.h | 17 int cc_fips_init(struct cc_drvdata *p_drvdata); 18 void cc_fips_fini(struct cc_drvdata *drvdata); 19 void fips_handler(struct cc_drvdata *drvdata); 20 void cc_set_ree_fips_status(struct cc_drvdata *drvdata, bool ok); 21 void cc_tee_handle_fips_error(struct cc_drvdata *p_drvdata); 25 static inline int cc_fips_init(struct cc_drvdata *p_drvdata) in cc_fips_init() 30 static inline void cc_fips_fini(struct cc_drvdata *drvdata) {} in cc_fips_fini() 31 static inline void cc_set_ree_fips_status(struct cc_drvdata *drvdata, in cc_set_ree_fips_status() 33 static inline void fips_handler(struct cc_drvdata *drvdata) {} in fips_handler() 34 static inline void cc_tee_handle_fips_error(struct cc_drvdata *p_drvdata) {} in cc_tee_handle_fips_error()
|
H A D | cc_fips.c | 16 struct cc_drvdata *drvdata; 22 static bool cc_get_tee_fips_status(struct cc_drvdata *drvdata) in cc_get_tee_fips_status() 40 void cc_set_ree_fips_status(struct cc_drvdata *drvdata, bool status) in cc_set_ree_fips_status() 58 struct cc_drvdata *drvdata = fips_h->drvdata; in cc_ree_fips_failure() 67 void cc_fips_fini(struct cc_drvdata *drvdata) in cc_fips_fini() 81 void fips_handler(struct cc_drvdata *drvdata) in fips_handler() 103 void cc_tee_handle_fips_error(struct cc_drvdata *p_drvdata) in cc_tee_handle_fips_error() 114 struct cc_drvdata *drvdata = (struct cc_drvdata *)devarg; in fips_dsr() 131 int cc_fips_init(struct cc_drvdata *p_drvdata) in cc_fips_init()
|
H A D | cc_driver.h | 132 struct cc_drvdata { struct 165 struct cc_drvdata *drvdata; argument 185 struct cc_drvdata *drvdata; 194 static inline struct device *drvdata_to_dev(struct cc_drvdata *drvdata) in drvdata_to_dev() 207 bool cc_wait_for_reset_completion(struct cc_drvdata *drvdata); 208 int init_cc_regs(struct cc_drvdata *drvdata); 209 void fini_cc_regs(struct cc_drvdata *drvdata); 210 unsigned int cc_get_default_hash_len(struct cc_drvdata *drvdata); 212 static inline void cc_iowrite(struct cc_drvdata *drvdata, u32 reg, u32 val) in cc_iowrite() 217 static inline u32 cc_ioread(struct cc_drvdata *drvdata, u32 reg) in cc_ioread() [all …]
|
H A D | cc_request_mgr.h | 13 int cc_req_mgr_init(struct cc_drvdata *drvdata); 27 int cc_send_request(struct cc_drvdata *drvdata, struct cc_crypto_req *cc_req, 31 int cc_send_sync_request(struct cc_drvdata *drvdata, 35 int send_request_init(struct cc_drvdata *drvdata, struct cc_hw_desc *desc, 38 void complete_request(struct cc_drvdata *drvdata); 40 void cc_req_mgr_fini(struct cc_drvdata *drvdata);
|
H A D | cc_buffer_mgr.h | 40 int cc_buffer_mgr_init(struct cc_drvdata *drvdata); 42 int cc_buffer_mgr_fini(struct cc_drvdata *drvdata); 44 int cc_map_cipher_request(struct cc_drvdata *drvdata, void *ctx, 52 int cc_map_aead_request(struct cc_drvdata *drvdata, struct aead_request *req); 56 int cc_map_hash_request_final(struct cc_drvdata *drvdata, void *ctx, 60 int cc_map_hash_request_update(struct cc_drvdata *drvdata, void *ctx,
|
H A D | cc_debugfs.h | 11 int cc_debugfs_init(struct cc_drvdata *drvdata); 12 void cc_debugfs_fini(struct cc_drvdata *drvdata); 19 static inline int cc_debugfs_init(struct cc_drvdata *drvdata) in cc_debugfs_init() 24 static inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {} in cc_debugfs_fini()
|
H A D | cc_request_mgr.c | 86 void cc_req_mgr_fini(struct cc_drvdata *drvdata) in cc_req_mgr_fini() 113 int cc_req_mgr_init(struct cc_drvdata *drvdata) in cc_req_mgr_init() 184 static void enqueue_seq(struct cc_drvdata *drvdata, struct cc_hw_desc seq[], in enqueue_seq() 224 static int cc_queues_status(struct cc_drvdata *drvdata, in cc_queues_status() 278 static void cc_do_send_request(struct cc_drvdata *drvdata, in cc_do_send_request() 330 static void cc_enqueue_backlog(struct cc_drvdata *drvdata, in cc_enqueue_backlog() 344 static void cc_proc_backlog(struct cc_drvdata *drvdata) in cc_proc_backlog() 401 int cc_send_request(struct cc_drvdata *drvdata, struct cc_crypto_req *cc_req, in cc_send_request() 452 int cc_send_sync_request(struct cc_drvdata *drvdata, in cc_send_sync_request() 501 int send_request_init(struct cc_drvdata *drvdata, struct cc_hw_desc *desc, in send_request_init() [all …]
|
H A D | cc_sram_mgr.h | 11 struct cc_drvdata; 25 int cc_sram_mgr_init(struct cc_drvdata *drvdata); 36 u32 cc_sram_alloc(struct cc_drvdata *drvdata, u32 size);
|
H A D | cc_hash.h | 79 int cc_hash_alloc(struct cc_drvdata *drvdata); 80 int cc_init_hash_sram(struct cc_drvdata *drvdata); 81 int cc_hash_free(struct cc_drvdata *drvdata);
|
H A D | cc_cipher.h | 27 int cc_cipher_alloc(struct cc_drvdata *drvdata); 29 int cc_cipher_free(struct cc_drvdata *drvdata);
|
H A D | cc_pm.c | 20 struct cc_drvdata *drvdata = dev_get_drvdata(dev); in cc_pm_suspend() 32 struct cc_drvdata *drvdata = dev_get_drvdata(dev); in cc_pm_resume()
|
H A D | cc_sram_mgr.c | 17 int cc_sram_mgr_init(struct cc_drvdata *drvdata) in cc_sram_mgr_init() 44 u32 cc_sram_alloc(struct cc_drvdata *drvdata, u32 size) in cc_sram_alloc()
|
H A D | cc_aead.h | 105 int cc_aead_alloc(struct cc_drvdata *drvdata); 106 int cc_aead_free(struct cc_drvdata *drvdata);
|
H A D | cc_debugfs.c | 63 int cc_debugfs_init(struct cc_drvdata *drvdata) in cc_debugfs_init() 104 void cc_debugfs_fini(struct cc_drvdata *drvdata) in cc_debugfs_fini()
|
H A D | cc_buffer_mgr.c | 370 int cc_map_cipher_request(struct cc_drvdata *drvdata, void *ctx, in cc_map_cipher_request() 461 struct cc_drvdata *drvdata = dev_get_drvdata(dev); in cc_unmap_aead_request() 544 static int cc_aead_chain_iv(struct cc_drvdata *drvdata, in cc_aead_chain_iv() 584 static int cc_aead_chain_assoc(struct cc_drvdata *drvdata, in cc_aead_chain_assoc() 675 static void cc_prepare_aead_data_mlli(struct cc_drvdata *drvdata, in cc_prepare_aead_data_mlli() 788 static int cc_aead_chain_data(struct cc_drvdata *drvdata, in cc_aead_chain_data() 895 static void cc_update_aead_mlli_nents(struct cc_drvdata *drvdata, in cc_update_aead_mlli_nents() 946 int cc_map_aead_request(struct cc_drvdata *drvdata, struct aead_request *req) in cc_map_aead_request() 1141 int cc_map_hash_request_final(struct cc_drvdata *drvdata, void *ctx, in cc_map_hash_request_final() 1220 int cc_map_hash_request_update(struct cc_drvdata *drvdata, void *ctx, in cc_map_hash_request_update() [all …]
|