Lines Matching defs:tfm
1491 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
1556 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
1601 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1602 struct s5p_hash_ctx *tctx = crypto_ahash_ctx(tfm);
1613 crypto_ahash_digestsize(tfm));
1615 switch (crypto_ahash_digestsize(tfm)) {
1649 * @tfm: crypto transformation
1651 static int s5p_hash_cra_init_alg(struct crypto_tfm *tfm)
1653 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm);
1654 const char *alg_name = crypto_tfm_alg_name(tfm);
1665 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
1672 * s5p_hash_cra_init - init crypto tfm
1673 * @tfm: crypto transformation
1675 static int s5p_hash_cra_init(struct crypto_tfm *tfm)
1677 return s5p_hash_cra_init_alg(tfm);
1681 * s5p_hash_cra_exit - exit crypto tfm
1682 * @tfm: crypto transformation
1686 static void s5p_hash_cra_exit(struct crypto_tfm *tfm)
1688 struct s5p_hash_ctx *tctx = crypto_tfm_ctx(tfm);
1716 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1717 struct s5p_hash_ctx *tctx = crypto_ahash_ctx(tfm);
1999 dev->ctx = crypto_tfm_ctx(dev->req->base.tfm);
2028 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
2030 struct s5p_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
2050 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher);
2051 struct s5p_aes_ctx *ctx = crypto_tfm_ctx(tfm);
2089 static int s5p_aes_init_tfm(struct crypto_skcipher *tfm)
2091 struct s5p_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
2094 crypto_skcipher_set_reqsize(tfm, sizeof(struct s5p_aes_reqctx));