Lines Matching defs:tfm

63  * @tfm:	transform state of cipher algorithm.
70 __le32 tfm[2];
170 * Assign record id to tfm in round-robin fashion, and this
171 * will help tfm to bind to corresponding descriptor rings.
283 info->tfm[0] = SHA_TFM_HASH | SHA_TFM_SIZE(SIZE_IN_WORDS(ctx->ds));
287 info->tfm[0] |= SHA_TFM_SHA1;
290 info->tfm[0] |= SHA_TFM_SHA224;
293 info->tfm[0] |= SHA_TFM_SHA256;
296 info->tfm[0] |= SHA_TFM_SHA384;
299 info->tfm[0] |= SHA_TFM_SHA512;
307 info->tfm[1] = SHA_TFM_HASH_STORE;
308 info->ctrl[0] = info->tfm[0] | SHA_TFM_CONTINUE | SHA_TFM_START;
309 info->ctrl[1] = info->tfm[1];
358 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
364 shash->tfm = bctx->shash;
374 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
375 struct mtk_sha_ctx *tctx = crypto_ahash_ctx(tfm);
379 ctx->ds = crypto_ahash_digestsize(tfm);
443 cmd->tfm = cpu_to_le32(ctx->tfm_dma);
706 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
799 static int mtk_sha_setkey(struct crypto_ahash *tfm, const u8 *key,
802 struct mtk_sha_ctx *tctx = crypto_ahash_ctx(tfm);
845 static int mtk_sha_cra_init_alg(struct crypto_tfm *tfm,
848 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(tfm);
855 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
874 static int mtk_sha_cra_init(struct crypto_tfm *tfm)
876 return mtk_sha_cra_init_alg(tfm, NULL);
879 static int mtk_sha_cra_sha1_init(struct crypto_tfm *tfm)
881 return mtk_sha_cra_init_alg(tfm, "sha1");
884 static int mtk_sha_cra_sha224_init(struct crypto_tfm *tfm)
886 return mtk_sha_cra_init_alg(tfm, "sha224");
889 static int mtk_sha_cra_sha256_init(struct crypto_tfm *tfm)
891 return mtk_sha_cra_init_alg(tfm, "sha256");
894 static int mtk_sha_cra_sha384_init(struct crypto_tfm *tfm)
896 return mtk_sha_cra_init_alg(tfm, "sha384");
899 static int mtk_sha_cra_sha512_init(struct crypto_tfm *tfm)
901 return mtk_sha_cra_init_alg(tfm, "sha512");
904 static void mtk_sha_cra_exit(struct crypto_tfm *tfm)
906 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(tfm);