strm 37 arch/arm/kernel/head-inflate-data.c struct z_stream_s stream, *strm = &stream; strm 47 arch/arm/kernel/head-inflate-data.c strm->workspace = &state; strm 48 arch/arm/kernel/head-inflate-data.c strm->next_in = in; strm 49 arch/arm/kernel/head-inflate-data.c strm->avail_in = _edata_loc - __data_loc; /* upper bound */ strm 50 arch/arm/kernel/head-inflate-data.c strm->next_out = _sdata; strm 51 arch/arm/kernel/head-inflate-data.c strm->avail_out = _edata_loc - __data_loc; strm 52 arch/arm/kernel/head-inflate-data.c zlib_inflateInit2(strm, -MAX_WBITS); strm 53 arch/arm/kernel/head-inflate-data.c WS(strm)->inflate_state.wsize = 0; strm 54 arch/arm/kernel/head-inflate-data.c WS(strm)->inflate_state.window = NULL; strm 55 arch/arm/kernel/head-inflate-data.c rc = zlib_inflate(strm, Z_FINISH); strm 57 arch/arm/kernel/head-inflate-data.c rc = strm->avail_out; /* should be 0 */ strm 1721 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h struct z_stream_s *strm; strm 6557 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm = kmalloc(sizeof(*bp->strm), GFP_KERNEL); strm 6558 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (bp->strm == NULL) strm 6561 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm->workspace = vmalloc(zlib_inflate_workspacesize()); strm 6562 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (bp->strm->workspace == NULL) strm 6568 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c kfree(bp->strm); strm 6569 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm = NULL; strm 6583 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (bp->strm) { strm 6584 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c vfree(bp->strm->workspace); strm 6585 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c kfree(bp->strm); strm 6586 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm = NULL; strm 6613 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm->next_in = (typeof(bp->strm->next_in))zbuf + n; strm 6614 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm->avail_in = len - n; strm 6615 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm->next_out = bp->gunzip_buf; strm 6616 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm->avail_out = FW_BUF_SIZE; strm 6618 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c rc = zlib_inflateInit2(bp->strm, -MAX_WBITS); strm 6622 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c rc = zlib_inflate(bp->strm, Z_FINISH); strm 6625 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm->msg); strm 6627 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->gunzip_outlen = (FW_BUF_SIZE - bp->strm->avail_out); strm 6634 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c zlib_inflateEnd(bp->strm); strm 30 drivers/net/ppp/ppp_deflate.c z_stream strm; strm 65 drivers/net/ppp/ppp_deflate.c zlib_deflateEnd(&state->strm); strm 66 drivers/net/ppp/ppp_deflate.c vfree(state->strm.workspace); strm 105 drivers/net/ppp/ppp_deflate.c state->strm.next_in = NULL; strm 107 drivers/net/ppp/ppp_deflate.c state->strm.workspace = vmalloc(zlib_deflate_workspacesize(-w_size, 8)); strm 108 drivers/net/ppp/ppp_deflate.c if (state->strm.workspace == NULL) strm 111 drivers/net/ppp/ppp_deflate.c if (zlib_deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, strm 154 drivers/net/ppp/ppp_deflate.c zlib_deflateReset(&state->strm); strm 171 drivers/net/ppp/ppp_deflate.c zlib_deflateReset(&state->strm); strm 216 drivers/net/ppp/ppp_deflate.c state->strm.next_out = wptr; strm 217 drivers/net/ppp/ppp_deflate.c state->strm.avail_out = oavail = osize - olen; strm 222 drivers/net/ppp/ppp_deflate.c state->strm.next_in = rptr; strm 223 drivers/net/ppp/ppp_deflate.c state->strm.avail_in = (isize - off); strm 226 drivers/net/ppp/ppp_deflate.c r = zlib_deflate(&state->strm, Z_PACKET_FLUSH); strm 233 drivers/net/ppp/ppp_deflate.c if (state->strm.avail_out == 0) { strm 235 drivers/net/ppp/ppp_deflate.c state->strm.next_out = NULL; strm 236 drivers/net/ppp/ppp_deflate.c state->strm.avail_out = oavail = 1000000; strm 241 drivers/net/ppp/ppp_deflate.c olen += oavail - state->strm.avail_out; strm 282 drivers/net/ppp/ppp_deflate.c zlib_inflateEnd(&state->strm); strm 283 drivers/net/ppp/ppp_deflate.c vfree(state->strm.workspace); strm 322 drivers/net/ppp/ppp_deflate.c state->strm.next_out = NULL; strm 323 drivers/net/ppp/ppp_deflate.c state->strm.workspace = vmalloc(zlib_inflate_workspacesize()); strm 324 drivers/net/ppp/ppp_deflate.c if (state->strm.workspace == NULL) strm 327 drivers/net/ppp/ppp_deflate.c if (zlib_inflateInit2(&state->strm, -w_size) != Z_OK) strm 370 drivers/net/ppp/ppp_deflate.c zlib_inflateReset(&state->strm); strm 387 drivers/net/ppp/ppp_deflate.c zlib_inflateReset(&state->strm); strm 449 drivers/net/ppp/ppp_deflate.c state->strm.next_in = ibuf + PPP_HDRLEN + DEFLATE_OVHD; strm 450 drivers/net/ppp/ppp_deflate.c state->strm.avail_in = isize - (PPP_HDRLEN + DEFLATE_OVHD); strm 451 drivers/net/ppp/ppp_deflate.c state->strm.next_out = obuf + 3; strm 452 drivers/net/ppp/ppp_deflate.c state->strm.avail_out = 1; strm 460 drivers/net/ppp/ppp_deflate.c r = zlib_inflate(&state->strm, Z_PACKET_FLUSH); strm 464 drivers/net/ppp/ppp_deflate.c state->unit, r, (state->strm.msg? state->strm.msg: "")); strm 467 drivers/net/ppp/ppp_deflate.c if (state->strm.avail_out != 0) strm 470 drivers/net/ppp/ppp_deflate.c state->strm.avail_out = osize - PPP_HDRLEN; strm 474 drivers/net/ppp/ppp_deflate.c --state->strm.next_out; strm 475 drivers/net/ppp/ppp_deflate.c ++state->strm.avail_out; strm 484 drivers/net/ppp/ppp_deflate.c state->strm.next_out = overflow_buf; strm 485 drivers/net/ppp/ppp_deflate.c state->strm.avail_out = 1; strm 502 drivers/net/ppp/ppp_deflate.c olen = osize + overflow - state->strm.avail_out; strm 535 drivers/net/ppp/ppp_deflate.c state->strm.next_in = ibuf + 3; strm 536 drivers/net/ppp/ppp_deflate.c state->strm.avail_in = icnt - 3; strm 538 drivers/net/ppp/ppp_deflate.c --state->strm.next_in; strm 539 drivers/net/ppp/ppp_deflate.c ++state->strm.avail_in; strm 542 drivers/net/ppp/ppp_deflate.c r = zlib_inflateIncomp(&state->strm); strm 547 drivers/net/ppp/ppp_deflate.c state->unit, r, (state->strm.msg? state->strm.msg: "")); strm 196 fs/binfmt_flat.c z_stream strm; strm 201 fs/binfmt_flat.c memset(&strm, 0, sizeof(strm)); strm 202 fs/binfmt_flat.c strm.workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); strm 203 fs/binfmt_flat.c if (!strm.workspace) strm 215 fs/binfmt_flat.c strm.next_in = buf; strm 216 fs/binfmt_flat.c strm.avail_in = ret; strm 217 fs/binfmt_flat.c strm.total_in = 0; strm 270 fs/binfmt_flat.c strm.next_in += ret; strm 271 fs/binfmt_flat.c strm.avail_in -= ret; strm 273 fs/binfmt_flat.c strm.next_out = dst; strm 274 fs/binfmt_flat.c strm.avail_out = len; strm 275 fs/binfmt_flat.c strm.total_out = 0; strm 277 fs/binfmt_flat.c if (zlib_inflateInit2(&strm, -MAX_WBITS) != Z_OK) { strm 282 fs/binfmt_flat.c while ((ret = zlib_inflate(&strm, Z_NO_FLUSH)) == Z_OK) { strm 288 fs/binfmt_flat.c strm.next_in = buf; strm 289 fs/binfmt_flat.c strm.avail_in = ret; strm 290 fs/binfmt_flat.c strm.total_in = 0; strm 295 fs/binfmt_flat.c ret, strm.msg); strm 301 fs/binfmt_flat.c zlib_inflateEnd(&strm); strm 305 fs/binfmt_flat.c kfree(strm.workspace); strm 24 fs/btrfs/zlib.c z_stream strm; strm 61 fs/btrfs/zlib.c kvfree(workspace->strm.workspace); strm 77 fs/btrfs/zlib.c workspace->strm.workspace = kvmalloc(workspacesize, GFP_KERNEL); strm 80 fs/btrfs/zlib.c if (!workspace->strm.workspace || !workspace->buf) strm 115 fs/btrfs/zlib.c if (Z_OK != zlib_deflateInit(&workspace->strm, workspace->level)) { strm 121 fs/btrfs/zlib.c workspace->strm.total_in = 0; strm 122 fs/btrfs/zlib.c workspace->strm.total_out = 0; strm 136 fs/btrfs/zlib.c workspace->strm.next_in = data_in; strm 137 fs/btrfs/zlib.c workspace->strm.next_out = cpage_out; strm 138 fs/btrfs/zlib.c workspace->strm.avail_out = PAGE_SIZE; strm 139 fs/btrfs/zlib.c workspace->strm.avail_in = min(len, PAGE_SIZE); strm 141 fs/btrfs/zlib.c while (workspace->strm.total_in < len) { strm 142 fs/btrfs/zlib.c ret = zlib_deflate(&workspace->strm, Z_SYNC_FLUSH); strm 146 fs/btrfs/zlib.c zlib_deflateEnd(&workspace->strm); strm 152 fs/btrfs/zlib.c if (workspace->strm.total_in > 8192 && strm 153 fs/btrfs/zlib.c workspace->strm.total_in < strm 154 fs/btrfs/zlib.c workspace->strm.total_out) { strm 162 fs/btrfs/zlib.c if (workspace->strm.avail_out == 0) { strm 177 fs/btrfs/zlib.c workspace->strm.avail_out = PAGE_SIZE; strm 178 fs/btrfs/zlib.c workspace->strm.next_out = cpage_out; strm 181 fs/btrfs/zlib.c if (workspace->strm.total_in >= len) strm 185 fs/btrfs/zlib.c if (workspace->strm.avail_in == 0) { strm 186 fs/btrfs/zlib.c if (workspace->strm.total_out > max_out) strm 189 fs/btrfs/zlib.c bytes_left = len - workspace->strm.total_in; strm 197 fs/btrfs/zlib.c workspace->strm.avail_in = min(bytes_left, strm 199 fs/btrfs/zlib.c workspace->strm.next_in = data_in; strm 202 fs/btrfs/zlib.c workspace->strm.avail_in = 0; strm 203 fs/btrfs/zlib.c ret = zlib_deflate(&workspace->strm, Z_FINISH); strm 204 fs/btrfs/zlib.c zlib_deflateEnd(&workspace->strm); strm 211 fs/btrfs/zlib.c if (workspace->strm.total_out >= workspace->strm.total_in) { strm 217 fs/btrfs/zlib.c *total_out = workspace->strm.total_out; strm 218 fs/btrfs/zlib.c *total_in = workspace->strm.total_in; strm 247 fs/btrfs/zlib.c workspace->strm.next_in = data_in; strm 248 fs/btrfs/zlib.c workspace->strm.avail_in = min_t(size_t, srclen, PAGE_SIZE); strm 249 fs/btrfs/zlib.c workspace->strm.total_in = 0; strm 251 fs/btrfs/zlib.c workspace->strm.total_out = 0; strm 252 fs/btrfs/zlib.c workspace->strm.next_out = workspace->buf; strm 253 fs/btrfs/zlib.c workspace->strm.avail_out = PAGE_SIZE; strm 262 fs/btrfs/zlib.c workspace->strm.next_in += 2; strm 263 fs/btrfs/zlib.c workspace->strm.avail_in -= 2; strm 266 fs/btrfs/zlib.c if (Z_OK != zlib_inflateInit2(&workspace->strm, wbits)) { strm 271 fs/btrfs/zlib.c while (workspace->strm.total_in < srclen) { strm 272 fs/btrfs/zlib.c ret = zlib_inflate(&workspace->strm, Z_NO_FLUSH); strm 277 fs/btrfs/zlib.c total_out = workspace->strm.total_out; strm 291 fs/btrfs/zlib.c workspace->strm.next_out = workspace->buf; strm 292 fs/btrfs/zlib.c workspace->strm.avail_out = PAGE_SIZE; strm 294 fs/btrfs/zlib.c if (workspace->strm.avail_in == 0) { strm 303 fs/btrfs/zlib.c workspace->strm.next_in = data_in; strm 304 fs/btrfs/zlib.c tmp = srclen - workspace->strm.total_in; strm 305 fs/btrfs/zlib.c workspace->strm.avail_in = min(tmp, strm 314 fs/btrfs/zlib.c zlib_inflateEnd(&workspace->strm); strm 338 fs/btrfs/zlib.c workspace->strm.next_in = data_in; strm 339 fs/btrfs/zlib.c workspace->strm.avail_in = srclen; strm 340 fs/btrfs/zlib.c workspace->strm.total_in = 0; strm 342 fs/btrfs/zlib.c workspace->strm.next_out = workspace->buf; strm 343 fs/btrfs/zlib.c workspace->strm.avail_out = PAGE_SIZE; strm 344 fs/btrfs/zlib.c workspace->strm.total_out = 0; strm 352 fs/btrfs/zlib.c workspace->strm.next_in += 2; strm 353 fs/btrfs/zlib.c workspace->strm.avail_in -= 2; strm 356 fs/btrfs/zlib.c if (Z_OK != zlib_inflateInit2(&workspace->strm, wbits)) { strm 366 fs/btrfs/zlib.c ret = zlib_inflate(&workspace->strm, Z_NO_FLUSH); strm 371 fs/btrfs/zlib.c total_out = workspace->strm.total_out; strm 397 fs/btrfs/zlib.c workspace->strm.next_out = workspace->buf; strm 398 fs/btrfs/zlib.c workspace->strm.avail_out = PAGE_SIZE; strm 406 fs/btrfs/zlib.c zlib_inflateEnd(&workspace->strm); strm 79 fs/squashfs/lz4_wrapper.c static void lz4_free(void *strm) strm 81 fs/squashfs/lz4_wrapper.c struct squashfs_lz4 *stream = strm; strm 91 fs/squashfs/lz4_wrapper.c static int lz4_uncompress(struct squashfs_sb_info *msblk, void *strm, strm 95 fs/squashfs/lz4_wrapper.c struct squashfs_lz4 *stream = strm; strm 53 fs/squashfs/lzo_wrapper.c static void lzo_free(void *strm) strm 55 fs/squashfs/lzo_wrapper.c struct squashfs_lzo *stream = strm; strm 65 fs/squashfs/lzo_wrapper.c static int lzo_uncompress(struct squashfs_sb_info *msblk, void *strm, strm 69 fs/squashfs/lzo_wrapper.c struct squashfs_lzo *stream = strm; strm 108 fs/squashfs/xz_wrapper.c static void squashfs_xz_free(void *strm) strm 110 fs/squashfs/xz_wrapper.c struct squashfs_xz *stream = strm; strm 119 fs/squashfs/xz_wrapper.c static int squashfs_xz_uncompress(struct squashfs_sb_info *msblk, void *strm, strm 125 fs/squashfs/xz_wrapper.c struct squashfs_xz *stream = strm; strm 42 fs/squashfs/zlib_wrapper.c static void zlib_free(void *strm) strm 44 fs/squashfs/zlib_wrapper.c z_stream *stream = strm; strm 52 fs/squashfs/zlib_wrapper.c static int zlib_uncompress(struct squashfs_sb_info *msblk, void *strm, strm 57 fs/squashfs/zlib_wrapper.c z_stream *stream = strm; strm 51 fs/squashfs/zstd_wrapper.c static void zstd_free(void *strm) strm 53 fs/squashfs/zstd_wrapper.c struct workspace *wksp = strm; strm 61 fs/squashfs/zstd_wrapper.c static int zstd_uncompress(struct squashfs_sb_info *msblk, void *strm, strm 65 fs/squashfs/zstd_wrapper.c struct workspace *wksp = strm; strm 217 include/linux/zlib.h extern int zlib_deflate (z_streamp strm, int flush); strm 295 include/linux/zlib.h extern int zlib_deflateEnd (z_streamp strm); strm 337 include/linux/zlib.h extern int zlib_inflate (z_streamp strm, int flush); strm 436 include/linux/zlib.h extern int zlib_inflateEnd (z_streamp strm); strm 497 include/linux/zlib.h extern int zlib_deflateReset (z_streamp strm); strm 555 include/linux/zlib.h extern int zlib_inflateReset (z_streamp strm); strm 565 include/linux/zlib.h extern int zlib_inflateIncomp (z_stream *strm); strm 574 include/linux/zlib.h #define zlib_deflateInit(strm, level) \ strm 575 include/linux/zlib.h zlib_deflateInit2((strm), (level), Z_DEFLATED, MAX_WBITS, \ strm 577 include/linux/zlib.h #define zlib_inflateInit(strm) \ strm 578 include/linux/zlib.h zlib_inflateInit2((strm), DEF_WBITS) strm 580 include/linux/zlib.h extern int zlib_deflateInit2(z_streamp strm, int level, int method, strm 583 include/linux/zlib.h extern int zlib_inflateInit2(z_streamp strm, int windowBits); strm 45 lib/decompress_inflate.c struct z_stream_s *strm; strm 72 lib/decompress_inflate.c strm = malloc(sizeof(*strm)); strm 73 lib/decompress_inflate.c if (strm == NULL) { strm 78 lib/decompress_inflate.c strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : strm 80 lib/decompress_inflate.c if (strm->workspace == NULL) { strm 103 lib/decompress_inflate.c strm->next_in = zbuf + 10; strm 104 lib/decompress_inflate.c strm->avail_in = len - 10; strm 113 lib/decompress_inflate.c if (strm->avail_in == 0) { strm 117 lib/decompress_inflate.c --strm->avail_in; strm 118 lib/decompress_inflate.c } while (*strm->next_in++); strm 121 lib/decompress_inflate.c strm->next_out = out_buf; strm 122 lib/decompress_inflate.c strm->avail_out = out_len; strm 124 lib/decompress_inflate.c rc = zlib_inflateInit2(strm, -MAX_WBITS); strm 127 lib/decompress_inflate.c WS(strm)->inflate_state.wsize = 0; strm 128 lib/decompress_inflate.c WS(strm)->inflate_state.window = NULL; strm 132 lib/decompress_inflate.c if (strm->avail_in == 0) { strm 140 lib/decompress_inflate.c strm->next_in = zbuf; strm 141 lib/decompress_inflate.c strm->avail_in = len; strm 143 lib/decompress_inflate.c rc = zlib_inflate(strm, 0); strm 146 lib/decompress_inflate.c if (flush && strm->next_out > out_buf) { strm 147 lib/decompress_inflate.c long l = strm->next_out - out_buf; strm 153 lib/decompress_inflate.c strm->next_out = out_buf; strm 154 lib/decompress_inflate.c strm->avail_out = out_len; strm 167 lib/decompress_inflate.c zlib_inflateEnd(strm); strm 170 lib/decompress_inflate.c *pos = strm->next_in - zbuf+8; strm 173 lib/decompress_inflate.c free(strm->workspace); strm 175 lib/decompress_inflate.c free(strm); strm 75 lib/zlib_deflate/deflate.c static void flush_pending (z_streamp strm); strm 76 lib/zlib_deflate/deflate.c static int read_buf (z_streamp strm, Byte *buf, unsigned size); strm 168 lib/zlib_deflate/deflate.c z_streamp strm, strm 186 lib/zlib_deflate/deflate.c if (strm == NULL) return Z_STREAM_ERROR; strm 188 lib/zlib_deflate/deflate.c strm->msg = NULL; strm 192 lib/zlib_deflate/deflate.c mem = (deflate_workspace *) strm->workspace; strm 219 lib/zlib_deflate/deflate.c strm->state = (struct internal_state *)s; strm 220 lib/zlib_deflate/deflate.c s->strm = strm; strm 249 lib/zlib_deflate/deflate.c return zlib_deflateReset(strm); strm 254 lib/zlib_deflate/deflate.c z_streamp strm strm 259 lib/zlib_deflate/deflate.c if (strm == NULL || strm->state == NULL) strm 262 lib/zlib_deflate/deflate.c strm->total_in = strm->total_out = 0; strm 263 lib/zlib_deflate/deflate.c strm->msg = NULL; strm 264 lib/zlib_deflate/deflate.c strm->data_type = Z_UNKNOWN; strm 266 lib/zlib_deflate/deflate.c s = (deflate_state *)strm->state; strm 274 lib/zlib_deflate/deflate.c strm->adler = 1; strm 304 lib/zlib_deflate/deflate.c z_streamp strm strm 307 lib/zlib_deflate/deflate.c deflate_state *s = (deflate_state *) strm->state; strm 310 lib/zlib_deflate/deflate.c if (len > strm->avail_out) len = strm->avail_out; strm 313 lib/zlib_deflate/deflate.c if (strm->next_out != NULL) { strm 314 lib/zlib_deflate/deflate.c memcpy(strm->next_out, s->pending_out, len); strm 315 lib/zlib_deflate/deflate.c strm->next_out += len; strm 318 lib/zlib_deflate/deflate.c strm->total_out += len; strm 319 lib/zlib_deflate/deflate.c strm->avail_out -= len; strm 328 lib/zlib_deflate/deflate.c z_streamp strm, strm 335 lib/zlib_deflate/deflate.c if (strm == NULL || strm->state == NULL || strm 339 lib/zlib_deflate/deflate.c s = (deflate_state *) strm->state; strm 341 lib/zlib_deflate/deflate.c if ((strm->next_in == NULL && strm->avail_in != 0) || strm 345 lib/zlib_deflate/deflate.c if (strm->avail_out == 0) return Z_BUF_ERROR; strm 347 lib/zlib_deflate/deflate.c s->strm = strm; /* just in case */ strm 367 lib/zlib_deflate/deflate.c putShortMSB(s, (uInt)(strm->adler >> 16)); strm 368 lib/zlib_deflate/deflate.c putShortMSB(s, (uInt)(strm->adler & 0xffff)); strm 370 lib/zlib_deflate/deflate.c strm->adler = 1L; strm 375 lib/zlib_deflate/deflate.c flush_pending(strm); strm 376 lib/zlib_deflate/deflate.c if (strm->avail_out == 0) { strm 391 lib/zlib_deflate/deflate.c } else if (strm->avail_in == 0 && flush <= old_flush && strm 397 lib/zlib_deflate/deflate.c if (s->status == FINISH_STATE && strm->avail_in != 0) { strm 403 lib/zlib_deflate/deflate.c if (strm->avail_in != 0 || s->lookahead != 0 || strm 413 lib/zlib_deflate/deflate.c if (strm->avail_out == 0) { strm 441 lib/zlib_deflate/deflate.c flush_pending(strm); strm 442 lib/zlib_deflate/deflate.c if (strm->avail_out == 0) { strm 448 lib/zlib_deflate/deflate.c Assert(strm->avail_out > 0, "bug2"); strm 454 lib/zlib_deflate/deflate.c putShortMSB(s, (uInt)(strm->adler >> 16)); strm 455 lib/zlib_deflate/deflate.c putShortMSB(s, (uInt)(strm->adler & 0xffff)); strm 456 lib/zlib_deflate/deflate.c flush_pending(strm); strm 466 lib/zlib_deflate/deflate.c z_streamp strm strm 472 lib/zlib_deflate/deflate.c if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; strm 473 lib/zlib_deflate/deflate.c s = (deflate_state *) strm->state; strm 481 lib/zlib_deflate/deflate.c strm->state = NULL; strm 494 lib/zlib_deflate/deflate.c z_streamp strm, strm 499 lib/zlib_deflate/deflate.c unsigned len = strm->avail_in; strm 504 lib/zlib_deflate/deflate.c strm->avail_in -= len; strm 506 lib/zlib_deflate/deflate.c if (!((deflate_state *)(strm->state))->noheader) { strm 507 lib/zlib_deflate/deflate.c strm->adler = zlib_adler32(strm->adler, strm->next_in, len); strm 509 lib/zlib_deflate/deflate.c memcpy(buf, strm->next_in, len); strm 510 lib/zlib_deflate/deflate.c strm->next_in += len; strm 511 lib/zlib_deflate/deflate.c strm->total_in += len; strm 790 lib/zlib_deflate/deflate.c if (s->strm->avail_in == 0) return; strm 805 lib/zlib_deflate/deflate.c n = read_buf(s->strm, s->window + s->strstart + s->lookahead, more); strm 820 lib/zlib_deflate/deflate.c } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0); strm 834 lib/zlib_deflate/deflate.c flush_pending(s->strm); \ strm 841 lib/zlib_deflate/deflate.c if (s->strm->avail_out == 0) return (eof) ? finish_started : need_more; \ strm 1103 lib/zlib_deflate/deflate.c if (s->strm->avail_out == 0) return need_more; strm 72 lib/zlib_deflate/defutil.h z_streamp strm; /* pointer back to this zlib stream */ strm 88 lib/zlib_inflate/inffast.c void inflate_fast(z_streamp strm, unsigned start) strm 117 lib/zlib_inflate/inffast.c state = (struct inflate_state *)strm->state; strm 118 lib/zlib_inflate/inffast.c in = strm->next_in - OFF; strm 119 lib/zlib_inflate/inffast.c last = in + (strm->avail_in - 5); strm 120 lib/zlib_inflate/inffast.c out = strm->next_out - OFF; strm 121 lib/zlib_inflate/inffast.c beg = out - (start - strm->avail_out); strm 122 lib/zlib_inflate/inffast.c end = out + (strm->avail_out - 257); strm 193 lib/zlib_inflate/inffast.c strm->msg = (char *)"invalid distance too far back"; strm 204 lib/zlib_inflate/inffast.c strm->msg = (char *)"invalid distance too far back"; strm 312 lib/zlib_inflate/inffast.c strm->msg = (char *)"invalid distance code"; strm 326 lib/zlib_inflate/inffast.c strm->msg = (char *)"invalid literal/length code"; strm 339 lib/zlib_inflate/inffast.c strm->next_in = in + OFF; strm 340 lib/zlib_inflate/inffast.c strm->next_out = out + OFF; strm 341 lib/zlib_inflate/inffast.c strm->avail_in = (unsigned)(in < last ? 5 + (last - in) : 5 - (in - last)); strm 342 lib/zlib_inflate/inffast.c strm->avail_out = (unsigned)(out < end ? strm 11 lib/zlib_inflate/inffast.h void inflate_fast (z_streamp strm, unsigned start); strm 23 lib/zlib_inflate/inflate.c int zlib_inflateReset(z_streamp strm) strm 27 lib/zlib_inflate/inflate.c if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; strm 28 lib/zlib_inflate/inflate.c state = (struct inflate_state *)strm->state; strm 29 lib/zlib_inflate/inflate.c strm->total_in = strm->total_out = state->total = 0; strm 30 lib/zlib_inflate/inflate.c strm->msg = NULL; strm 31 lib/zlib_inflate/inflate.c strm->adler = 1; /* to support ill-conceived Java test suite */ strm 48 lib/zlib_inflate/inflate.c int zlib_inflateInit2(z_streamp strm, int windowBits) strm 52 lib/zlib_inflate/inflate.c if (strm == NULL) return Z_STREAM_ERROR; strm 53 lib/zlib_inflate/inflate.c strm->msg = NULL; /* in case we return an error */ strm 55 lib/zlib_inflate/inflate.c state = &WS(strm)->inflate_state; strm 56 lib/zlib_inflate/inflate.c strm->state = (struct internal_state *)state; strm 69 lib/zlib_inflate/inflate.c state->window = &WS(strm)->working_window[0]; strm 71 lib/zlib_inflate/inflate.c return zlib_inflateReset(strm); strm 101 lib/zlib_inflate/inflate.c static void zlib_updatewindow(z_streamp strm, unsigned out) strm 106 lib/zlib_inflate/inflate.c state = (struct inflate_state *)strm->state; strm 109 lib/zlib_inflate/inflate.c copy = out - strm->avail_out; strm 111 lib/zlib_inflate/inflate.c memcpy(state->window, strm->next_out - state->wsize, state->wsize); strm 118 lib/zlib_inflate/inflate.c memcpy(state->window + state->write, strm->next_out - copy, dist); strm 121 lib/zlib_inflate/inflate.c memcpy(state->window, strm->next_out - copy, copy); strm 146 lib/zlib_inflate/inflate.c static int zlib_inflateSyncPacket(z_streamp strm) strm 150 lib/zlib_inflate/inflate.c if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; strm 151 lib/zlib_inflate/inflate.c state = (struct inflate_state *)strm->state; strm 168 lib/zlib_inflate/inflate.c put = strm->next_out; \ strm 169 lib/zlib_inflate/inflate.c left = strm->avail_out; \ strm 170 lib/zlib_inflate/inflate.c next = strm->next_in; \ strm 171 lib/zlib_inflate/inflate.c have = strm->avail_in; \ strm 179 lib/zlib_inflate/inflate.c strm->next_out = put; \ strm 180 lib/zlib_inflate/inflate.c strm->avail_out = left; \ strm 181 lib/zlib_inflate/inflate.c strm->next_in = next; \ strm 182 lib/zlib_inflate/inflate.c strm->avail_in = have; \ strm 317 lib/zlib_inflate/inflate.c int zlib_inflate(z_streamp strm, int flush) strm 338 lib/zlib_inflate/inflate.c if (strm == NULL || strm->state == NULL || strm 339 lib/zlib_inflate/inflate.c (strm->next_in == NULL && strm->avail_in != 0)) strm 342 lib/zlib_inflate/inflate.c state = (struct inflate_state *)strm->state; strm 359 lib/zlib_inflate/inflate.c strm->msg = (char *)"incorrect header check"; strm 364 lib/zlib_inflate/inflate.c strm->msg = (char *)"unknown compression method"; strm 371 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid window size"; strm 376 lib/zlib_inflate/inflate.c strm->adler = state->check = zlib_adler32(0L, NULL, 0); strm 382 lib/zlib_inflate/inflate.c strm->adler = state->check = REVERSE(hold); strm 391 lib/zlib_inflate/inflate.c strm->adler = state->check = zlib_adler32(0L, NULL, 0); strm 418 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid block type"; strm 427 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid stored block lengths"; strm 461 lib/zlib_inflate/inflate.c strm->msg = (char *)"too many length or distance symbols"; strm 483 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid code lengths set"; strm 507 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid bit length repeat"; strm 530 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid bit length repeat"; strm 549 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid literal/lengths set"; strm 558 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid distances set"; strm 567 lib/zlib_inflate/inflate.c inflate_fast(strm, out); strm 597 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid literal/length code"; strm 630 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid distance code"; strm 646 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid distance too far back"; strm 652 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid distance too far back"; strm 693 lib/zlib_inflate/inflate.c strm->total_out += out; strm 696 lib/zlib_inflate/inflate.c strm->adler = state->check = strm 701 lib/zlib_inflate/inflate.c strm->msg = (char *)"incorrect data check"; strm 729 lib/zlib_inflate/inflate.c if (state->wsize || (state->mode < CHECK && out != strm->avail_out)) strm 730 lib/zlib_inflate/inflate.c zlib_updatewindow(strm, out); strm 732 lib/zlib_inflate/inflate.c in -= strm->avail_in; strm 733 lib/zlib_inflate/inflate.c out -= strm->avail_out; strm 734 lib/zlib_inflate/inflate.c strm->total_in += in; strm 735 lib/zlib_inflate/inflate.c strm->total_out += out; strm 738 lib/zlib_inflate/inflate.c strm->adler = state->check = strm 739 lib/zlib_inflate/inflate.c UPDATE(state->check, strm->next_out - out, out); strm 741 lib/zlib_inflate/inflate.c strm->data_type = state->bits + (state->last ? 64 : 0) + strm 745 lib/zlib_inflate/inflate.c strm->avail_out != 0 && strm->avail_in == 0) strm 746 lib/zlib_inflate/inflate.c return zlib_inflateSyncPacket(strm); strm 754 lib/zlib_inflate/inflate.c int zlib_inflateEnd(z_streamp strm) strm 756 lib/zlib_inflate/inflate.c if (strm == NULL || strm->state == NULL) strm 13 lib/zlib_inflate/infutil.c struct z_stream_s *strm; strm 17 lib/zlib_inflate/infutil.c strm = kmalloc(sizeof(*strm), GFP_KERNEL); strm 18 lib/zlib_inflate/infutil.c if (strm == NULL) strm 20 lib/zlib_inflate/infutil.c strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); strm 21 lib/zlib_inflate/infutil.c if (strm->workspace == NULL) strm 27 lib/zlib_inflate/infutil.c strm->next_in = zbuf; strm 28 lib/zlib_inflate/infutil.c strm->avail_in = len; strm 29 lib/zlib_inflate/infutil.c strm->next_out = gunzip_buf; strm 30 lib/zlib_inflate/infutil.c strm->avail_out = sz; strm 32 lib/zlib_inflate/infutil.c rc = zlib_inflateInit2(strm, -MAX_WBITS); strm 34 lib/zlib_inflate/infutil.c rc = zlib_inflate(strm, Z_FINISH); strm 37 lib/zlib_inflate/infutil.c rc = sz - strm->avail_out; strm 40 lib/zlib_inflate/infutil.c zlib_inflateEnd(strm); strm 44 lib/zlib_inflate/infutil.c kfree(strm->workspace); strm 46 lib/zlib_inflate/infutil.c kfree(strm); strm 6 tools/build/feature/test-lzma.c lzma_stream strm = LZMA_STREAM_INIT; strm 9 tools/build/feature/test-lzma.c ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); strm 38 tools/perf/util/lzma.c lzma_stream strm = LZMA_STREAM_INIT; strm 53 tools/perf/util/lzma.c ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); strm 60 tools/perf/util/lzma.c strm.next_in = NULL; strm 61 tools/perf/util/lzma.c strm.avail_in = 0; strm 62 tools/perf/util/lzma.c strm.next_out = buf_out; strm 63 tools/perf/util/lzma.c strm.avail_out = sizeof(buf_out); strm 66 tools/perf/util/lzma.c if (strm.avail_in == 0 && !feof(infile)) { strm 67 tools/perf/util/lzma.c strm.next_in = buf_in; strm 68 tools/perf/util/lzma.c strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile); strm 79 tools/perf/util/lzma.c ret = lzma_code(&strm, action); strm 81 tools/perf/util/lzma.c if (strm.avail_out == 0 || ret == LZMA_STREAM_END) { strm 82 tools/perf/util/lzma.c ssize_t write_size = sizeof(buf_out) - strm.avail_out; strm 89 tools/perf/util/lzma.c strm.next_out = buf_out; strm 90 tools/perf/util/lzma.c strm.avail_out = sizeof(buf_out);