Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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_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_driver.h134 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, bool is_probe);
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_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_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_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_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 u32 cc_read_idr(struct cc_drvdata *drvdata, const u32 *idr_offsets) in cc_read_idr()
132 struct cc_drvdata *drvdata = (struct cc_drvdata *)dev_id; in cc_isr()
196 bool cc_wait_for_reset_completion(struct cc_drvdata *drvdata) in cc_wait_for_reset_completion()
221 int init_cc_regs(struct cc_drvdata *drvdata, bool is_probe) in init_cc_regs()
268 struct cc_drvdata *new_drvdata; in init_cc_resources()
541 void fini_cc_regs(struct cc_drvdata *drvdata) in fini_cc_regs()
550 struct cc_drvdata *drvdata = in cleanup_cc_resources()
551 (struct cc_drvdata *)platform_get_drvdata(plat_dev); in cleanup_cc_resources()
567 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.c361 int cc_map_cipher_request(struct cc_drvdata *drvdata, void *ctx, in cc_map_cipher_request()
451 struct cc_drvdata *drvdata = dev_get_drvdata(dev); in cc_unmap_aead_request()
535 static int cc_aead_chain_iv(struct cc_drvdata *drvdata, in cc_aead_chain_iv()
575 static int cc_aead_chain_assoc(struct cc_drvdata *drvdata, in cc_aead_chain_assoc()
666 static void cc_prepare_aead_data_mlli(struct cc_drvdata *drvdata, in cc_prepare_aead_data_mlli()
779 static int cc_aead_chain_data(struct cc_drvdata *drvdata, in cc_aead_chain_data()
886 static void cc_update_aead_mlli_nents(struct cc_drvdata *drvdata, in cc_update_aead_mlli_nents()
937 int cc_map_aead_request(struct cc_drvdata *drvdata, struct aead_request *req) in cc_map_aead_request()
1131 int cc_map_hash_request_final(struct cc_drvdata *drvdata, void *ctx, in cc_map_hash_request_final()
1210 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;
1446 int cc_cipher_free(struct cc_drvdata *drvdata) in cc_cipher_free()
1458 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()