Lines Matching refs:starfive_cryp_ctx
86 static void starfive_aes_aead_hw_start(struct starfive_cryp_ctx *ctx, u32 hw_mode) in starfive_aes_aead_hw_start()
106 static inline void starfive_aes_set_ivlen(struct starfive_cryp_ctx *ctx) in starfive_aes_set_ivlen()
116 static inline void starfive_aes_set_alen(struct starfive_cryp_ctx *ctx) in starfive_aes_set_alen()
124 static inline void starfive_aes_set_mlen(struct starfive_cryp_ctx *ctx) in starfive_aes_set_mlen()
141 static int starfive_aes_write_iv(struct starfive_cryp_ctx *ctx, u32 *iv) in starfive_aes_write_iv()
169 static inline void starfive_aes_write_nonce(struct starfive_cryp_ctx *ctx, u32 *nonce) in starfive_aes_write_nonce()
179 static int starfive_aes_write_key(struct starfive_cryp_ctx *ctx) in starfive_aes_write_key()
207 static int starfive_aes_ccm_init(struct starfive_cryp_ctx *ctx) in starfive_aes_ccm_init()
234 static int starfive_aes_hw_init(struct starfive_cryp_ctx *ctx) in starfive_aes_hw_init()
396 static int starfive_aes_gcm_write_adata(struct starfive_cryp_ctx *ctx) in starfive_aes_gcm_write_adata()
424 static int starfive_aes_ccm_write_adata(struct starfive_cryp_ctx *ctx) in starfive_aes_ccm_write_adata()
464 struct starfive_cryp_ctx *ctx; in starfive_aes_prepare_req()
521 struct starfive_cryp_ctx *ctx = in starfive_aes_do_one_req()
553 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in starfive_aes_init_tfm()
569 struct starfive_cryp_ctx *ctx = in starfive_aes_aead_do_one_req()
623 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_aead_init_tfm()
641 crypto_aead_set_reqsize(tfm, sizeof(struct starfive_cryp_ctx) + in starfive_aes_aead_init_tfm()
649 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_aead_exit_tfm()
657 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in starfive_aes_crypt()
673 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(crypto_aead_reqtfm(req)); in starfive_aes_aead_crypt()
701 struct starfive_cryp_ctx *ctx = crypto_skcipher_ctx(tfm); in starfive_aes_setkey()
720 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_aead_setkey()
748 struct starfive_cryp_ctx *ctx = crypto_aead_ctx(tfm); in starfive_aes_ccm_setauthsize()
862 .cra_ctxsize = sizeof(struct starfive_cryp_ctx),
883 .cra_ctxsize = sizeof(struct starfive_cryp_ctx),
904 .cra_ctxsize = sizeof(struct starfive_cryp_ctx),
925 .cra_ctxsize = sizeof(struct starfive_cryp_ctx),
946 .cra_ctxsize = sizeof(struct starfive_cryp_ctx),
972 .cra_ctxsize = sizeof(struct starfive_cryp_ctx),
995 .cra_ctxsize = sizeof(struct starfive_cryp_ctx),