Lines Matching refs:tfm

34 	void *(*alloc_ctx)(struct crypto_scomp *tfm);
35 void (*free_ctx)(struct crypto_scomp *tfm, void *ctx);
36 int (*compress)(struct crypto_scomp *tfm, const u8 *src,
39 int (*decompress)(struct crypto_scomp *tfm, const u8 *src,
54 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) in __crypto_scomp_tfm() argument
56 return container_of(tfm, struct crypto_scomp, base); in __crypto_scomp_tfm()
59 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) in crypto_scomp_tfm() argument
61 return &tfm->base; in crypto_scomp_tfm()
64 static inline void crypto_free_scomp(struct crypto_scomp *tfm) in crypto_free_scomp() argument
66 crypto_destroy_tfm(tfm, crypto_scomp_tfm(tfm)); in crypto_free_scomp()
69 static inline struct scomp_alg *crypto_scomp_alg(struct crypto_scomp *tfm) in crypto_scomp_alg() argument
71 return __crypto_scomp_alg(crypto_scomp_tfm(tfm)->__crt_alg); in crypto_scomp_alg()
74 static inline void *crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) in crypto_scomp_alloc_ctx() argument
76 return crypto_scomp_alg(tfm)->alloc_ctx(tfm); in crypto_scomp_alloc_ctx()
79 static inline void crypto_scomp_free_ctx(struct crypto_scomp *tfm, in crypto_scomp_free_ctx() argument
82 return crypto_scomp_alg(tfm)->free_ctx(tfm, ctx); in crypto_scomp_free_ctx()
85 static inline int crypto_scomp_compress(struct crypto_scomp *tfm, in crypto_scomp_compress() argument
89 return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); in crypto_scomp_compress()
92 static inline int crypto_scomp_decompress(struct crypto_scomp *tfm, in crypto_scomp_decompress() argument
97 return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, in crypto_scomp_decompress()