• Home
  • Raw
  • Download

Lines Matching refs:compr

99 	struct ubifs_compressor *compr = ubifs_compressors[*compr_type];  in ubifs_compress()  local
108 if (compr->comp_mutex) in ubifs_compress()
109 mutex_lock(compr->comp_mutex); in ubifs_compress()
110 err = crypto_comp_compress(compr->cc, in_buf, in_len, out_buf, in ubifs_compress()
112 if (compr->comp_mutex) in ubifs_compress()
113 mutex_unlock(compr->comp_mutex); in ubifs_compress()
116 in_len, compr->name, err); in ubifs_compress()
151 struct ubifs_compressor *compr; in ubifs_decompress() local
158 compr = ubifs_compressors[compr_type]; in ubifs_decompress()
160 if (unlikely(!compr->capi_name)) { in ubifs_decompress()
161 ubifs_err(c, "%s compression is not compiled in", compr->name); in ubifs_decompress()
171 if (compr->decomp_mutex) in ubifs_decompress()
172 mutex_lock(compr->decomp_mutex); in ubifs_decompress()
173 err = crypto_comp_decompress(compr->cc, in_buf, in_len, out_buf, in ubifs_decompress()
175 if (compr->decomp_mutex) in ubifs_decompress()
176 mutex_unlock(compr->decomp_mutex); in ubifs_decompress()
179 in_len, compr->name, err); in ubifs_decompress()
191 static int __init compr_init(struct ubifs_compressor *compr) in compr_init() argument
193 if (compr->capi_name) { in compr_init()
194 compr->cc = crypto_alloc_comp(compr->capi_name, 0, 0); in compr_init()
195 if (IS_ERR(compr->cc)) { in compr_init()
197 current->pid, compr->name, PTR_ERR(compr->cc)); in compr_init()
198 return PTR_ERR(compr->cc); in compr_init()
202 ubifs_compressors[compr->compr_type] = compr; in compr_init()
210 static void compr_exit(struct ubifs_compressor *compr) in compr_exit() argument
212 if (compr->capi_name) in compr_exit()
213 crypto_free_comp(compr->cc); in compr_exit()