Lines Matching refs:tfm
80 int (*init)(struct crypto_acomp *tfm);
81 void (*exit)(struct crypto_acomp *tfm);
94 * crypto_alloc_acomp() -- allocate ACOMPRESS tfm handle
110 * crypto_alloc_acomp_node() -- allocate ACOMPRESS tfm handle with desired NUMA node
128 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm)
130 return &tfm->base;
138 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm)
140 return container_of(tfm, struct crypto_acomp, base);
143 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm)
145 return __crypto_acomp_alg(crypto_acomp_tfm(tfm)->__crt_alg);
148 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm)
150 return tfm->reqsize;
154 struct crypto_acomp *tfm)
156 req->base.tfm = crypto_acomp_tfm(tfm);
161 return __crypto_acomp_tfm(req->base.tfm);
165 * crypto_free_acomp() -- free ACOMPRESS tfm handle
167 * @tfm: ACOMPRESS tfm handle allocated with crypto_alloc_acomp()
169 * If @tfm is a NULL or error pointer, this function does nothing.
171 static inline void crypto_free_acomp(struct crypto_acomp *tfm)
173 crypto_destroy_tfm(tfm, crypto_acomp_tfm(tfm));
188 * @tfm: ACOMPRESS tfm handle allocated with crypto_alloc_acomp()
192 struct acomp_req *acomp_request_alloc(struct crypto_acomp *tfm);
263 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req);
264 struct crypto_alg *alg = tfm->base.__crt_alg;
269 ret = tfm->compress(req);
285 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req);
286 struct crypto_alg *alg = tfm->base.__crt_alg;
291 ret = tfm->decompress(req);