Home
last modified time | relevance | path

Searched refs:dict_size (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/fs/squashfs/
Dxz_wrapper.c35 int dict_size; member
58 opts->dict_size = le32_to_cpu(comp_opts->dictionary_size); in squashfs_xz_comp_opts()
61 n = ffs(opts->dict_size) - 1; in squashfs_xz_comp_opts()
62 if (opts->dict_size != (1 << n) && opts->dict_size != (1 << n) + in squashfs_xz_comp_opts()
69 opts->dict_size = max_t(int, msblk->block_size, in squashfs_xz_comp_opts()
93 stream->state = xz_dec_init(XZ_PREALLOC, comp_opts->dict_size); in squashfs_xz_init()
/linux-6.1.9/fs/erofs/
Ddecompressor_lzma.c79 unsigned int dict_size, i; in z_erofs_load_lzma_config() local
92 dict_size = le32_to_cpu(lzma->dict_size); in z_erofs_load_lzma_config()
93 if (dict_size > Z_EROFS_LZMA_MAX_DICT_SIZE || dict_size < 4096) { in z_erofs_load_lzma_config()
95 dict_size); in z_erofs_load_lzma_config()
104 if (z_erofs_lzma_max_dictsize >= dict_size) { in z_erofs_load_lzma_config()
136 strm->state = xz_dec_microlzma_alloc(XZ_PREALLOC, dict_size); in z_erofs_load_lzma_config()
148 z_erofs_lzma_max_dictsize = dict_size; in z_erofs_load_lzma_config()
Derofs_fs.h290 __le32 dict_size; member
/linux-6.1.9/lib/
Ddecompress_unlzma.c223 uint32_t dict_size; member
303 while (offs > wr->header->dict_size) in peek_old_byte()
304 offs -= wr->header->dict_size; in peek_old_byte()
309 while (pos >= wr->header->dict_size) in peek_old_byte()
310 pos += wr->header->dict_size; in peek_old_byte()
319 if (wr->flush && wr->buffer_pos == wr->header->dict_size) { in write_byte()
321 wr->global_pos += wr->header->dict_size; in write_byte()
322 if (wr->flush((char *)wr->buffer, wr->header->dict_size) in write_byte()
323 != wr->header->dict_size) in write_byte()
525 if (cst->rep0 > wr->header->dict_size in process_bit1()
[all …]
/linux-6.1.9/include/linux/
Dxz.h276 uint32_t dict_size);
/linux-6.1.9/lib/xz/
Dxz_dec_lzma2.c1294 uint32_t dict_size) in xz_dec_microlzma_alloc() argument
1299 if (dict_size < 4096 || dict_size > (3U << 30)) in xz_dec_microlzma_alloc()
1307 s->s.dict.size = dict_size; in xz_dec_microlzma_alloc()
1310 s->s.dict.end = dict_size; in xz_dec_microlzma_alloc()
1312 s->s.dict.buf = vmalloc(dict_size); in xz_dec_microlzma_alloc()