Lines Matching refs:starfive_cryp_dev
52 static inline int starfive_aes_wait_busy(struct starfive_cryp_dev *cryp) in starfive_aes_wait_busy()
60 static inline int starfive_aes_wait_keydone(struct starfive_cryp_dev *cryp) in starfive_aes_wait_keydone()
68 static inline int starfive_aes_wait_gcmdone(struct starfive_cryp_dev *cryp) in starfive_aes_wait_gcmdone()
76 static inline int is_gcm(struct starfive_cryp_dev *cryp) in is_gcm()
81 static inline bool is_encrypt(struct starfive_cryp_dev *cryp) in is_encrypt()
88 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_aead_hw_start()
108 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_set_alen()
116 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_set_mlen()
133 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_write_iv()
151 static inline void starfive_aes_get_iv(struct starfive_cryp_dev *cryp, u32 *iv) in starfive_aes_get_iv()
161 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_write_nonce()
171 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_write_key()
199 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_ccm_init()
227 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_hw_init()
294 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_read_authtag()
325 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_finish_req()
344 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_gcm_write_adata()
372 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_ccm_write_adata()
409 struct starfive_cryp_dev *cryp = param; in starfive_aes_dma_done()
414 static void starfive_aes_dma_init(struct starfive_cryp_dev *cryp) in starfive_aes_dma_init()
437 static int starfive_aes_dma_xfer(struct starfive_cryp_dev *cryp, in starfive_aes_dma_xfer()
499 static int starfive_aes_map_sg(struct starfive_cryp_dev *cryp, in starfive_aes_map_sg()
575 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_do_one_req()
643 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_aead_do_one_req()
748 static bool starfive_aes_check_unaligned(struct starfive_cryp_dev *cryp, in starfive_aes_check_unaligned()
792 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_crypt()
829 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_aead_crypt()