/fs/btrfs/ |
D | zlib.c | 86 char *data_in; in zlib_compress_pages() local 107 data_in = kmap(in_page); in zlib_compress_pages() 118 workspace->strm.next_in = data_in; in zlib_compress_pages() 178 data_in = kmap(in_page); in zlib_compress_pages() 181 workspace->strm.next_in = data_in; in zlib_compress_pages() 222 char *data_in; in zlib_decompress_biovec() local 230 data_in = kmap(pages_in[page_in_index]); in zlib_decompress_biovec() 231 workspace->strm.next_in = data_in; in zlib_decompress_biovec() 242 if (srclen > 2 && !(data_in[1] & PRESET_DICT) && in zlib_decompress_biovec() 243 ((data_in[0] & 0x0f) == Z_DEFLATED) && in zlib_decompress_biovec() [all …]
|
D | lzo.c | 99 char *data_in; in lzo_compress_pages() local 120 data_in = kmap(in_page); in lzo_compress_pages() 141 ret = lzo1x_1_compress(data_in, in_len, workspace->cbuf, in lzo_compress_pages() 228 data_in = kmap(in_page); in lzo_compress_pages() 266 char *data_in; in lzo_decompress_biovec() local 286 data_in = kmap(pages_in[0]); in lzo_decompress_biovec() 287 tot_len = read_compress_length(data_in); in lzo_decompress_biovec() 298 in_len = read_compress_length(data_in + in_offset); in lzo_decompress_biovec() 309 buf = data_in + in_offset; in lzo_decompress_biovec() 321 memcpy(buf + buf_offset, data_in + in_offset, bytes); in lzo_decompress_biovec() [all …]
|
D | compression.h | 33 int btrfs_decompress(int type, unsigned char *data_in, struct page *dest_page, 83 unsigned char *data_in,
|
D | compression.c | 994 int btrfs_decompress(int type, unsigned char *data_in, struct page *dest_page, in btrfs_decompress() argument 1002 ret = btrfs_compress_op[type-1]->decompress(workspace, data_in, in btrfs_decompress()
|
/fs/jffs2/ |
D | compr_rtime.c | 32 static int jffs2_rtime_compress(unsigned char *data_in, in jffs2_rtime_compress() argument 46 value = data_in[pos]; in jffs2_rtime_compress() 48 cpage_out[outpos++] = data_in[pos++]; in jffs2_rtime_compress() 54 (data_in[pos]==data_in[backpos++]) && (runlen<255)) { in jffs2_rtime_compress() 73 static int jffs2_rtime_decompress(unsigned char *data_in, in jffs2_rtime_decompress() argument 88 value = data_in[pos++]; in jffs2_rtime_decompress() 90 repeat = data_in[pos++]; in jffs2_rtime_decompress()
|
D | compr_zlib.c | 72 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()
|
D | compr_rubin.c | 262 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 …]
|
D | compr.c | 74 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()
|
D | compr_lzo.c | 43 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()
|
D | compr.h | 53 int (*compress)(unsigned char *data_in, unsigned char *cpage_out, 74 unsigned char *data_in, unsigned char **cpage_out,
|