Lines Matching refs:tfm

96  * crypto_alloc_acomp() -- allocate ACOMPRESS tfm handle
112 * crypto_alloc_acomp_node() -- allocate ACOMPRESS tfm handle with desired NUMA node
130 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm)
132 return &tfm->base;
141 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm)
143 return container_of(tfm, struct crypto_acomp, base);
147 struct crypto_acomp *tfm)
149 return __crypto_comp_alg_common(crypto_acomp_tfm(tfm)->__crt_alg);
152 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm)
154 return tfm->reqsize;
158 struct crypto_acomp *tfm)
160 req->base.tfm = crypto_acomp_tfm(tfm);
163 static inline bool acomp_is_async(struct crypto_acomp *tfm)
165 return crypto_comp_alg_common(tfm)->base.cra_flags &
171 return __crypto_acomp_tfm(req->base.tfm);
175 * crypto_free_acomp() -- free ACOMPRESS tfm handle
177 * @tfm: ACOMPRESS tfm handle allocated with crypto_alloc_acomp()
179 * If @tfm is a NULL or error pointer, this function does nothing.
181 static inline void crypto_free_acomp(struct crypto_acomp *tfm)
183 crypto_destroy_tfm(tfm, crypto_acomp_tfm(tfm));
198 * @tfm: ACOMPRESS tfm handle allocated with crypto_alloc_acomp()
202 struct acomp_req *acomp_request_alloc(struct crypto_acomp *tfm);
296 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req);
299 alg = crypto_comp_alg_common(tfm);
308 return crypto_comp_errstat(alg, tfm->compress(req));
322 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req);
325 alg = crypto_comp_alg_common(tfm);
334 return crypto_comp_errstat(alg, tfm->decompress(req));