Home
last modified time | relevance | path

Searched refs:strm (Results 1 – 25 of 26) sorted by relevance

12

/linux/lib/zlib_dfltcc/
H A Ddfltcc_deflate.c16 z_streamp strm in dfltcc_can_deflate() argument
19 deflate_state *state = (deflate_state *)strm->state; in dfltcc_can_deflate()
42 void dfltcc_reset_deflate_state(z_streamp strm) { in dfltcc_reset_deflate_state() argument
43 deflate_state *state = (deflate_state *)strm->state; in dfltcc_reset_deflate_state()
60 z_streamp strm in dfltcc_gdht() argument
63 deflate_state *state = (deflate_state *)strm->state; in dfltcc_gdht()
65 size_t avail_in = strm->avail_in; in dfltcc_gdht()
69 &strm->next_in, &avail_in, NULL); in dfltcc_gdht()
73 z_streamp strm in dfltcc_cmpr() argument
76 deflate_state *state = (deflate_state *)strm->state; in dfltcc_cmpr()
[all …]
H A Ddfltcc_inflate.c14 z_streamp strm in dfltcc_can_inflate() argument
17 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_can_inflate()
31 void dfltcc_reset_inflate_state(z_streamp strm) { in dfltcc_reset_inflate_state() argument
32 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_reset_inflate_state()
40 z_streamp strm in dfltcc_was_inflate_used() argument
43 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_was_inflate_used()
50 z_streamp strm in dfltcc_inflate_disable() argument
53 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_inflate_disable()
56 if (!dfltcc_can_inflate(strm)) in dfltcc_inflate_disable()
58 if (dfltcc_was_inflate_used(strm)) in dfltcc_inflate_disable()
[all …]
H A Ddfltcc_inflate.h8 void dfltcc_reset_inflate_state(z_streamp strm);
9 int dfltcc_can_inflate(z_streamp strm);
15 dfltcc_inflate_action dfltcc_inflate(z_streamp strm,
17 #define INFLATE_RESET_HOOK(strm) \ argument
18 dfltcc_reset_inflate_state((strm))
20 #define INFLATE_TYPEDO_HOOK(strm, flush) \ argument
21 if (dfltcc_can_inflate((strm))) { \
25 action = dfltcc_inflate((strm), (flush), &ret); \
33 #define INFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_inflate((strm))) argument
35 #define INFLATE_NEED_UPDATEWINDOW(strm) (!dfltcc_can_inflate((strm))) argument
H A Ddfltcc_deflate.h8 int dfltcc_can_deflate(z_streamp strm);
9 int dfltcc_deflate(z_streamp strm,
12 void dfltcc_reset_deflate_state(z_streamp strm);
14 #define DEFLATE_RESET_HOOK(strm) \ argument
15 dfltcc_reset_deflate_state((strm))
19 #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm))) argument
/linux/fs/erofs/
H A Ddecompressor_zstd.c22 struct z_erofs_zstd *strm; in z_erofs_isolate_strms() local
26 strm = z_erofs_zstd_head; in z_erofs_isolate_strms()
27 if (!strm) { in z_erofs_isolate_strms()
32 z_erofs_zstd_head = all ? NULL : strm->next; in z_erofs_isolate_strms()
34 return strm; in z_erofs_isolate_strms()
40 struct z_erofs_zstd *strm, *n; in z_erofs_zstd_exit() local
42 for (strm = z_erofs_isolate_strms(true); strm; strm = n) { in z_erofs_zstd_exit()
43 n = strm->next; in z_erofs_zstd_exit()
45 kvfree(strm->wksp); in z_erofs_zstd_exit()
46 kfree(strm); in z_erofs_zstd_exit()
[all …]
/linux/fs/btrfs/
H A Dzlib.c30 z_stream strm; member
51 kvfree(workspace->strm.workspace); in zlib_free_workspace()
84 workspace->strm.workspace = kvzalloc(workspacesize, GFP_KERNEL | __GFP_NOWARN); in zlib_alloc_workspace()
97 if (!workspace->strm.workspace || !workspace->buf) in zlib_alloc_workspace()
172 ret = zlib_deflateInit(&workspace->strm, workspace->level); in zlib_compress_folios()
181 workspace->strm.total_in = 0; in zlib_compress_folios()
182 workspace->strm.total_out = 0; in zlib_compress_folios()
193 workspace->strm.next_in = workspace->buf; in zlib_compress_folios()
194 workspace->strm.avail_in = 0; in zlib_compress_folios()
195 workspace->strm.next_out = cfolio_out; in zlib_compress_folios()
[all …]
/linux/lib/zlib_inflate/
H A Dinflate.c22 #define INFLATE_RESET_HOOK(strm) do {} while (0) argument
23 #define INFLATE_TYPEDO_HOOK(strm, flush) do {} while (0) argument
24 #define INFLATE_NEED_UPDATEWINDOW(strm) 1 argument
25 #define INFLATE_NEED_CHECKSUM(strm) 1 argument
33 int zlib_inflateReset(z_streamp strm) in zlib_inflateReset() argument
37 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; in zlib_inflateReset()
38 state = (struct inflate_state *)strm->state; in zlib_inflateReset()
39 strm->total_in = strm->total_out = state->total = 0; in zlib_inflateReset()
40 strm->msg = NULL; in zlib_inflateReset()
41 strm->adler = 1; /* to support ill-conceived Java test suite */ in zlib_inflateReset()
[all …]
H A Dinfutil.c13 struct z_stream_s *strm; in zlib_inflate_blob() local
17 strm = kmalloc(sizeof(*strm), GFP_KERNEL); in zlib_inflate_blob()
18 if (strm == NULL) in zlib_inflate_blob()
20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
21 if (strm->workspace == NULL) in zlib_inflate_blob()
27 strm->next_in = zbuf; in zlib_inflate_blob()
28 strm->avail_in = len; in zlib_inflate_blob()
29 strm->next_out = gunzip_buf; in zlib_inflate_blob()
30 strm->avail_out = sz; in zlib_inflate_blob()
32 rc = zlib_inflateInit2(strm, -MAX_WBITS); in zlib_inflate_blob()
[all …]
H A Dinffast.c67 void inflate_fast(z_streamp strm, unsigned start) in inflate_fast() argument
96 state = (struct inflate_state *)strm->state; in inflate_fast()
97 in = strm->next_in; in inflate_fast()
98 last = in + (strm->avail_in - 5); in inflate_fast()
99 out = strm->next_out; in inflate_fast()
100 beg = out - (start - strm->avail_out); in inflate_fast()
101 end = out + (strm->avail_out - 257); in inflate_fast()
172 strm->msg = (char *)"invalid distance too far back"; in inflate_fast()
183 strm->msg = (char *)"invalid distance too far back"; in inflate_fast()
290 strm->msg = (char *)"invalid distance code"; in inflate_fast()
[all …]
H A Dinfutil.h37 #define WS(strm) ((struct inflate_workspace *)(strm->workspace)) argument
H A Dinffast.h11 void inflate_fast (z_streamp strm, unsigned start);
/linux/lib/
H A Ddecompress_inflate.c49 struct z_stream_s *strm; in __gunzip() local
76 strm = malloc(sizeof(*strm)); in __gunzip()
77 if (strm == NULL) { in __gunzip()
82 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in __gunzip()
89 if (strm->workspace == NULL) { in __gunzip()
112 strm->next_in = zbuf + 10; in __gunzip()
113 strm->avail_in = len - 10; in __gunzip()
122 if (strm->avail_in == 0) { in __gunzip()
126 --strm->avail_in; in __gunzip()
127 } while (*strm->next_in++); in __gunzip()
[all …]
/linux/drivers/net/ppp/
H A Dppp_deflate.c30 z_stream strm; member
65 zlib_deflateEnd(&state->strm); in z_comp_free()
66 vfree(state->strm.workspace); in z_comp_free()
105 state->strm.next_in = NULL; in z_comp_alloc()
107 state->strm.workspace = vmalloc(zlib_deflate_workspacesize(-w_size, 8)); in z_comp_alloc()
108 if (state->strm.workspace == NULL) in z_comp_alloc()
111 if (zlib_deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, in z_comp_alloc()
154 zlib_deflateReset(&state->strm); in z_comp_init()
171 zlib_deflateReset(&state->strm); in z_comp_reset()
216 state->strm.next_out = wptr; in z_compress()
[all …]
/linux/sound/soc/renesas/
H A Drz-ssi.c99 int (*transfer)(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm);
194 static void rz_ssi_set_substream(struct rz_ssi_stream *strm, in rz_ssi_set_substream() argument
197 struct rz_ssi_priv *ssi = strm->priv; in rz_ssi_set_substream()
201 strm->substream = substream; in rz_ssi_set_substream()
205 struct rz_ssi_stream *strm) in rz_ssi_stream_is_valid() argument
209 return strm->substream && strm->substream->runtime; in rz_ssi_stream_is_valid()
212 static inline bool rz_ssi_is_stream_running(struct rz_ssi_stream *strm) in rz_ssi_is_stream_running() argument
214 return strm->substream && strm->running; in rz_ssi_is_stream_running()
217 static void rz_ssi_stream_init(struct rz_ssi_stream *strm, in rz_ssi_stream_init() argument
220 rz_ssi_set_substream(strm, substream); in rz_ssi_stream_init()
[all …]
/linux/tools/perf/util/
H A Dlzma.c38 lzma_stream strm = LZMA_STREAM_INIT; in lzma_decompress_stream_to_file() local
45 ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); in lzma_decompress_stream_to_file()
51 strm.next_in = NULL; in lzma_decompress_stream_to_file()
52 strm.avail_in = 0; in lzma_decompress_stream_to_file()
53 strm.next_out = buf_out; in lzma_decompress_stream_to_file()
54 strm.avail_out = sizeof(buf_out); in lzma_decompress_stream_to_file()
57 if (strm.avail_in == 0 && !feof(infile)) { in lzma_decompress_stream_to_file()
58 strm.next_in = buf_in; in lzma_decompress_stream_to_file()
59 strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile); in lzma_decompress_stream_to_file()
70 ret = lzma_code(&strm, action); in lzma_decompress_stream_to_file()
[all …]
/linux/arch/arm/kernel/
H A Dhead-inflate-data.c34 struct z_stream_s stream, *strm = &stream; in __inflate_kernel_data() local
44 strm->workspace = &state; in __inflate_kernel_data()
45 strm->next_in = in; in __inflate_kernel_data()
46 strm->avail_in = _edata_loc - __data_loc; /* upper bound */ in __inflate_kernel_data()
47 strm->next_out = _sdata; in __inflate_kernel_data()
48 strm->avail_out = _edata_loc - __data_loc; in __inflate_kernel_data()
49 zlib_inflateInit2(strm, -MAX_WBITS); in __inflate_kernel_data()
50 WS(strm)->inflate_state.wsize = 0; in __inflate_kernel_data()
51 WS(strm)->inflate_state.window = NULL; in __inflate_kernel_data()
52 rc = zlib_inflate(strm, Z_FINISH); in __inflate_kernel_data()
[all …]
/linux/include/linux/
H A Dzlib.h223 extern int zlib_deflate (z_streamp strm, int flush);
301 extern int zlib_deflateEnd (z_streamp strm);
343 extern int zlib_inflate (z_streamp strm, int flush);
442 extern int zlib_inflateEnd (z_streamp strm);
503 extern int zlib_deflateReset (z_streamp strm);
561 extern int zlib_inflateReset (z_streamp strm);
571 extern int zlib_inflateIncomp (z_stream *strm);
580 #define zlib_deflateInit(strm, level) \ argument
581 zlib_deflateInit2((strm), (level), Z_DEFLATED, MAX_WBITS, \
583 #define zlib_inflateInit(strm) \ argument
[all …]
/linux/lib/zlib_deflate/
H A Ddefutil.h74 z_streamp strm; /* pointer back to this zlib stream */ member
420 z_streamp strm in flush_pending() argument
424 deflate_state *s = (deflate_state *) strm->state; in flush_pending()
428 if (len > strm->avail_out) len = strm->avail_out; in flush_pending()
431 if (strm->next_out != NULL) { in flush_pending()
432 memcpy(strm->next_out, s->pending_out, len); in flush_pending()
433 strm->next_out += len; in flush_pending()
436 strm->total_out += len; in flush_pending()
437 strm->avail_out -= len; in flush_pending()
/linux/fs/
H A Dbinfmt_flat.c186 z_stream strm; in decompress_exec() local
191 memset(&strm, 0, sizeof(strm)); in decompress_exec()
192 strm.workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in decompress_exec()
193 if (!strm.workspace) in decompress_exec()
205 strm.next_in = buf; in decompress_exec()
206 strm.avail_in = ret; in decompress_exec()
207 strm.total_in = 0; in decompress_exec()
260 strm.next_in += ret; in decompress_exec()
261 strm.avail_in -= ret; in decompress_exec()
263 strm.next_out = dst; in decompress_exec()
[all …]
/linux/fs/squashfs/
H A Dlzo_wrapper.c53 static void lzo_free(void *strm) in lzo_free() argument
55 struct squashfs_lzo *stream = strm; in lzo_free()
65 static int lzo_uncompress(struct squashfs_sb_info *msblk, void *strm, in lzo_uncompress() argument
71 struct squashfs_lzo *stream = strm; in lzo_uncompress()
H A Dzlib_wrapper.c42 static void zlib_free(void *strm) in zlib_free() argument
44 z_stream *stream = strm; in zlib_free()
52 static int zlib_uncompress(struct squashfs_sb_info *msblk, void *strm, in zlib_uncompress() argument
59 z_stream *stream = strm; in zlib_uncompress()
H A Dlz4_wrapper.c79 static void lz4_free(void *strm) in lz4_free() argument
81 struct squashfs_lz4 *stream = strm; in lz4_free()
91 static int lz4_uncompress(struct squashfs_sb_info *msblk, void *strm, in lz4_uncompress() argument
97 struct squashfs_lz4 *stream = strm; in lz4_uncompress()
H A Dzstd_wrapper.c51 static void zstd_free(void *strm) in zstd_free() argument
53 struct workspace *wksp = strm; in zstd_free()
61 static int zstd_uncompress(struct squashfs_sb_info *msblk, void *strm, in zstd_uncompress() argument
65 struct workspace *wksp = strm; in zstd_uncompress()
H A Dxz_wrapper.c108 static void squashfs_xz_free(void *strm) in squashfs_xz_free() argument
110 struct squashfs_xz *stream = strm; in squashfs_xz_free()
119 static int squashfs_xz_uncompress(struct squashfs_sb_info *msblk, void *strm, in squashfs_xz_uncompress() argument
126 struct squashfs_xz *stream = strm; in squashfs_xz_uncompress()
/linux/tools/build/feature/
H A Dtest-lzma.c6 lzma_stream strm = LZMA_STREAM_INIT; in main() local
9 ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); in main()

12