Lines Matching refs:tfm

298 	struct dcp_async_ctx *actx = crypto_tfm_ctx(arq->tfm);  in mxs_dcp_aes_block_crypt()
429 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in mxs_dcp_block_fallback() local
431 struct dcp_async_ctx *ctx = crypto_skcipher_ctx(tfm); in mxs_dcp_block_fallback()
452 struct dcp_async_ctx *actx = crypto_tfm_ctx(arq->tfm); in mxs_dcp_aes_enqueue()
492 static int mxs_dcp_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in mxs_dcp_aes_setkey() argument
495 struct dcp_async_ctx *actx = crypto_skcipher_ctx(tfm); in mxs_dcp_aes_setkey()
515 tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK); in mxs_dcp_aes_setkey()
519 static int mxs_dcp_aes_fallback_init_tfm(struct crypto_skcipher *tfm) in mxs_dcp_aes_fallback_init_tfm() argument
521 const char *name = crypto_tfm_alg_name(crypto_skcipher_tfm(tfm)); in mxs_dcp_aes_fallback_init_tfm()
522 struct dcp_async_ctx *actx = crypto_skcipher_ctx(tfm); in mxs_dcp_aes_fallback_init_tfm()
530 crypto_skcipher_set_reqsize(tfm, sizeof(struct dcp_aes_req_ctx) + in mxs_dcp_aes_fallback_init_tfm()
535 static void mxs_dcp_aes_fallback_exit_tfm(struct crypto_skcipher *tfm) in mxs_dcp_aes_fallback_exit_tfm() argument
537 struct dcp_async_ctx *actx = crypto_skcipher_ctx(tfm); in mxs_dcp_aes_fallback_exit_tfm()
550 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mxs_dcp_run_sha() local
551 struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); in mxs_dcp_run_sha()
582 struct hash_alg_common *halg = crypto_hash_alg_common(tfm); in mxs_dcp_run_sha()
620 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_req_to_buf() local
621 struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); in dcp_sha_req_to_buf()
623 struct hash_alg_common *halg = crypto_hash_alg_common(tfm); in dcp_sha_req_to_buf()
725 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_init() local
726 struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); in dcp_sha_init()
728 struct hash_alg_common *halg = crypto_hash_alg_common(tfm); in dcp_sha_init()
755 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_update_fx() local
756 struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); in dcp_sha_update_fx()
817 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_import() local
818 struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); in dcp_sha_import()
832 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_export() local
833 struct dcp_async_ctx *actx_state = crypto_ahash_ctx(tfm); in dcp_sha_export()
842 static int dcp_sha_cra_init(struct crypto_tfm *tfm) in dcp_sha_cra_init() argument
844 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in dcp_sha_cra_init()
849 static void dcp_sha_cra_exit(struct crypto_tfm *tfm) in dcp_sha_cra_exit() argument