Searched refs:dict_size (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/fs/squashfs/ |
H A D | xz_wrapper.c | 35 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()
|
/kernel/linux/linux-6.6/fs/squashfs/ |
H A D | xz_wrapper.c | 35 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()
|
/kernel/linux/linux-6.6/fs/erofs/ |
H A D | decompressor_lzma.c | 79 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() 132 /* 2. walk each isolated stream and grow max dict_size if needed */ in z_erofs_load_lzma_config() 136 strm->state = xz_dec_microlzma_alloc(XZ_PREALLOC, dict_size); in z_erofs_load_lzma_config() 141 /* 3. push back all to the global list and update max dict_size */ in z_erofs_load_lzma_config() [all...] |
H A D | erofs_fs.h | 312 __le32 dict_size; member
|
/kernel/linux/linux-5.10/lib/ |
H A D | decompress_unlzma.c | 223 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...] |
/kernel/linux/linux-6.6/lib/ |
H A D | decompress_unlzma.c | 223 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...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | xz.h | 252 * @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);
|
/kernel/linux/linux-6.6/lib/xz/ |
H A D | xz_dec_lzma2.c | 1294 uint32_t dict_size) in xz_dec_microlzma_alloc() 1298 /* Restrict dict_size to the same range as in the LZMA2 code. */ in xz_dec_microlzma_alloc() 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() 1293 xz_dec_microlzma_alloc(enum xz_mode mode, uint32_t dict_size) xz_dec_microlzma_alloc() argument
|
Completed in 7 milliseconds