Searched refs:dict_size (Results 1 - 6 of 6) sorted by path

/linux-master/fs/erofs/
H A Ddecompressor_lzma.c78 unsigned int dict_size, i; local
91 dict_size = le32_to_cpu(lzma->dict_size);
92 if (dict_size > Z_EROFS_LZMA_MAX_DICT_SIZE || dict_size < 4096) {
94 dict_size);
101 if (z_erofs_lzma_max_dictsize >= dict_size) {
129 /* 2. walk each isolated stream and grow max dict_size if needed */
133 strm->state = xz_dec_microlzma_alloc(XZ_PREALLOC, dict_size);
138 /* 3. push back all to the global list and update max dict_size */
[all...]
H A Derofs_fs.h312 __le32 dict_size; member in struct:z_erofs_lzma_cfgs
/linux-master/fs/squashfs/
H A Dxz_wrapper.c35 int dict_size; member in struct:comp_opts
58 opts->dict_size = le32_to_cpu(comp_opts->dictionary_size);
61 n = ffs(opts->dict_size) - 1;
62 if (opts->dict_size != (1 << n) && opts->dict_size != (1 << n) +
69 opts->dict_size = max_t(int, msblk->block_size,
93 stream->state = xz_dec_init(XZ_PREALLOC, comp_opts->dict_size);
/linux-master/include/linux/
H A Dxz.h252 * @dict_size LZMA dictionary size. This must be at least 4 KiB and
260 * With XZ_PREALLOC also a dictionary buffer of dict_size bytes is allocated.
264 * dict_size is invalid, NULL is returned.
276 uint32_t dict_size);
/linux-master/lib/
H A Ddecompress_unlzma.c223 uint32_t dict_size; member in struct:lzma_header
303 while (offs > wr->header->dict_size)
304 offs -= wr->header->dict_size;
309 while (pos >= wr->header->dict_size)
310 pos += wr->header->dict_size;
319 if (wr->flush && wr->buffer_pos == wr->header->dict_size) {
321 wr->global_pos += wr->header->dict_size;
322 if (wr->flush((char *)wr->buffer, wr->header->dict_size)
323 != wr->header->dict_size)
525 if (cst->rep0 > wr->header->dict_size
[all...]
/linux-master/lib/xz/
H A Dxz_dec_lzma2.c1294 uint32_t dict_size)
1298 /* Restrict dict_size to the same range as in the LZMA2 code. */
1299 if (dict_size < 4096 || dict_size > (3U << 30))
1307 s->s.dict.size = dict_size;
1310 s->s.dict.end = dict_size;
1312 s->s.dict.buf = vmalloc(dict_size);
1293 xz_dec_microlzma_alloc(enum xz_mode mode, uint32_t dict_size) argument

Completed in 184 milliseconds