/linux/fs/erofs/ |
A D | decompressor_lzma.c | 30 if (!strm) { in z_erofs_lzma_exit() 43 kfree(strm); in z_erofs_lzma_exit() 45 strm = n; in z_erofs_lzma_exit() 61 if (!strm) { in z_erofs_lzma_init() 133 for (strm = head; strm; strm = strm->next) { in z_erofs_load_lzma_config() 207 if (strm->buf.out_pos == strm->buf.out_size) { in z_erofs_lzma_decompress() 225 } else if (strm->buf.in_pos == strm->buf.in_size) { in z_erofs_lzma_decompress() 248 memcpy(strm->bounce, strm->buf.in, strm->buf.in_size); in z_erofs_lzma_decompress() 249 strm->buf.in = strm->bounce; in z_erofs_lzma_decompress() 267 DBG_BUGON(strm->buf.out_pos > strm->buf.out_size); in z_erofs_lzma_decompress() [all …]
|
/linux/lib/zlib_dfltcc/ |
A D | dfltcc_deflate.c | 14 z_streamp strm in dfltcc_can_deflate() argument 41 z_streamp strm in dfltcc_gdht() argument 54 z_streamp strm in dfltcc_cmpr() argument 66 strm->total_in += (strm->avail_in - avail_in); in dfltcc_cmpr() 67 strm->total_out += (strm->avail_out - avail_out); in dfltcc_cmpr() 68 strm->avail_in = avail_in; in dfltcc_cmpr() 74 z_streamp strm, in send_eobs() argument 84 flush_pending(strm); in send_eobs() 101 z_streamp strm, in dfltcc_deflate() argument 209 param->cv = strm->adler; in dfltcc_deflate() [all …]
|
A D | dfltcc_inflate.c | 14 z_streamp strm in dfltcc_can_inflate() argument 36 z_streamp strm in dfltcc_was_inflate_used() argument 46 z_streamp strm in dfltcc_inflate_disable() argument 52 if (!dfltcc_can_inflate(strm)) in dfltcc_inflate_disable() 66 z_streamp strm in dfltcc_xpnd() argument 78 strm->avail_in = avail_in; in dfltcc_xpnd() 79 strm->avail_out = avail_out; in dfltcc_xpnd() 84 z_streamp strm, in dfltcc_inflate() argument 105 strm->next_in++; in dfltcc_inflate() 106 strm->avail_in--; in dfltcc_inflate() [all …]
|
A D | dfltcc.h | 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); 126 #define DEFLATE_RESET_HOOK(strm) \ argument 131 #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm))) argument 135 #define INFLATE_RESET_HOOK(strm) \ argument 138 #define INFLATE_TYPEDO_HOOK(strm, flush) \ argument 139 if (dfltcc_can_inflate((strm))) { \ 151 #define INFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_inflate((strm))) argument [all …]
|
/linux/fs/btrfs/ |
A D | zlib.c | 27 z_stream strm; member 50 kvfree(workspace->strm.workspace); in zlib_free_workspace() 121 workspace->strm.total_in = 0; in zlib_compress_pages() 122 workspace->strm.total_out = 0; in zlib_compress_pages() 134 workspace->strm.avail_in = 0; in zlib_compress_pages() 222 workspace->strm.avail_in = 0; in zlib_compress_pages() 257 if (workspace->strm.total_out >= workspace->strm.total_in) { in zlib_compress_pages() 293 workspace->strm.total_in = 0; in zlib_decompress_bio() 295 workspace->strm.total_out = 0; in zlib_decompress_bio() 306 workspace->strm.next_in += 2; in zlib_decompress_bio() [all …]
|
/linux/lib/zlib_inflate/ |
A D | inflate.c | 37 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; in zlib_inflateReset() 39 strm->total_in = strm->total_out = state->total = 0; in zlib_inflateReset() 40 strm->msg = NULL; in zlib_inflateReset() 55 INFLATE_RESET_HOOK(strm); in zlib_inflateReset() 169 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; in zlib_inflateSyncPacket() 352 if (strm == NULL || strm->state == NULL || in zlib_inflate() 353 (strm->next_in == NULL && strm->avail_in != 0)) in zlib_inflate() 748 in -= strm->avail_in; in zlib_inflate() 750 strm->total_in += in; in zlib_inflate() 761 strm->avail_out != 0 && strm->avail_in == 0) in zlib_inflate() [all …]
|
A D | infutil.c | 13 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() 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() 40 zlib_inflateEnd(strm); in zlib_inflate_blob() 44 kfree(strm->workspace); in zlib_inflate_blob() [all …]
|
A D | inffast.c | 67 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() 290 strm->msg = (char *)"invalid distance code"; in inflate_fast() 317 strm->next_in = in; in inflate_fast() 318 strm->next_out = out; in inflate_fast() [all …]
|
A D | infutil.h | 37 #define WS(strm) ((struct inflate_workspace *)(strm->workspace)) argument
|
/linux/lib/ |
A D | decompress_inflate.c | 49 struct z_stream_s *strm; in __gunzip() local 76 strm = malloc(sizeof(*strm)); in __gunzip() 77 if (strm == NULL) { in __gunzip() 112 strm->next_in = zbuf + 10; in __gunzip() 126 --strm->avail_in; in __gunzip() 130 strm->next_out = out_buf; in __gunzip() 153 strm->next_in = zbuf; in __gunzip() 154 strm->avail_in = len; in __gunzip() 180 zlib_inflateEnd(strm); in __gunzip() 186 free(strm->workspace); in __gunzip() [all …]
|
/linux/sound/soc/sh/ |
A D | rz-ssi.c | 198 ret = !!(strm->substream && strm->substream->runtime); in rz_ssi_stream_is_valid() 216 strm->oerr_num = 0; in rz_ssi_stream_init() 217 strm->uerr_num = 0; in rz_ssi_stream_init() 218 strm->running = 0; in rz_ssi_stream_init() 338 strm->running = 1; in rz_ssi_start() 349 strm->running = 0; in rz_ssi_stop() 550 strm->transfer(ssi, strm); in rz_ssi_interrupt() 651 if (!strm->running || !strm->substream || !strm->substream->runtime) in rz_ssi_dma_complete() 655 rz_ssi_pointer_update(strm, strm->substream->runtime->period_size); in rz_ssi_dma_complete() 658 rz_ssi_dma_transfer(strm->priv, strm); in rz_ssi_dma_complete() [all …]
|
/linux/drivers/net/ppp/ |
A D | ppp_deflate.c | 30 z_stream strm; member 66 vfree(state->strm.workspace); in z_comp_free() 105 state->strm.next_in = NULL; in z_comp_alloc() 216 state->strm.next_out = wptr; in z_compress() 222 state->strm.next_in = rptr; in z_compress() 451 state->strm.avail_out = 1; in z_decompress() 463 state->unit, r, (state->strm.msg? state->strm.msg: "")); in z_decompress() 473 --state->strm.next_out; in z_decompress() 537 --state->strm.next_in; in z_incomp() 538 ++state->strm.avail_in; in z_incomp() [all …]
|
/linux/lib/zlib_deflate/ |
A D | deflate.c | 189 z_streamp strm, in zlib_deflateInit2() argument 249 s->strm = strm; in zlib_deflateInit2() 283 z_streamp strm in zlib_deflateReset() argument 288 if (strm == NULL || strm->state == NULL) in zlib_deflateReset() 291 strm->total_in = strm->total_out = 0; in zlib_deflateReset() 330 z_streamp strm, in zlib_deflate() argument 337 if (strm == NULL || strm->state == NULL || in zlib_deflate() 343 if ((strm->next_in == NULL && strm->avail_in != 0) || in zlib_deflate() 349 s->strm = strm; /* just in case */ in zlib_deflate() 469 z_streamp strm in zlib_deflateEnd() argument [all …]
|
A D | defutil.h | 74 z_streamp strm; /* pointer back to this zlib stream */ member 420 z_streamp strm in flush_pending() argument 423 deflate_state *s = (deflate_state *) strm->state; in flush_pending() 426 if (len > strm->avail_out) len = strm->avail_out; in flush_pending() 429 if (strm->next_out != NULL) { in flush_pending() 430 memcpy(strm->next_out, s->pending_out, len); in flush_pending() 431 strm->next_out += len; in flush_pending() 434 strm->total_out += len; in flush_pending() 435 strm->avail_out -= len; in flush_pending()
|
/linux/tools/perf/util/ |
A D | lzma.c | 38 lzma_stream strm = LZMA_STREAM_INIT; in lzma_decompress_to_file() local 60 strm.next_in = NULL; in lzma_decompress_to_file() 61 strm.avail_in = 0; in lzma_decompress_to_file() 62 strm.next_out = buf_out; in lzma_decompress_to_file() 63 strm.avail_out = sizeof(buf_out); in lzma_decompress_to_file() 66 if (strm.avail_in == 0 && !feof(infile)) { in lzma_decompress_to_file() 67 strm.next_in = buf_in; in lzma_decompress_to_file() 79 ret = lzma_code(&strm, action); in lzma_decompress_to_file() 89 strm.next_out = buf_out; in lzma_decompress_to_file() 90 strm.avail_out = sizeof(buf_out); in lzma_decompress_to_file() [all …]
|
/linux/include/linux/ |
A D | zlib.h | 223 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/arch/arm/kernel/ |
A D | head-inflate-data.c | 37 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_FINISH); in __inflate_kernel_data() [all …]
|
/linux/fs/ |
A D | binfmt_flat.c | 207 z_stream strm; in decompress_exec() local 212 memset(&strm, 0, sizeof(strm)); in decompress_exec() 214 if (!strm.workspace) in decompress_exec() 226 strm.next_in = buf; in decompress_exec() 227 strm.avail_in = ret; in decompress_exec() 228 strm.total_in = 0; in decompress_exec() 281 strm.next_in += ret; in decompress_exec() 284 strm.next_out = dst; in decompress_exec() 286 strm.total_out = 0; in decompress_exec() 301 strm.total_in = 0; in decompress_exec() [all …]
|
/linux/fs/squashfs/ |
A D | zlib_wrapper.c | 42 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()
|
A D | lzo_wrapper.c | 53 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()
|
A D | lz4_wrapper.c | 79 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()
|
A D | zstd_wrapper.c | 51 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()
|
A D | xz_wrapper.c | 108 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/security/apparmor/ |
A D | policy_unpack.c | 1056 struct z_stream_s strm; in deflate_compress() local 1060 memset(&strm, 0, sizeof(strm)); in deflate_compress() 1068 if (!strm.workspace) in deflate_compress() 1083 strm.next_in = src; in deflate_compress() 1084 strm.avail_in = slen; in deflate_compress() 1085 strm.next_out = stgbuf; in deflate_compress() 1086 strm.avail_out = stglen; in deflate_compress() 1088 error = zlib_deflate(&strm, Z_FINISH); in deflate_compress() 1115 *dlen = strm.total_out; in deflate_compress() 1118 zlib_deflateEnd(&strm); in deflate_compress() [all …]
|
/linux/tools/build/feature/ |
A D | test-lzma.c | 6 lzma_stream strm = LZMA_STREAM_INIT; in main() local 9 ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); in main()
|