Home
last modified time | relevance | path

Searched refs:mtk_cryp (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/crypto/mediatek/
Dmtk-platform.h120 struct mtk_cryp;
122 typedef int (*mtk_aes_fn)(struct mtk_cryp *cryp, struct mtk_aes_rec *aes);
146 struct mtk_cryp *cryp;
183 struct mtk_cryp *cryp;
210 struct mtk_cryp { struct
226 int mtk_cipher_alg_register(struct mtk_cryp *cryp); argument
227 void mtk_cipher_alg_release(struct mtk_cryp *cryp);
228 int mtk_hash_alg_register(struct mtk_cryp *cryp);
229 void mtk_hash_alg_release(struct mtk_cryp *cryp);
Dmtk-platform.c120 static void mtk_desc_ring_link(struct mtk_cryp *cryp, u32 mask) in mtk_desc_ring_link()
127 static void mtk_dfe_dse_buf_setup(struct mtk_cryp *cryp, in mtk_dfe_dse_buf_setup()
162 static int mtk_dfe_dse_state_check(struct mtk_cryp *cryp) in mtk_dfe_dse_state_check()
186 static int mtk_dfe_dse_reset(struct mtk_cryp *cryp) in mtk_dfe_dse_reset()
210 static void mtk_cmd_desc_ring_setup(struct mtk_cryp *cryp, in mtk_cmd_desc_ring_setup()
251 static void mtk_res_desc_ring_setup(struct mtk_cryp *cryp, in mtk_res_desc_ring_setup()
301 static int mtk_packet_engine_setup(struct mtk_cryp *cryp) in mtk_packet_engine_setup()
355 static int mtk_aic_cap_check(struct mtk_cryp *cryp, int hw) in mtk_aic_cap_check()
380 static int mtk_aic_init(struct mtk_cryp *cryp, int hw) in mtk_aic_init()
404 static int mtk_accelerator_init(struct mtk_cryp *cryp) in mtk_accelerator_init()
[all …]
Dmtk-aes.c106 struct mtk_cryp *cryp;
154 static inline u32 mtk_aes_read(struct mtk_cryp *cryp, u32 offset) in mtk_aes_read()
159 static inline void mtk_aes_write(struct mtk_cryp *cryp, in mtk_aes_write()
165 static struct mtk_cryp *mtk_aes_find_dev(struct mtk_aes_base_ctx *ctx) in mtk_aes_find_dev()
167 struct mtk_cryp *cryp = NULL; in mtk_aes_find_dev()
168 struct mtk_cryp *tmp; in mtk_aes_find_dev()
262 static inline int mtk_aes_complete(struct mtk_cryp *cryp, in mtk_aes_complete()
277 static int mtk_aes_xmit(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) in mtk_aes_xmit()
339 static void mtk_aes_unmap(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) in mtk_aes_unmap()
371 static int mtk_aes_map(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) in mtk_aes_map()
[all …]
Dmtk-sha.c105 struct mtk_cryp *cryp;
124 static int mtk_sha_handle_queue(struct mtk_cryp *cryp, u8 id,
127 static inline u32 mtk_sha_read(struct mtk_cryp *cryp, u32 offset) in mtk_sha_read()
132 static inline void mtk_sha_write(struct mtk_cryp *cryp, in mtk_sha_write()
153 static struct mtk_cryp *mtk_sha_find_dev(struct mtk_sha_ctx *tctx) in mtk_sha_find_dev()
155 struct mtk_cryp *cryp = NULL; in mtk_sha_find_dev()
156 struct mtk_cryp *tmp; in mtk_sha_find_dev()
320 static int mtk_sha_info_update(struct mtk_cryp *cryp, in mtk_sha_info_update()
421 static int mtk_sha_xmit(struct mtk_cryp *cryp, struct mtk_sha_rec *sha, in mtk_sha_xmit()
468 static int mtk_sha_dma_map(struct mtk_cryp *cryp, in mtk_sha_dma_map()
[all …]