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