/drivers/crypto/ccree/ |
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()
|
D | cc_request_mgr.h | 13 int cc_req_mgr_init(struct cc_drvdata *drvdata); 28 int cc_send_request(struct cc_drvdata *drvdata, struct cc_crypto_req *cc_req, 32 int cc_send_sync_request(struct cc_drvdata *drvdata, 36 int send_request_init(struct cc_drvdata *drvdata, struct cc_hw_desc *desc, 39 void complete_request(struct cc_drvdata *drvdata); 41 void cc_req_mgr_fini(struct cc_drvdata *drvdata); 44 int cc_resume_req_queue(struct cc_drvdata *drvdata); 46 int cc_suspend_req_queue(struct cc_drvdata *drvdata); 48 bool cc_req_queue_suspended(struct cc_drvdata *drvdata);
|
D | cc_driver.h | 139 struct cc_drvdata { struct 172 struct cc_drvdata *drvdata; argument 192 struct cc_drvdata *drvdata; 201 static inline struct device *drvdata_to_dev(struct cc_drvdata *drvdata) in drvdata_to_dev() 214 bool cc_wait_for_reset_completion(struct cc_drvdata *drvdata); 215 int init_cc_regs(struct cc_drvdata *drvdata, bool is_probe); 216 void fini_cc_regs(struct cc_drvdata *drvdata); 217 int cc_clk_on(struct cc_drvdata *drvdata); 218 void cc_clk_off(struct cc_drvdata *drvdata); 219 unsigned int cc_get_default_hash_len(struct cc_drvdata *drvdata); [all …]
|
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()
|
D | cc_pm.h | 18 int cc_pm_init(struct cc_drvdata *drvdata); 19 void cc_pm_go(struct cc_drvdata *drvdata); 20 void cc_pm_fini(struct cc_drvdata *drvdata); 29 static inline int cc_pm_init(struct cc_drvdata *drvdata) in cc_pm_init() 34 static inline void cc_pm_go(struct cc_drvdata *drvdata) {} in cc_pm_go() 36 static inline void cc_pm_fini(struct cc_drvdata *drvdata) {} in cc_pm_fini()
|
D | cc_pm.c | 24 struct cc_drvdata *drvdata = dev_get_drvdata(dev); in cc_pm_suspend() 42 struct cc_drvdata *drvdata = dev_get_drvdata(dev); in cc_pm_resume() 81 struct cc_drvdata *drvdata = dev_get_drvdata(dev); in cc_pm_get() 94 struct cc_drvdata *drvdata = dev_get_drvdata(dev); in cc_pm_put_suspend() 113 int cc_pm_init(struct cc_drvdata *drvdata) in cc_pm_init() 125 void cc_pm_go(struct cc_drvdata *drvdata) in cc_pm_go() 130 void cc_pm_fini(struct cc_drvdata *drvdata) in cc_pm_fini()
|
D | cc_buffer_mgr.h | 39 int cc_buffer_mgr_init(struct cc_drvdata *drvdata); 41 int cc_buffer_mgr_fini(struct cc_drvdata *drvdata); 43 int cc_map_cipher_request(struct cc_drvdata *drvdata, void *ctx, 51 int cc_map_aead_request(struct cc_drvdata *drvdata, struct aead_request *req); 55 int cc_map_hash_request_final(struct cc_drvdata *drvdata, void *ctx, 59 int cc_map_hash_request_update(struct cc_drvdata *drvdata, void *ctx,
|
D | cc_request_mgr.c | 87 void cc_req_mgr_fini(struct cc_drvdata *drvdata) in cc_req_mgr_fini() 115 int cc_req_mgr_init(struct cc_drvdata *drvdata) in cc_req_mgr_init() 186 static void enqueue_seq(struct cc_drvdata *drvdata, struct cc_hw_desc seq[], in enqueue_seq() 225 static int cc_queues_status(struct cc_drvdata *drvdata, in cc_queues_status() 280 static int cc_do_send_request(struct cc_drvdata *drvdata, in cc_do_send_request() 336 static void cc_enqueue_backlog(struct cc_drvdata *drvdata, in cc_enqueue_backlog() 350 static void cc_proc_backlog(struct cc_drvdata *drvdata) in cc_proc_backlog() 412 int cc_send_request(struct cc_drvdata *drvdata, struct cc_crypto_req *cc_req, in cc_send_request() 461 int cc_send_sync_request(struct cc_drvdata *drvdata, in cc_send_sync_request() 518 int send_request_init(struct cc_drvdata *drvdata, struct cc_hw_desc *desc, in send_request_init() [all …]
|
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()
|
D | cc_sram_mgr.h | 11 struct cc_drvdata; 30 int cc_sram_mgr_init(struct cc_drvdata *drvdata); 37 void cc_sram_mgr_fini(struct cc_drvdata *drvdata); 48 cc_sram_addr_t cc_sram_alloc(struct cc_drvdata *drvdata, u32 size);
|
D | cc_driver.c | 101 static u32 cc_read_idr(struct cc_drvdata *drvdata, const u32 *idr_offsets) in cc_read_idr() 130 struct cc_drvdata *drvdata = (struct cc_drvdata *)dev_id; in cc_isr() 194 bool cc_wait_for_reset_completion(struct cc_drvdata *drvdata) in cc_wait_for_reset_completion() 219 int init_cc_regs(struct cc_drvdata *drvdata, bool is_probe) in init_cc_regs() 266 struct cc_drvdata *new_drvdata; in init_cc_resources() 555 void fini_cc_regs(struct cc_drvdata *drvdata) in fini_cc_regs() 563 struct cc_drvdata *drvdata = in cleanup_cc_resources() 564 (struct cc_drvdata *)platform_get_drvdata(plat_dev); in cleanup_cc_resources() 579 int cc_clk_on(struct cc_drvdata *drvdata) in cc_clk_on() 595 unsigned int cc_get_default_hash_len(struct cc_drvdata *drvdata) in cc_get_default_hash_len() [all …]
|
D | cc_sram_mgr.c | 20 void cc_sram_mgr_fini(struct cc_drvdata *drvdata) in cc_sram_mgr_fini() 32 int cc_sram_mgr_init(struct cc_drvdata *drvdata) in cc_sram_mgr_init() 70 cc_sram_addr_t cc_sram_alloc(struct cc_drvdata *drvdata, u32 size) in cc_sram_alloc()
|
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);
|
D | cc_cipher.h | 27 int cc_cipher_alloc(struct cc_drvdata *drvdata); 29 int cc_cipher_free(struct cc_drvdata *drvdata);
|
D | cc_aead.h | 106 int cc_aead_alloc(struct cc_drvdata *drvdata); 107 int cc_aead_free(struct cc_drvdata *drvdata);
|
D | cc_debugfs.c | 67 int cc_debugfs_init(struct cc_drvdata *drvdata) in cc_debugfs_init() 113 void cc_debugfs_fini(struct cc_drvdata *drvdata) in cc_debugfs_fini()
|
D | cc_buffer_mgr.c | 407 int cc_map_cipher_request(struct cc_drvdata *drvdata, void *ctx, in cc_map_cipher_request() 499 struct cc_drvdata *drvdata = dev_get_drvdata(dev); in cc_unmap_aead_request() 582 static int cc_aead_chain_iv(struct cc_drvdata *drvdata, in cc_aead_chain_iv() 634 static int cc_aead_chain_assoc(struct cc_drvdata *drvdata, in cc_aead_chain_assoc() 730 static void cc_prepare_aead_data_mlli(struct cc_drvdata *drvdata, in cc_prepare_aead_data_mlli() 843 static int cc_aead_chain_data(struct cc_drvdata *drvdata, in cc_aead_chain_data() 957 static void cc_update_aead_mlli_nents(struct cc_drvdata *drvdata, in cc_update_aead_mlli_nents() 1008 int cc_map_aead_request(struct cc_drvdata *drvdata, struct aead_request *req) in cc_map_aead_request() 1204 int cc_map_hash_request_final(struct cc_drvdata *drvdata, void *ctx, in cc_map_hash_request_final() 1285 int cc_map_hash_request_update(struct cc_drvdata *drvdata, void *ctx, in cc_map_hash_request_update() [all …]
|
D | cc_hash.c | 65 struct cc_drvdata *drvdata; 77 struct cc_drvdata *drvdata; 1571 struct cc_drvdata *drvdata; 1866 int cc_init_hash_sram(struct cc_drvdata *drvdata) in cc_init_hash_sram() 1994 int cc_hash_alloc(struct cc_drvdata *drvdata) in cc_hash_alloc() 2105 int cc_hash_free(struct cc_drvdata *drvdata) in cc_hash_free() 2292 struct cc_drvdata *_drvdata = (struct cc_drvdata *)drvdata; in cc_larval_digest_addr() 2351 struct cc_drvdata *_drvdata = (struct cc_drvdata *)drvdata; in cc_digest_len_addr()
|
D | cc_cipher.c | 50 struct cc_drvdata *drvdata; 1627 int cc_cipher_free(struct cc_drvdata *drvdata) in cc_cipher_free() 1646 int cc_cipher_alloc(struct cc_drvdata *drvdata) in cc_cipher_alloc()
|
D | cc_aead.c | 46 struct cc_drvdata *drvdata; 2651 int cc_aead_free(struct cc_drvdata *drvdata) in cc_aead_free() 2672 int cc_aead_alloc(struct cc_drvdata *drvdata) in cc_aead_alloc()
|