Lines Matching refs:tfm
3620 static int caam_cra_init(struct crypto_skcipher *tfm) in caam_cra_init() argument
3622 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in caam_cra_init()
3625 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_init()
3630 const char *tfm_name = crypto_tfm_alg_name(&tfm->base); in caam_cra_init()
3642 crypto_skcipher_set_reqsize(tfm, sizeof(struct caam_skcipher_req_ctx) + in caam_cra_init()
3645 crypto_skcipher_set_reqsize(tfm, sizeof(struct caam_skcipher_req_ctx)); in caam_cra_init()
3655 static int caam_aead_init(struct crypto_aead *tfm) in caam_aead_init() argument
3657 struct aead_alg *alg = crypto_aead_alg(tfm); in caam_aead_init()
3660 struct caam_ctx *ctx = crypto_aead_ctx_dma(tfm); in caam_aead_init()
3662 crypto_aead_set_reqsize(tfm, sizeof(struct caam_aead_req_ctx)); in caam_aead_init()
3676 static void caam_cra_exit(struct crypto_skcipher *tfm) in caam_cra_exit() argument
3678 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm); in caam_cra_exit()
3685 static void caam_aead_exit(struct crypto_aead *tfm) in caam_aead_exit() argument
3687 caam_exit_common(crypto_aead_ctx_dma(tfm)); in caam_aead_exit()