Home
last modified time | relevance | path

Searched refs:comp_opts (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/fs/squashfs/
H A Ddecompressor.c90 void *buffer = NULL, *comp_opts; in get_comp_opts() local
100 comp_opts = ERR_PTR(-ENOMEM); in get_comp_opts()
106 comp_opts = ERR_PTR(-ENOMEM); in get_comp_opts()
114 comp_opts = ERR_PTR(length); in get_comp_opts()
119 comp_opts = squashfs_comp_opts(msblk, buffer, length); in get_comp_opts()
124 return comp_opts; in get_comp_opts()
131 void *stream, *comp_opts = get_comp_opts(sb, flags); in squashfs_decompressor_setup() local
133 if (IS_ERR(comp_opts)) in squashfs_decompressor_setup()
134 return comp_opts; in squashfs_decompressor_setup()
136 stream = msblk->thread_ops->create(msblk, comp_opts); in squashfs_decompressor_setup()
[all …]
H A Dxz_wrapper.c34 struct comp_opts { struct
41 struct disk_comp_opts *comp_opts = buff; in squashfs_xz_comp_opts() local
42 struct comp_opts *opts; in squashfs_xz_comp_opts()
51 if (comp_opts) { in squashfs_xz_comp_opts()
53 if (len < sizeof(*comp_opts)) { in squashfs_xz_comp_opts()
58 opts->dict_size = le32_to_cpu(comp_opts->dictionary_size); in squashfs_xz_comp_opts()
83 struct comp_opts *comp_opts = buff; in squashfs_xz_init() local
93 stream->state = xz_dec_init(XZ_PREALLOC, comp_opts->dict_size); in squashfs_xz_init()
189 .comp_opts = squashfs_xz_comp_opts,
H A Ddecompressor_multi.c38 void *comp_opts; member
62 void *comp_opts) in squashfs_decompressor_create() argument
72 stream->comp_opts = comp_opts; in squashfs_decompressor_create()
88 stream->comp_opts); in squashfs_decompressor_create()
120 kfree(stream->comp_opts); in squashfs_decompressor_destroy()
156 stream->comp_opts); in get_decomp_stream()
H A Dlz4_wrapper.c35 struct lz4_comp_opts *comp_opts = buff; in lz4_comp_opts() local
38 if (comp_opts == NULL || len < sizeof(*comp_opts)) in lz4_comp_opts()
41 if (le32_to_cpu(comp_opts->version) != LZ4_LEGACY) { in lz4_comp_opts()
139 .comp_opts = lz4_comp_opts,
H A Ddecompressor.h17 void *(*comp_opts)(struct squashfs_sb_info *, void *, int); member
30 return msblk->decompressor->comp_opts ? in squashfs_comp_opts()
31 msblk->decompressor->comp_opts(msblk, buff, length) : NULL; in squashfs_comp_opts()
H A Ddecompressor_single.c28 void *comp_opts) in squashfs_decompressor_create() argument
37 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
43 kfree(comp_opts); in squashfs_decompressor_create()
H A Ddecompressor_multi_percpu.c28 void *comp_opts) in squashfs_decompressor_create() argument
40 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
48 kfree(comp_opts); in squashfs_decompressor_create()
H A Dsquashfs.h43 void * (*create)(struct squashfs_sb_info *msblk, void *comp_opts);