Lines Matching refs:tfm
85 int (*init)(struct crypto_acomp *tfm);
86 void (*exit)(struct crypto_acomp *tfm);
115 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) in crypto_acomp_tfm() argument
117 return &tfm->base; in crypto_acomp_tfm()
125 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) in __crypto_acomp_tfm() argument
127 return container_of(tfm, struct crypto_acomp, base); in __crypto_acomp_tfm()
130 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) in crypto_acomp_alg() argument
132 return __crypto_acomp_alg(crypto_acomp_tfm(tfm)->__crt_alg); in crypto_acomp_alg()
135 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) in crypto_acomp_reqsize() argument
137 return tfm->reqsize; in crypto_acomp_reqsize()
141 struct crypto_acomp *tfm) in acomp_request_set_tfm() argument
143 req->base.tfm = crypto_acomp_tfm(tfm); in acomp_request_set_tfm()
148 return __crypto_acomp_tfm(req->base.tfm); in crypto_acomp_reqtfm()
156 static inline void crypto_free_acomp(struct crypto_acomp *tfm) in crypto_free_acomp() argument
158 crypto_destroy_tfm(tfm, crypto_acomp_tfm(tfm)); in crypto_free_acomp()
177 struct acomp_req *acomp_request_alloc(struct crypto_acomp *tfm);
248 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_compress() local
250 return tfm->compress(req); in crypto_acomp_compress()
264 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_decompress() local
266 return tfm->decompress(req); in crypto_acomp_decompress()