Home
last modified time | relevance | path

Searched refs:cc_drvdata (Results 1 – 19 of 19) sorted by relevance

/drivers/crypto/ccree/
Dcc_fips.h17 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()
Dcc_fips.c16 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()
Dcc_driver.h132 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 …]
Dcc_request_mgr.h13 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);
Dcc_buffer_mgr.h40 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,
Dcc_request_mgr.c86 void cc_req_mgr_fini(struct cc_drvdata *drvdata) in cc_req_mgr_fini()
114 int cc_req_mgr_init(struct cc_drvdata *drvdata) in cc_req_mgr_init()
185 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()
279 static void cc_do_send_request(struct cc_drvdata *drvdata, in cc_do_send_request()
331 static void cc_enqueue_backlog(struct cc_drvdata *drvdata, in cc_enqueue_backlog()
345 static void cc_proc_backlog(struct cc_drvdata *drvdata) in cc_proc_backlog()
402 int cc_send_request(struct cc_drvdata *drvdata, struct cc_crypto_req *cc_req, in cc_send_request()
453 int cc_send_sync_request(struct cc_drvdata *drvdata, in cc_send_sync_request()
502 int send_request_init(struct cc_drvdata *drvdata, struct cc_hw_desc *desc, in send_request_init()
[all …]
Dcc_debugfs.h11 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()
Dcc_sram_mgr.h11 struct cc_drvdata;
25 int cc_sram_mgr_init(struct cc_drvdata *drvdata);
36 u32 cc_sram_alloc(struct cc_drvdata *drvdata, u32 size);
Dcc_driver.c103 static void init_cc_cache_params(struct cc_drvdata *drvdata) in init_cc_cache_params()
155 static u32 cc_read_idr(struct cc_drvdata *drvdata, const u32 *idr_offsets) in cc_read_idr()
184 struct cc_drvdata *drvdata = (struct cc_drvdata *)dev_id; in cc_isr()
248 bool cc_wait_for_reset_completion(struct cc_drvdata *drvdata) in cc_wait_for_reset_completion()
273 int init_cc_regs(struct cc_drvdata *drvdata) in init_cc_regs()
310 struct cc_drvdata *new_drvdata; in init_cc_resources()
583 void fini_cc_regs(struct cc_drvdata *drvdata) in fini_cc_regs()
592 struct cc_drvdata *drvdata = in cleanup_cc_resources()
593 (struct cc_drvdata *)platform_get_drvdata(plat_dev); in cleanup_cc_resources()
609 unsigned int cc_get_default_hash_len(struct cc_drvdata *drvdata) in cc_get_default_hash_len()
Dcc_hash.h79 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);
Dcc_cipher.h27 int cc_cipher_alloc(struct cc_drvdata *drvdata);
29 int cc_cipher_free(struct cc_drvdata *drvdata);
Dcc_pm.c20 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()
Dcc_sram_mgr.c17 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()
Dcc_aead.h105 int cc_aead_alloc(struct cc_drvdata *drvdata);
106 int cc_aead_free(struct cc_drvdata *drvdata);
Dcc_debugfs.c63 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()
Dcc_buffer_mgr.c370 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 …]
Dcc_hash.c72 struct cc_drvdata *drvdata;
84 struct cc_drvdata *drvdata;
1570 struct cc_drvdata *drvdata;
1865 static int cc_init_copy_sram(struct cc_drvdata *drvdata, const u32 *data, in cc_init_copy_sram()
1882 int cc_init_hash_sram(struct cc_drvdata *drvdata) in cc_init_hash_sram()
1952 int cc_hash_alloc(struct cc_drvdata *drvdata) in cc_hash_alloc()
2058 int cc_hash_free(struct cc_drvdata *drvdata) in cc_hash_free()
2241 struct cc_drvdata *_drvdata = (struct cc_drvdata *)drvdata; in cc_larval_digest_addr()
2299 struct cc_drvdata *_drvdata = (struct cc_drvdata *)drvdata; in cc_digest_len_addr()
Dcc_cipher.c46 struct cc_drvdata *drvdata;
1449 int cc_cipher_free(struct cc_drvdata *drvdata) in cc_cipher_free()
1461 int cc_cipher_alloc(struct cc_drvdata *drvdata) in cc_cipher_alloc()
Dcc_aead.c47 struct cc_drvdata *drvdata;
2593 int cc_aead_free(struct cc_drvdata *drvdata) in cc_aead_free()
2607 int cc_aead_alloc(struct cc_drvdata *drvdata) in cc_aead_alloc()