Lines Matching refs:tfm
173 static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm) in crypto_tfm_ctx() argument
175 return tfm->__crt_ctx; in crypto_tfm_ctx()
178 static inline void *crypto_tfm_ctx_align(struct crypto_tfm *tfm, in crypto_tfm_ctx_align() argument
184 return PTR_ALIGN(crypto_tfm_ctx(tfm), align); in crypto_tfm_ctx_align()
197 static inline void *crypto_tfm_ctx_dma(struct crypto_tfm *tfm) in crypto_tfm_ctx_dma() argument
199 return crypto_tfm_ctx_align(tfm, crypto_dma_align()); in crypto_tfm_ctx_dma()
203 struct crypto_tfm *tfm) in crypto_tfm_alg_instance() argument
205 return container_of(tfm->__crt_alg, struct crypto_instance, alg); in crypto_tfm_alg_instance()
261 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type() argument
263 return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK; in crypto_tfm_alg_type()
266 static inline bool crypto_tfm_req_virt(struct crypto_tfm *tfm) in crypto_tfm_req_virt() argument
268 return tfm->__crt_alg->cra_flags & CRYPTO_ALG_REQ_VIRT; in crypto_tfm_req_virt()