Lines Matching refs:compr
80 struct ubifs_compressor *compr = ubifs_compressors[*compr_type]; in ubifs_compress_common() local
94 ACOMP_REQUEST_ON_STACK(req, compr->cc); in ubifs_compress_common()
197 struct ubifs_compressor *compr; in ubifs_decompress_common() local
206 compr = ubifs_compressors[compr_type]; in ubifs_decompress_common()
208 if (unlikely(!compr->capi_name)) { in ubifs_decompress_common()
209 ubifs_err(c, "%s compression is not compiled in", compr->name); in ubifs_decompress_common()
223 ACOMP_REQUEST_ON_STACK(req, compr->cc); in ubifs_decompress_common()
249 in_len, compr->name, err); in ubifs_decompress_common()
304 static int __init compr_init(struct ubifs_compressor *compr) in compr_init() argument
306 if (compr->capi_name) { in compr_init()
307 compr->cc = crypto_alloc_acomp(compr->capi_name, 0, 0); in compr_init()
308 if (IS_ERR(compr->cc)) { in compr_init()
310 current->pid, compr->name, PTR_ERR(compr->cc)); in compr_init()
311 return PTR_ERR(compr->cc); in compr_init()
315 ubifs_compressors[compr->compr_type] = compr; in compr_init()
323 static void compr_exit(struct ubifs_compressor *compr) in compr_exit() argument
325 if (compr->capi_name) in compr_exit()
326 crypto_free_acomp(compr->cc); in compr_exit()