Lines Matching refs:tfm
80 if (ctx->tfm) in ext4_release_crypto_ctx()
81 crypto_free_tfm(ctx->tfm); in ext4_release_crypto_ctx()
156 if (ctx->tfm && (ctx->mode != key->mode)) { in ext4_get_crypto_ctx()
157 crypto_free_tfm(ctx->tfm); in ext4_get_crypto_ctx()
158 ctx->tfm = NULL; in ext4_get_crypto_ctx()
161 if (!ctx->tfm) { in ext4_get_crypto_ctx()
164 ctx->tfm = crypto_ablkcipher_tfm( in ext4_get_crypto_ctx()
170 ctx->tfm = ERR_PTR(-ENOTSUPP); in ext4_get_crypto_ctx()
175 if (IS_ERR_OR_NULL(ctx->tfm)) { in ext4_get_crypto_ctx()
176 res = PTR_ERR(ctx->tfm); in ext4_get_crypto_ctx()
177 ctx->tfm = NULL; in ext4_get_crypto_ctx()
217 if (pos->tfm) in ext4_exit_crypto()
218 crypto_free_tfm(pos->tfm); in ext4_exit_crypto()
321 struct crypto_ablkcipher *atfm = __crypto_ablkcipher_cast(ctx->tfm); in ext4_page_crypto()
324 BUG_ON(!ctx->tfm); in ext4_page_crypto()
335 crypto_tfm_set_flags(ctx->tfm, CRYPTO_TFM_REQ_WEAK_KEY); in ext4_page_crypto()