Home
last modified time | relevance | path

Searched refs:strm (Results 1 - 25 of 55) sorted by relevance

123

/kernel/linux/linux-6.6/fs/erofs/
H A Ddecompressor_lzma.c26 struct z_erofs_lzma *strm; in z_erofs_lzma_exit() local
29 strm = z_erofs_lzma_head; in z_erofs_lzma_exit()
30 if (!strm) { in z_erofs_lzma_exit()
38 while (strm) { in z_erofs_lzma_exit()
39 struct z_erofs_lzma *n = strm->next; in z_erofs_lzma_exit()
41 if (strm->state) in z_erofs_lzma_exit()
42 xz_dec_microlzma_end(strm->state); in z_erofs_lzma_exit()
43 kfree(strm); in z_erofs_lzma_exit()
45 strm = n; in z_erofs_lzma_exit()
59 struct z_erofs_lzma *strm in z_erofs_lzma_init() local
80 struct z_erofs_lzma *strm, *head = NULL; z_erofs_load_lzma_config() local
161 struct z_erofs_lzma *strm; z_erofs_lzma_decompress() local
[all...]
H A Ddecompressor_deflate.c23 struct z_erofs_deflate *strm; in z_erofs_deflate_exit() local
26 strm = z_erofs_deflate_head; in z_erofs_deflate_exit()
27 if (!strm) { in z_erofs_deflate_exit()
34 while (strm) { in z_erofs_deflate_exit()
35 struct z_erofs_deflate *n = strm->next; in z_erofs_deflate_exit()
37 vfree(strm->z.workspace); in z_erofs_deflate_exit()
38 kfree(strm); in z_erofs_deflate_exit()
40 strm = n; in z_erofs_deflate_exit()
53 struct z_erofs_deflate *strm; in z_erofs_deflate_init() local
55 strm in z_erofs_deflate_init()
107 struct z_erofs_deflate *strm; z_erofs_deflate_decompress() local
[all...]
/kernel/linux/linux-5.10/lib/zlib_dfltcc/
H A Ddfltcc_deflate.c14 z_streamp strm in dfltcc_can_deflate()
17 deflate_state *state = (deflate_state *)strm->state; in dfltcc_can_deflate()
41 z_streamp strm in dfltcc_gdht()
44 deflate_state *state = (deflate_state *)strm->state; in dfltcc_gdht()
46 size_t avail_in = avail_in = strm->avail_in; in dfltcc_gdht()
50 &strm->next_in, &avail_in, NULL); in dfltcc_gdht()
54 z_streamp strm in dfltcc_cmpr()
57 deflate_state *state = (deflate_state *)strm->state; in dfltcc_cmpr()
59 size_t avail_in = strm->avail_in; in dfltcc_cmpr()
60 size_t avail_out = strm in dfltcc_cmpr()
73 send_eobs( z_streamp strm, const struct dfltcc_param_v0 *param ) send_eobs() argument
100 dfltcc_deflate( z_streamp strm, int flush, block_state *result ) dfltcc_deflate() argument
[all...]
H A Ddfltcc_inflate.c14 z_streamp strm in dfltcc_can_inflate()
17 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_can_inflate()
36 z_streamp strm in dfltcc_was_inflate_used()
39 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_was_inflate_used()
46 z_streamp strm in dfltcc_inflate_disable()
49 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_inflate_disable()
52 if (!dfltcc_can_inflate(strm)) in dfltcc_inflate_disable()
54 if (dfltcc_was_inflate_used(strm)) in dfltcc_inflate_disable()
66 z_streamp strm in dfltcc_xpnd()
69 struct inflate_state *state = (struct inflate_state *)strm in dfltcc_xpnd()
83 dfltcc_inflate( z_streamp strm, int flush, int *ret ) dfltcc_inflate() argument
[all...]
H A Ddfltcc.h100 char msg[64]; /* Buffer for strm->msg */
107 int dfltcc_can_deflate(z_streamp strm);
108 int dfltcc_deflate(z_streamp strm,
111 void dfltcc_reset(z_streamp strm, uInt size);
112 int dfltcc_can_inflate(z_streamp strm);
118 dfltcc_inflate_action dfltcc_inflate(z_streamp strm,
126 #define DEFLATE_RESET_HOOK(strm) \
127 dfltcc_reset((strm), sizeof(deflate_state))
131 #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm)))
[all...]
/kernel/linux/linux-6.6/lib/zlib_dfltcc/
H A Ddfltcc_deflate.c16 z_streamp strm in dfltcc_can_deflate()
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()
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()
76 deflate_state *state = (deflate_state *)strm in dfltcc_cmpr()
92 send_eobs( z_streamp strm, const struct dfltcc_param_v0 *param ) send_eobs() argument
119 dfltcc_deflate( z_streamp strm, int flush, block_state *result ) dfltcc_deflate() argument
[all...]
H A Ddfltcc_inflate.c14 z_streamp strm in dfltcc_can_inflate()
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()
43 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_was_inflate_used()
50 z_streamp strm in dfltcc_inflate_disable()
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()
87 dfltcc_inflate( z_streamp strm, int flush, int *ret ) dfltcc_inflate() argument
[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) \
18 dfltcc_reset_inflate_state((strm))
20 #define INFLATE_TYPEDO_HOOK(strm, flush) \
21 if (dfltcc_can_inflate((strm))) { \
25 action = dfltcc_inflate((strm), (flush), &ret); \
33 #define INFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_inflate((strm)))
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dzlib.c27 z_stream strm; member
50 kvfree(workspace->strm.workspace); in zlib_free_workspace()
66 workspace->strm.workspace = kvzalloc(workspacesize, GFP_KERNEL); in zlib_alloc_workspace()
83 if (!workspace->strm.workspace || !workspace->buf) in zlib_alloc_workspace()
115 if (Z_OK != zlib_deflateInit(&workspace->strm, workspace->level)) { in zlib_compress_pages()
121 workspace->strm.total_in = 0; in zlib_compress_pages()
122 workspace->strm.total_out = 0; in zlib_compress_pages()
133 workspace->strm.next_in = workspace->buf; in zlib_compress_pages()
134 workspace->strm.avail_in = 0; in zlib_compress_pages()
135 workspace->strm in zlib_compress_pages()
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Dzlib.c27 z_stream strm; member
50 kvfree(workspace->strm.workspace); in zlib_free_workspace()
66 workspace->strm.workspace = kvzalloc(workspacesize, GFP_KERNEL | __GFP_NOWARN); in zlib_alloc_workspace()
83 if (!workspace->strm.workspace || !workspace->buf) in zlib_alloc_workspace()
115 if (Z_OK != zlib_deflateInit(&workspace->strm, workspace->level)) { in zlib_compress_pages()
121 workspace->strm.total_in = 0; in zlib_compress_pages()
122 workspace->strm.total_out = 0; in zlib_compress_pages()
133 workspace->strm.next_in = workspace->buf; in zlib_compress_pages()
134 workspace->strm.avail_in = 0; in zlib_compress_pages()
135 workspace->strm in zlib_compress_pages()
[all...]
/kernel/linux/linux-5.10/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 in __gunzip()
[all...]
/kernel/linux/linux-6.6/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 in __gunzip()
[all...]
/kernel/linux/linux-5.10/lib/zlib_inflate/
H A Dinflate.c22 #define INFLATE_RESET_HOOK(strm) do {} while (0)
23 #define INFLATE_TYPEDO_HOOK(strm, flush) do {} while (0)
24 #define INFLATE_NEED_UPDATEWINDOW(strm) 1
25 #define INFLATE_NEED_CHECKSUM(strm) 1
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 in zlib_inflateReset()
59 zlib_inflateInit2(z_streamp strm, int windowBits) zlib_inflateInit2() argument
120 zlib_updatewindow(z_streamp strm, unsigned out) zlib_updatewindow() argument
165 zlib_inflateSyncPacket(z_streamp strm) zlib_inflateSyncPacket() argument
331 zlib_inflate(z_streamp strm, int flush) zlib_inflate() argument
770 zlib_inflateEnd(z_streamp strm) zlib_inflateEnd() argument
[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 in zlib_inflate_blob()
[all...]
/kernel/linux/linux-6.6/lib/zlib_inflate/
H A Dinflate.c22 #define INFLATE_RESET_HOOK(strm) do {} while (0)
23 #define INFLATE_TYPEDO_HOOK(strm, flush) do {} while (0)
24 #define INFLATE_NEED_UPDATEWINDOW(strm) 1
25 #define INFLATE_NEED_CHECKSUM(strm) 1
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 in zlib_inflateReset()
59 zlib_inflateInit2(z_streamp strm, int windowBits) zlib_inflateInit2() argument
120 zlib_updatewindow(z_streamp strm, unsigned out) zlib_updatewindow() argument
165 zlib_inflateSyncPacket(z_streamp strm) zlib_inflateSyncPacket() argument
331 zlib_inflate(z_streamp strm, int flush) zlib_inflate() argument
770 zlib_inflateEnd(z_streamp strm) zlib_inflateEnd() argument
[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 in zlib_inflate_blob()
[all...]
/kernel/linux/linux-6.6/sound/soc/sh/
H A Drz-ssi.c97 int (*transfer)(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm);
188 static void rz_ssi_set_substream(struct rz_ssi_stream *strm, in rz_ssi_set_substream() argument
191 struct rz_ssi_priv *ssi = strm->priv; in rz_ssi_set_substream()
195 strm->substream = substream; in rz_ssi_set_substream()
200 struct rz_ssi_stream *strm) in rz_ssi_stream_is_valid()
206 ret = strm->substream && strm->substream->runtime; in rz_ssi_stream_is_valid()
212 static void rz_ssi_stream_init(struct rz_ssi_stream *strm, in rz_ssi_stream_init() argument
217 rz_ssi_set_substream(strm, substream); in rz_ssi_stream_init()
218 strm in rz_ssi_stream_init()
199 rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) rz_ssi_stream_is_valid() argument
231 rz_ssi_stream_quit(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) rz_ssi_stream_quit() argument
307 rz_ssi_start(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) rz_ssi_start() argument
347 rz_ssi_stop(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) rz_ssi_stop() argument
388 rz_ssi_pointer_update(struct rz_ssi_stream *strm, int frames) rz_ssi_pointer_update() argument
412 rz_ssi_pio_recv(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) rz_ssi_pio_recv() argument
465 rz_ssi_pio_send(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) rz_ssi_pio_send() argument
516 struct rz_ssi_stream *strm = NULL; rz_ssi_interrupt() local
599 rz_ssi_dma_transfer(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) rz_ssi_dma_transfer() argument
659 struct rz_ssi_stream *strm = (struct rz_ssi_stream *)data; rz_ssi_dma_complete() local
729 struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream); rz_ssi_dai_trigger() local
887 struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream); rz_ssi_pcm_pointer() local
[all...]
/kernel/linux/linux-5.10/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 in z_compress()
[all...]
/kernel/linux/linux-6.6/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 in z_compress()
[all...]
/kernel/linux/linux-5.10/lib/zlib_deflate/
H A Ddeflate.c59 #define DEFLATE_RESET_HOOK(strm) do {} while (0)
60 #define DEFLATE_HOOK(strm, flush, bstate) 0
61 #define DEFLATE_NEED_CHECKSUM(strm) 1
78 static int read_buf (z_streamp strm, Byte *buf, unsigned size);
189 z_streamp strm, in zlib_deflateInit2()
207 if (strm == NULL) return Z_STREAM_ERROR; in zlib_deflateInit2()
209 strm->msg = NULL; in zlib_deflateInit2()
213 mem = (deflate_workspace *) strm->workspace; in zlib_deflateInit2()
248 strm->state = (struct internal_state *)s; in zlib_deflateInit2()
249 s->strm in zlib_deflateInit2()
188 zlib_deflateInit2( z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy ) zlib_deflateInit2() argument
329 zlib_deflate( z_streamp strm, int flush ) zlib_deflate() argument
496 read_buf( z_streamp strm, Byte *buf, unsigned size ) read_buf() argument
[all...]
/kernel/linux/linux-6.6/lib/zlib_deflate/
H A Ddeflate.c59 #define DEFLATE_RESET_HOOK(strm) do {} while (0)
60 #define DEFLATE_HOOK(strm, flush, bstate) 0
61 #define DEFLATE_NEED_CHECKSUM(strm) 1
78 static int read_buf (z_streamp strm, Byte *buf, unsigned size);
189 z_streamp strm, in zlib_deflateInit2()
207 if (strm == NULL) return Z_STREAM_ERROR; in zlib_deflateInit2()
209 strm->msg = NULL; in zlib_deflateInit2()
213 mem = (deflate_workspace *) strm->workspace; in zlib_deflateInit2()
248 strm->state = (struct internal_state *)s; in zlib_deflateInit2()
249 s->strm in zlib_deflateInit2()
188 zlib_deflateInit2( z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy ) zlib_deflateInit2() argument
329 zlib_deflate( z_streamp strm, int flush ) zlib_deflate() argument
503 read_buf( z_streamp strm, Byte *buf, unsigned size ) read_buf() argument
[all...]
/kernel/linux/linux-5.10/arch/arm/kernel/
H A Dhead-inflate-data.c37 struct z_stream_s stream, *strm = &stream; in __inflate_kernel_data() local
47 strm->workspace = &state; in __inflate_kernel_data()
48 strm->next_in = in; in __inflate_kernel_data()
49 strm->avail_in = _edata_loc - __data_loc; /* upper bound */ in __inflate_kernel_data()
50 strm->next_out = _sdata; in __inflate_kernel_data()
51 strm->avail_out = _edata_loc - __data_loc; in __inflate_kernel_data()
52 zlib_inflateInit2(strm, -MAX_WBITS); in __inflate_kernel_data()
53 WS(strm)->inflate_state.wsize = 0; in __inflate_kernel_data()
54 WS(strm)->inflate_state.window = NULL; in __inflate_kernel_data()
55 rc = zlib_inflate(strm, Z_FINIS in __inflate_kernel_data()
[all...]
/kernel/linux/linux-6.6/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_FINIS in __inflate_kernel_data()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dzlib.h201 extern int deflateInit (z_streamp strm, int level);
223 extern int zlib_deflate (z_streamp strm, int flush);
284 deflate() sets strm->adler to the adler32 checksum of all input read
301 extern int zlib_deflateEnd (z_streamp strm);
323 extern int zlib_inflateInit (z_streamp strm);
343 extern int zlib_inflate (z_streamp strm, int flush);
382 Also to assist in this, on return inflate() will set strm->data_type to the
383 number of unused bits in the last byte taken from strm->next_in, plus 64
388 uncompressed data from that block has been written to strm->next_out. The
411 below), inflate sets strm
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dzlib.h201 extern int deflateInit (z_streamp strm, int level);
223 extern int zlib_deflate (z_streamp strm, int flush);
284 deflate() sets strm->adler to the adler32 checksum of all input read
301 extern int zlib_deflateEnd (z_streamp strm);
323 extern int zlib_inflateInit (z_streamp strm);
343 extern int zlib_inflate (z_streamp strm, int flush);
382 Also to assist in this, on return inflate() will set strm->data_type to the
383 number of unused bits in the last byte taken from strm->next_in, plus 64
388 uncompressed data from that block has been written to strm->next_out. The
411 below), inflate sets strm
[all...]

Completed in 11 milliseconds

123