Lines Matching refs:tfm
58 int (*compress_setup)(struct crypto_pcomp *tfm, void *params,
60 int (*compress_init)(struct crypto_pcomp *tfm);
61 int (*compress_update)(struct crypto_pcomp *tfm,
63 int (*compress_final)(struct crypto_pcomp *tfm,
65 int (*decompress_setup)(struct crypto_pcomp *tfm, void *params,
67 int (*decompress_init)(struct crypto_pcomp *tfm);
68 int (*decompress_update)(struct crypto_pcomp *tfm,
70 int (*decompress_final)(struct crypto_pcomp *tfm,
79 static inline struct crypto_tfm *crypto_pcomp_tfm(struct crypto_pcomp *tfm) in crypto_pcomp_tfm() argument
81 return &tfm->base; in crypto_pcomp_tfm()
84 static inline void crypto_free_pcomp(struct crypto_pcomp *tfm) in crypto_free_pcomp() argument
86 crypto_destroy_tfm(tfm, crypto_pcomp_tfm(tfm)); in crypto_free_pcomp()
94 static inline struct pcomp_alg *crypto_pcomp_alg(struct crypto_pcomp *tfm) in crypto_pcomp_alg() argument
96 return __crypto_pcomp_alg(crypto_pcomp_tfm(tfm)->__crt_alg); in crypto_pcomp_alg()
99 static inline int crypto_compress_setup(struct crypto_pcomp *tfm, in crypto_compress_setup() argument
102 return crypto_pcomp_alg(tfm)->compress_setup(tfm, params, len); in crypto_compress_setup()
105 static inline int crypto_compress_init(struct crypto_pcomp *tfm) in crypto_compress_init() argument
107 return crypto_pcomp_alg(tfm)->compress_init(tfm); in crypto_compress_init()
110 static inline int crypto_compress_update(struct crypto_pcomp *tfm, in crypto_compress_update() argument
113 return crypto_pcomp_alg(tfm)->compress_update(tfm, req); in crypto_compress_update()
116 static inline int crypto_compress_final(struct crypto_pcomp *tfm, in crypto_compress_final() argument
119 return crypto_pcomp_alg(tfm)->compress_final(tfm, req); in crypto_compress_final()
122 static inline int crypto_decompress_setup(struct crypto_pcomp *tfm, in crypto_decompress_setup() argument
125 return crypto_pcomp_alg(tfm)->decompress_setup(tfm, params, len); in crypto_decompress_setup()
128 static inline int crypto_decompress_init(struct crypto_pcomp *tfm) in crypto_decompress_init() argument
130 return crypto_pcomp_alg(tfm)->decompress_init(tfm); in crypto_decompress_init()
133 static inline int crypto_decompress_update(struct crypto_pcomp *tfm, in crypto_decompress_update() argument
136 return crypto_pcomp_alg(tfm)->decompress_update(tfm, req); in crypto_decompress_update()
139 static inline int crypto_decompress_final(struct crypto_pcomp *tfm, in crypto_decompress_final() argument
142 return crypto_pcomp_alg(tfm)->decompress_final(tfm, req); in crypto_decompress_final()