Home
last modified time | relevance | path

Searched defs:rk_dev (Results 1 – 19 of 19) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_core.c40 static int rk_crypto_enable_clk(struct rk_crypto_dev *rk_dev) in rk_crypto_enable_clk()
54 static void rk_crypto_disable_clk(struct rk_crypto_dev *rk_dev) in rk_crypto_disable_clk()
61 static int rk_load_data(struct rk_crypto_dev *rk_dev, in rk_load_data()
212 static int rk_unload_data(struct rk_crypto_dev *rk_dev) in rk_unload_data()
266 static void start_irq_timer(struct rk_crypto_dev *rk_dev) in start_irq_timer()
274 struct rk_crypto_dev *rk_dev = from_timer(rk_dev, t, timer); in rk_crypto_irq_timer_handle() local
283 struct rk_crypto_dev *rk_dev = platform_get_drvdata(dev_id); in rk_crypto_irq_handle() local
301 static int rk_start_op(struct rk_crypto_dev *rk_dev) in rk_start_op()
328 static int rk_update_op(struct rk_crypto_dev *rk_dev) in rk_update_op()
338 static void rk_complete_op(struct rk_crypto_dev *rk_dev, int err) in rk_complete_op()
[all …]
H A Drk_crypto_v1_skcipher.c18 struct rk_crypto_dev *rk_dev) in rk_alg_ctx_cast()
30 struct rk_crypto_dev *rk_dev = platform_get_drvdata(dev_id); in rk_crypto_irq_handle() local
50 static int rk_handle_req(struct rk_crypto_dev *rk_dev, in rk_handle_req()
148 struct rk_crypto_dev *rk_dev = ctx->rk_dev; in rk_cipher_encrypt() local
168 struct rk_crypto_dev *rk_dev = ctx->rk_dev; in rk_cipher_decrypt() local
185 static void rk_ablk_hw_init(struct rk_crypto_dev *rk_dev) in rk_ablk_hw_init()
229 static void crypto_dma_start(struct rk_crypto_dev *rk_dev) in crypto_dma_start()
240 static int rk_set_data_start(struct rk_crypto_dev *rk_dev) in rk_set_data_start()
267 static int rk_ablk_start(struct rk_crypto_dev *rk_dev) in rk_ablk_start()
289 static void rk_iv_copyback(struct rk_crypto_dev *rk_dev) in rk_iv_copyback()
[all …]
H A Drk_crypto_v3_ahash.c45 static void rk_hash_reset(struct rk_crypto_dev *rk_dev) in rk_hash_reset()
68 static int rk_hash_mid_data_store(struct rk_crypto_dev *rk_dev, struct rk_hash_mid_data *mid_data) in rk_hash_mid_data_store()
105 static int rk_hash_mid_data_restore(struct rk_crypto_dev *rk_dev, struct rk_hash_mid_data *mid_data) in rk_hash_mid_data_restore()
132 struct rk_crypto_dev *rk_dev = platform_get_drvdata(dev_id); in rk_crypto_irq_handle() local
207 static inline void clear_hash_out_reg(struct rk_crypto_dev *rk_dev) in clear_hash_out_reg()
212 static int write_key_reg(struct rk_crypto_dev *rk_dev, const u8 *key, in write_key_reg()
220 static int rk_hw_hash_init(struct rk_crypto_dev *rk_dev, u32 algo, u32 type) in rk_hw_hash_init()
252 static void clean_hash_setting(struct rk_crypto_dev *rk_dev) in clean_hash_setting()
284 static int rk_ahash_dma_start(struct rk_crypto_dev *rk_dev, uint32_t flag) in rk_ahash_dma_start()
358 static int rk_ahash_get_result(struct rk_crypto_dev *rk_dev, in rk_ahash_get_result()
[all …]
H A Drk_crypto_v2_ahash.c40 static void rk_hash_reset(struct rk_crypto_dev *rk_dev) in rk_hash_reset()
65 struct rk_crypto_dev *rk_dev = platform_get_drvdata(dev_id); in rk_crypto_irq_handle() local
137 static inline void clear_hash_out_reg(struct rk_crypto_dev *rk_dev) in clear_hash_out_reg()
142 static int write_key_reg(struct rk_crypto_dev *rk_dev, const u8 *key, in write_key_reg()
150 static int rk_hw_hash_init(struct rk_crypto_dev *rk_dev, u32 algo, u32 type) in rk_hw_hash_init()
178 static void clean_hash_setting(struct rk_crypto_dev *rk_dev) in clean_hash_setting()
210 static int rk_ahash_dma_start(struct rk_crypto_dev *rk_dev, uint32_t flag) in rk_ahash_dma_start()
282 static int rk_ahash_get_result(struct rk_crypto_dev *rk_dev, in rk_ahash_get_result()
312 struct rk_crypto_dev *rk_dev = algt->rk_dev; in rk_cra_hash_init() local
H A Drk_crypto_v1_ahash.c21 struct rk_crypto_dev *rk_dev) in rk_alg_ctx_cast()
34 struct rk_crypto_dev *rk_dev = platform_get_drvdata(dev_id); in rk_crypto_irq_handle() local
94 static void rk_ahash_reg_init(struct rk_crypto_dev *rk_dev) in rk_ahash_reg_init()
216 struct rk_crypto_dev *rk_dev = tctx->rk_dev; in rk_ahash_digest() local
224 static void crypto_ahash_dma_start(struct rk_crypto_dev *rk_dev) in crypto_ahash_dma_start()
234 static int rk_ahash_set_data_start(struct rk_crypto_dev *rk_dev) in rk_ahash_set_data_start()
245 static int rk_ahash_start(struct rk_crypto_dev *rk_dev) in rk_ahash_start()
278 static int rk_ahash_crypto_rx(struct rk_crypto_dev *rk_dev) in rk_ahash_crypto_rx()
332 struct rk_crypto_dev *rk_dev; in rk_cra_hash_init() local
H A Drk_crypto_v2_skcipher.c45 struct rk_crypto_dev *rk_dev = platform_get_drvdata(dev_id); in rk_crypto_irq_handle() local
85 static inline void set_pc_len_reg(struct rk_crypto_dev *rk_dev, u64 pc_len) in set_pc_len_reg()
95 static inline void set_aad_len_reg(struct rk_crypto_dev *rk_dev, u64 aad_len) in set_aad_len_reg()
105 static void set_iv_reg(struct rk_crypto_dev *rk_dev, const u8 *iv, u32 iv_len) in set_iv_reg()
117 static void write_key_reg(struct rk_crypto_dev *rk_dev, const u8 *key, in write_key_reg()
123 static void write_tkey_reg(struct rk_crypto_dev *rk_dev, const u8 *key, in write_tkey_reg()
129 static int get_tag_reg(struct rk_crypto_dev *rk_dev, u8 *tag, u32 tag_len) in get_tag_reg()
179 static void rk_cipher_reset(struct rk_crypto_dev *rk_dev) in rk_cipher_reset()
305 static int rk_ablk_hw_init(struct rk_crypto_dev *rk_dev, u32 algo, u32 mode) in rk_ablk_hw_init()
336 static int crypto_dma_start(struct rk_crypto_dev *rk_dev, uint32_t flag) in crypto_dma_start()
[all …]
H A Drk_crypto_v3_skcipher.c44 struct rk_crypto_dev *rk_dev = platform_get_drvdata(dev_id); in rk_crypto_irq_handle() local
84 static inline void set_pc_len_reg(struct rk_crypto_dev *rk_dev, u64 pc_len) in set_pc_len_reg()
94 static inline void set_aad_len_reg(struct rk_crypto_dev *rk_dev, u64 aad_len) in set_aad_len_reg()
104 static void set_iv_reg(struct rk_crypto_dev *rk_dev, const u8 *iv, u32 iv_len) in set_iv_reg()
116 static void write_key_reg(struct rk_crypto_dev *rk_dev, const u8 *key, in write_key_reg()
122 static void write_tkey_reg(struct rk_crypto_dev *rk_dev, const u8 *key, in write_tkey_reg()
128 static int get_tag_reg(struct rk_crypto_dev *rk_dev, u8 *tag, u32 tag_len) in get_tag_reg()
178 static void rk_cipher_reset(struct rk_crypto_dev *rk_dev) in rk_cipher_reset()
304 static int rk_ablk_hw_init(struct rk_crypto_dev *rk_dev, u32 algo, u32 mode) in rk_ablk_hw_init()
335 static int crypto_dma_start(struct rk_crypto_dev *rk_dev, uint32_t flag) in crypto_dma_start()
[all …]
H A Drk_crypto_skcipher_utils.c27 struct rk_cipher_ctx *rk_cipher_ctx_cast(struct rk_crypto_dev *rk_dev) in rk_cipher_ctx_cast()
34 struct rk_alg_ctx *rk_cipher_alg_ctx(struct rk_crypto_dev *rk_dev) in rk_cipher_alg_ctx()
151 static void rk_iv_copyback(struct rk_crypto_dev *rk_dev) in rk_iv_copyback()
165 static void rk_update_iv(struct rk_crypto_dev *rk_dev) in rk_update_iv()
180 static int rk_set_data_start(struct rk_crypto_dev *rk_dev) in rk_set_data_start()
254 int rk_ablk_rx(struct rk_crypto_dev *rk_dev) in rk_ablk_rx()
327 int rk_ablk_start(struct rk_crypto_dev *rk_dev) in rk_ablk_start()
353 int rk_skcipher_handle_req(struct rk_crypto_dev *rk_dev, struct skcipher_request *req) in rk_skcipher_handle_req()
436 int rk_aead_start(struct rk_crypto_dev *rk_dev) in rk_aead_start()
475 int rk_aead_handle_req(struct rk_crypto_dev *rk_dev, struct aead_request *req) in rk_aead_handle_req()
H A Drk_crypto_ahash_utils.c46 struct rk_ahash_ctx *rk_ahash_ctx_cast(struct rk_crypto_dev *rk_dev) in rk_ahash_ctx_cast()
54 struct rk_alg_ctx *rk_ahash_alg_ctx(struct rk_crypto_dev *rk_dev) in rk_ahash_alg_ctx()
66 static int rk_ahash_set_data_start(struct rk_crypto_dev *rk_dev, uint32_t flag) in rk_ahash_set_data_start()
213 struct rk_crypto_dev *rk_dev = ctx->rk_dev; in rk_ahash_update() local
229 struct rk_crypto_dev *rk_dev = ctx->rk_dev; in rk_ahash_final() local
253 struct rk_crypto_dev *rk_dev = ctx->rk_dev; in rk_ahash_finup() local
280 int rk_ahash_start(struct rk_crypto_dev *rk_dev) in rk_ahash_start()
396 int rk_ahash_crypto_rx(struct rk_crypto_dev *rk_dev) in rk_ahash_crypto_rx()
H A Dprocfs.c49 static void crypto_show_queue_info(struct seq_file *p, struct rk_crypto_dev *rk_dev) in crypto_show_queue_info()
109 struct rk_crypto_dev *rk_dev = p->private; in crypto_show_all() local
143 int rkcrypto_proc_init(struct rk_crypto_dev *rk_dev) in rkcrypto_proc_init()
152 void rkcrypto_proc_cleanup(struct rk_crypto_dev *rk_dev) in rkcrypto_proc_cleanup()
H A Drk_crypto_v3.c99 static bool rk_is_cipher_support(struct rk_crypto_dev *rk_dev, u32 algo, u32 mode, u32 key_len) in rk_is_cipher_support()
146 static bool rk_is_hash_support(struct rk_crypto_dev *rk_dev, u32 algo, u32 type) in rk_is_hash_support()
202 bool rk_hw_crypto_v3_algo_valid(struct rk_crypto_dev *rk_dev, struct rk_crypto_algt *aglt) in rk_hw_crypto_v3_algo_valid()
H A Drk_crypto_v2_akcipher.c236 static int rk_rsa_start(struct rk_crypto_dev *rk_dev) in rk_rsa_start()
243 static int rk_rsa_crypto_rx(struct rk_crypto_dev *rk_dev) in rk_rsa_crypto_rx()
261 struct rk_crypto_dev *rk_dev; in rk_rsa_init_tfm() local
H A Drk_crypto_utils.c31 void rk_crypto_write_regs(struct rk_crypto_dev *rk_dev, u32 base_addr, const u8 *data, u32 bytes) in rk_crypto_write_regs()
46 void rk_crypto_clear_regs(struct rk_crypto_dev *rk_dev, u32 base_addr, u32 words) in rk_crypto_clear_regs()
54 void rk_crypto_read_regs(struct rk_crypto_dev *rk_dev, u32 base_addr, u8 *data, u32 bytes) in rk_crypto_read_regs()
H A Drk_crypto_v1.c56 bool rk_hw_crypto_v1_algo_valid(struct rk_crypto_dev *rk_dev, struct rk_crypto_algt *aglt) in rk_hw_crypto_v1_algo_valid()
H A Drk_crypto_v2.c100 bool rk_hw_crypto_v2_algo_valid(struct rk_crypto_dev *rk_dev, struct rk_crypto_algt *aglt) in rk_hw_crypto_v2_algo_valid()
H A Drk_crypto_v3.h88 static inline bool rk_hw_crypto_v3_algo_valid(struct rk_crypto_dev *rk_dev, in rk_hw_crypto_v3_algo_valid()
H A Drk_crypto_v1.h56 static inline bool rk_hw_crypto_v1_algo_valid(struct rk_crypto_dev *rk_dev, in rk_hw_crypto_v1_algo_valid()
H A Drk_crypto_v2.h87 static inline bool rk_hw_crypto_v2_algo_valid(struct rk_crypto_dev *rk_dev, in rk_hw_crypto_v2_algo_valid()
H A Drk_crypto_core.h168 struct rk_crypto_dev *rk_dev; member
196 struct rk_crypto_dev *rk_dev; member
219 struct rk_crypto_dev *rk_dev; member
232 struct rk_crypto_dev *rk_dev; member