Lines Matching defs:cryp

161 	struct stm32_cryp       *cryp;  member
212 static inline bool is_aes(struct stm32_cryp *cryp) in is_aes()
217 static inline bool is_des(struct stm32_cryp *cryp) in is_des()
222 static inline bool is_tdes(struct stm32_cryp *cryp) in is_tdes()
227 static inline bool is_ecb(struct stm32_cryp *cryp) in is_ecb()
232 static inline bool is_cbc(struct stm32_cryp *cryp) in is_cbc()
237 static inline bool is_ctr(struct stm32_cryp *cryp) in is_ctr()
242 static inline bool is_gcm(struct stm32_cryp *cryp) in is_gcm()
247 static inline bool is_ccm(struct stm32_cryp *cryp) in is_ccm()
252 static inline bool is_encrypt(struct stm32_cryp *cryp) in is_encrypt()
257 static inline bool is_decrypt(struct stm32_cryp *cryp) in is_decrypt()
262 static inline u32 stm32_cryp_read(struct stm32_cryp *cryp, u32 ofst) in stm32_cryp_read()
267 static inline void stm32_cryp_write(struct stm32_cryp *cryp, u32 ofst, u32 val) in stm32_cryp_write()
272 static inline int stm32_cryp_wait_busy(struct stm32_cryp *cryp) in stm32_cryp_wait_busy()
280 static inline void stm32_cryp_enable(struct stm32_cryp *cryp) in stm32_cryp_enable()
286 static inline int stm32_cryp_wait_enable(struct stm32_cryp *cryp) in stm32_cryp_wait_enable()
294 static inline int stm32_cryp_wait_output(struct stm32_cryp *cryp) in stm32_cryp_wait_output()
302 static inline void stm32_cryp_key_read_enable(struct stm32_cryp *cryp) in stm32_cryp_key_read_enable()
308 static inline void stm32_cryp_key_read_disable(struct stm32_cryp *cryp) in stm32_cryp_key_read_disable()
319 struct stm32_cryp *tmp, *cryp = NULL; in stm32_cryp_find_dev() local
337 static void stm32_cryp_hw_write_iv(struct stm32_cryp *cryp, __be32 *iv) in stm32_cryp_hw_write_iv()
351 static void stm32_cryp_get_iv(struct stm32_cryp *cryp) in stm32_cryp_get_iv()
493 static u32 stm32_cryp_get_hw_mode(struct stm32_cryp *cryp) in stm32_cryp_get_hw_mode()
526 static unsigned int stm32_cryp_get_input_text_len(struct stm32_cryp *cryp) in stm32_cryp_get_input_text_len()
532 static int stm32_cryp_gcm_init(struct stm32_cryp *cryp, u32 cfg) in stm32_cryp_gcm_init()
564 static void stm32_crypt_gcmccm_end_header(struct stm32_cryp *cryp) in stm32_crypt_gcmccm_end_header()
599 static void stm32_cryp_write_ccm_first_header(struct stm32_cryp *cryp) in stm32_cryp_write_ccm_first_header()
634 static int stm32_cryp_ccm_init(struct stm32_cryp *cryp, u32 cfg) in stm32_cryp_ccm_init()
699 static int stm32_cryp_hw_init(struct stm32_cryp *cryp) in stm32_cryp_hw_init()
801 static void stm32_cryp_finish_req(struct stm32_cryp *cryp, int err) in stm32_cryp_finish_req()
820 static int stm32_cryp_cpu_start(struct stm32_cryp *cryp) in stm32_cryp_cpu_start()
851 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx); in stm32_cryp_crypt() local
865 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx); in stm32_cryp_aead_crypt() local
1156 struct stm32_cryp *cryp; in stm32_cryp_prepare_req() local
1241 struct stm32_cryp *cryp = ctx->cryp; in stm32_cryp_cipher_one_req() local
1255 struct stm32_cryp *cryp = ctx->cryp; in stm32_cryp_aead_one_req() local
1274 static int stm32_cryp_read_auth_tag(struct stm32_cryp *cryp) in stm32_cryp_read_auth_tag()
1356 static void stm32_cryp_check_ctr_counter(struct stm32_cryp *cryp) in stm32_cryp_check_ctr_counter()
1382 static void stm32_cryp_irq_read_data(struct stm32_cryp *cryp) in stm32_cryp_irq_read_data()
1393 static void stm32_cryp_irq_write_block(struct stm32_cryp *cryp) in stm32_cryp_irq_write_block()
1403 static void stm32_cryp_irq_write_gcm_padded_data(struct stm32_cryp *cryp) in stm32_cryp_irq_write_gcm_padded_data()
1477 static void stm32_cryp_irq_set_npblb(struct stm32_cryp *cryp) in stm32_cryp_irq_set_npblb()
1491 static void stm32_cryp_irq_write_ccm_padded_data(struct stm32_cryp *cryp) in stm32_cryp_irq_write_ccm_padded_data()
1577 static void stm32_cryp_irq_write_data(struct stm32_cryp *cryp) in stm32_cryp_irq_write_data()
1618 static void stm32_cryp_irq_write_gcmccm_header(struct stm32_cryp *cryp) in stm32_cryp_irq_write_gcmccm_header()
1636 struct stm32_cryp *cryp = arg; in stm32_cryp_irq_thread() local
1676 struct stm32_cryp *cryp = arg; in stm32_cryp_irq() local
1970 struct stm32_cryp *cryp; in stm32_cryp_probe() local
2089 struct stm32_cryp *cryp = platform_get_drvdata(pdev); in stm32_cryp_remove() local
2120 struct stm32_cryp *cryp = dev_get_drvdata(dev); in stm32_cryp_runtime_suspend() local
2129 struct stm32_cryp *cryp = dev_get_drvdata(dev); in stm32_cryp_runtime_resume() local