Lines Matching refs:tfm
80 int (*init)(struct crypto_acomp *tfm);
81 void (*exit)(struct crypto_acomp *tfm);
128 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) in crypto_acomp_tfm() argument
130 return &tfm->base; in crypto_acomp_tfm()
138 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) in __crypto_acomp_tfm() argument
140 return container_of(tfm, struct crypto_acomp, base); in __crypto_acomp_tfm()
143 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) in crypto_acomp_alg() argument
145 return __crypto_acomp_alg(crypto_acomp_tfm(tfm)->__crt_alg); in crypto_acomp_alg()
148 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) in crypto_acomp_reqsize() argument
150 return tfm->reqsize; in crypto_acomp_reqsize()
154 struct crypto_acomp *tfm) in acomp_request_set_tfm() argument
156 req->base.tfm = crypto_acomp_tfm(tfm); in acomp_request_set_tfm()
161 return __crypto_acomp_tfm(req->base.tfm); in crypto_acomp_reqtfm()
171 static inline void crypto_free_acomp(struct crypto_acomp *tfm) in crypto_free_acomp() argument
173 crypto_destroy_tfm(tfm, crypto_acomp_tfm(tfm)); in crypto_free_acomp()
192 struct acomp_req *acomp_request_alloc(struct crypto_acomp *tfm);
263 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_compress() local
264 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_acomp_compress()
269 ret = tfm->compress(req); in crypto_acomp_compress()
285 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_decompress() local
286 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_acomp_decompress()
291 ret = tfm->decompress(req); in crypto_acomp_decompress()