Home
last modified time | relevance | path

Searched refs:data_in (Results 1 – 11 of 11) sorted by relevance

/fs/btrfs/
Dzlib.c100 char *data_in; in zlib_compress_pages() local
157 data_in = kmap(in_page); in zlib_compress_pages()
159 data_in, PAGE_SIZE); in zlib_compress_pages()
170 data_in = kmap(in_page); in zlib_compress_pages()
172 workspace->strm.next_in = data_in; in zlib_compress_pages()
282 char *data_in; in zlib_decompress_bio() local
290 data_in = kmap(pages_in[page_in_index]); in zlib_decompress_bio()
291 workspace->strm.next_in = data_in; in zlib_decompress_bio()
301 if (srclen > 2 && !(data_in[1] & PRESET_DICT) && in zlib_decompress_bio()
302 ((data_in[0] & 0x0f) == Z_DEFLATED) && in zlib_decompress_bio()
[all …]
Dlzo.c121 char *data_in; in lzo_compress_pages() local
144 data_in = kmap(in_page); in lzo_compress_pages()
165 ret = lzo1x_1_compress(data_in, in_len, workspace->cbuf, in lzo_compress_pages()
252 data_in = kmap(in_page); in lzo_compress_pages()
412 int lzo_decompress(struct list_head *ws, unsigned char *data_in, in lzo_decompress() argument
427 in_len = read_compress_length(data_in); in lzo_decompress()
430 data_in += LZO_LEN; in lzo_decompress()
432 in_len = read_compress_length(data_in); in lzo_decompress()
437 data_in += LZO_LEN; in lzo_decompress()
440 ret = lzo1x_decompress_safe(data_in, in_len, workspace->buf, &out_len); in lzo_decompress()
Dcompression.h87 int btrfs_decompress(int type, unsigned char *data_in, struct page *dest_page,
150 int zlib_decompress(struct list_head *ws, unsigned char *data_in,
161 int lzo_decompress(struct list_head *ws, unsigned char *data_in,
171 int zstd_decompress(struct list_head *ws, unsigned char *data_in,
Dcompression.c115 unsigned char *data_in, struct page *dest_page, in compression_decompress() argument
119 case BTRFS_COMPRESS_ZLIB: return zlib_decompress(ws, data_in, dest_page, in compression_decompress()
121 case BTRFS_COMPRESS_LZO: return lzo_decompress(ws, data_in, dest_page, in compression_decompress()
123 case BTRFS_COMPRESS_ZSTD: return zstd_decompress(ws, data_in, dest_page, in compression_decompress()
1243 int btrfs_decompress(int type, unsigned char *data_in, struct page *dest_page, in btrfs_decompress() argument
1250 ret = compression_decompress(type, workspace, data_in, dest_page, in btrfs_decompress()
Dzstd.c622 int zstd_decompress(struct list_head *ws, unsigned char *data_in, in zstd_decompress() argument
643 workspace->in_buf.src = data_in; in zstd_decompress()
/fs/jffs2/
Dcompr_rtime.c32 static int jffs2_rtime_compress(unsigned char *data_in, in jffs2_rtime_compress() argument
49 value = data_in[pos]; in jffs2_rtime_compress()
51 cpage_out[outpos++] = data_in[pos++]; in jffs2_rtime_compress()
57 (data_in[pos]==data_in[backpos++]) && (runlen<255)) { in jffs2_rtime_compress()
76 static int jffs2_rtime_decompress(unsigned char *data_in, in jffs2_rtime_decompress() argument
91 value = data_in[pos++]; in jffs2_rtime_decompress()
93 repeat = data_in[pos++]; in jffs2_rtime_decompress()
Dcompr_zlib.c72 static int jffs2_zlib_compress(unsigned char *data_in, in jffs2_zlib_compress() argument
89 def_strm.next_in = data_in; in jffs2_zlib_compress()
141 static int jffs2_zlib_decompress(unsigned char *data_in, in jffs2_zlib_decompress() argument
150 inf_strm.next_in = data_in; in jffs2_zlib_decompress()
160 if (srclen > 2 && !(data_in[1] & PRESET_DICT) && in jffs2_zlib_decompress()
161 ((data_in[0] & 0x0f) == Z_DEFLATED) && in jffs2_zlib_decompress()
162 !(((data_in[0]<<8) + data_in[1]) % 31)) { in jffs2_zlib_decompress()
165 wbits = -((data_in[0] >> 4) + 8); in jffs2_zlib_decompress()
Dcompr_rubin.c262 static int rubin_do_compress(int bit_divider, int *bits, unsigned char *data_in, in rubin_do_compress() argument
274 while (pos < (*sourcelen) && !out_byte(&rs, data_in[pos])) in rubin_do_compress()
297 int jffs2_rubinmips_compress(unsigned char *data_in, unsigned char *cpage_out,
300 return rubin_do_compress(BIT_DIVIDER_MIPS, bits_mips, data_in,
304 static int jffs2_dynrubin_compress(unsigned char *data_in, in jffs2_dynrubin_compress() argument
322 histo[data_in[i]]++; in jffs2_dynrubin_compress()
350 ret = rubin_do_compress(256, bits, data_in, cpage_out+8, &mysrclen, in jffs2_dynrubin_compress()
384 static int jffs2_rubinmips_decompress(unsigned char *data_in, in jffs2_rubinmips_decompress() argument
388 rubin_do_decompress(BIT_DIVIDER_MIPS, bits_mips, data_in, in jffs2_rubinmips_decompress()
393 static int jffs2_dynrubin_decompress(unsigned char *data_in, in jffs2_dynrubin_decompress() argument
[all …]
Dcompr.c74 static int jffs2_selected_compress(u8 compr, unsigned char *data_in, in jffs2_selected_compress() argument
108 err = this->compress(data_in, output_buf, datalen, cdatalen); in jffs2_selected_compress()
149 unsigned char *data_in, unsigned char **cpage_out, in jffs2_compress() argument
168 ret = jffs2_selected_compress(0, data_in, cpage_out, datalen, in jffs2_compress()
206 compr_ret = this->compress(data_in, this->compr_buf, datalen, cdatalen); in jffs2_compress()
233 ret = jffs2_selected_compress(JFFS2_COMPR_LZO, data_in, in jffs2_compress()
237 ret = jffs2_selected_compress(JFFS2_COMPR_ZLIB, data_in, in jffs2_compress()
245 *cpage_out = data_in; in jffs2_compress()
Dcompr_lzo.c43 static int jffs2_lzo_compress(unsigned char *data_in, unsigned char *cpage_out, in jffs2_lzo_compress() argument
50 ret = lzo1x_1_compress(data_in, *sourcelen, lzo_compress_buf, &compress_size, lzo_mem); in jffs2_lzo_compress()
68 static int jffs2_lzo_decompress(unsigned char *data_in, unsigned char *cpage_out, in jffs2_lzo_decompress() argument
74 ret = lzo1x_decompress_safe(data_in, srclen, cpage_out, &dl); in jffs2_lzo_decompress()
Dcompr.h53 int (*compress)(unsigned char *data_in, unsigned char *cpage_out,
74 unsigned char *data_in, unsigned char **cpage_out,