Lines Matching defs:tfm
60 int (*init_tfm)(struct crypto_tfm *tfm);
184 static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm)
186 return tfm->__crt_ctx;
189 static inline void *crypto_tfm_ctx_align(struct crypto_tfm *tfm,
195 return PTR_ALIGN(crypto_tfm_ctx(tfm), align);
198 static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm)
200 return crypto_tfm_ctx_align(tfm, crypto_tfm_alg_alignmask(tfm) + 1);
213 static inline void *crypto_tfm_ctx_dma(struct crypto_tfm *tfm)
215 return crypto_tfm_ctx_align(tfm, crypto_dma_align());
219 struct crypto_tfm *tfm)
221 return container_of(tfm->__crt_alg, struct crypto_instance, alg);
277 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm)
279 return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK;