Lines Matching refs:tfm

29 	void *(*alloc_ctx)(struct crypto_scomp *tfm);
30 void (*free_ctx)(struct crypto_scomp *tfm, void *ctx);
31 int (*compress)(struct crypto_scomp *tfm, const u8 *src,
34 int (*decompress)(struct crypto_scomp *tfm, const u8 *src,
45 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) in __crypto_scomp_tfm() argument
47 return container_of(tfm, struct crypto_scomp, base); in __crypto_scomp_tfm()
50 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) in crypto_scomp_tfm() argument
52 return &tfm->base; in crypto_scomp_tfm()
55 static inline void crypto_free_scomp(struct crypto_scomp *tfm) in crypto_free_scomp() argument
57 crypto_destroy_tfm(tfm, crypto_scomp_tfm(tfm)); in crypto_free_scomp()
60 static inline struct scomp_alg *crypto_scomp_alg(struct crypto_scomp *tfm) in crypto_scomp_alg() argument
62 return __crypto_scomp_alg(crypto_scomp_tfm(tfm)->__crt_alg); in crypto_scomp_alg()
65 static inline void *crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) in crypto_scomp_alloc_ctx() argument
67 return crypto_scomp_alg(tfm)->alloc_ctx(tfm); in crypto_scomp_alloc_ctx()
70 static inline void crypto_scomp_free_ctx(struct crypto_scomp *tfm, in crypto_scomp_free_ctx() argument
73 return crypto_scomp_alg(tfm)->free_ctx(tfm, ctx); in crypto_scomp_free_ctx()
76 static inline int crypto_scomp_compress(struct crypto_scomp *tfm, in crypto_scomp_compress() argument
80 return crypto_scomp_alg(tfm)->compress(tfm, src, slen, dst, dlen, ctx); in crypto_scomp_compress()
83 static inline int crypto_scomp_decompress(struct crypto_scomp *tfm, in crypto_scomp_decompress() argument
88 return crypto_scomp_alg(tfm)->decompress(tfm, src, slen, dst, dlen, in crypto_scomp_decompress()
92 int crypto_init_scomp_ops_async(struct crypto_tfm *tfm);