Lines Matching refs:strm

33     z_stream	strm;  member
68 zlib_deflateEnd(&state->strm); in z_comp_free()
69 vfree(state->strm.workspace); in z_comp_free()
108 state->strm.next_in = NULL; in z_comp_alloc()
110 state->strm.workspace = vmalloc(zlib_deflate_workspacesize(-w_size, 8)); in z_comp_alloc()
111 if (state->strm.workspace == NULL) in z_comp_alloc()
114 if (zlib_deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, in z_comp_alloc()
157 zlib_deflateReset(&state->strm); in z_comp_init()
174 zlib_deflateReset(&state->strm); in z_comp_reset()
219 state->strm.next_out = wptr; in z_compress()
220 state->strm.avail_out = oavail = osize - olen; in z_compress()
225 state->strm.next_in = rptr; in z_compress()
226 state->strm.avail_in = (isize - off); in z_compress()
229 r = zlib_deflate(&state->strm, Z_PACKET_FLUSH); in z_compress()
236 if (state->strm.avail_out == 0) { in z_compress()
238 state->strm.next_out = NULL; in z_compress()
239 state->strm.avail_out = oavail = 1000000; in z_compress()
244 olen += oavail - state->strm.avail_out; in z_compress()
285 zlib_inflateEnd(&state->strm); in z_decomp_free()
286 vfree(state->strm.workspace); in z_decomp_free()
325 state->strm.next_out = NULL; in z_decomp_alloc()
326 state->strm.workspace = vmalloc(zlib_inflate_workspacesize()); in z_decomp_alloc()
327 if (state->strm.workspace == NULL) in z_decomp_alloc()
330 if (zlib_inflateInit2(&state->strm, -w_size) != Z_OK) in z_decomp_alloc()
373 zlib_inflateReset(&state->strm); in z_decomp_init()
390 zlib_inflateReset(&state->strm); in z_decomp_reset()
452 state->strm.next_in = ibuf + PPP_HDRLEN + DEFLATE_OVHD; in z_decompress()
453 state->strm.avail_in = isize - (PPP_HDRLEN + DEFLATE_OVHD); in z_decompress()
454 state->strm.next_out = obuf + 3; in z_decompress()
455 state->strm.avail_out = 1; in z_decompress()
463 r = zlib_inflate(&state->strm, Z_PACKET_FLUSH); in z_decompress()
467 state->unit, r, (state->strm.msg? state->strm.msg: "")); in z_decompress()
470 if (state->strm.avail_out != 0) in z_decompress()
473 state->strm.avail_out = osize - PPP_HDRLEN; in z_decompress()
477 --state->strm.next_out; in z_decompress()
478 ++state->strm.avail_out; in z_decompress()
487 state->strm.next_out = overflow_buf; in z_decompress()
488 state->strm.avail_out = 1; in z_decompress()
505 olen = osize + overflow - state->strm.avail_out; in z_decompress()
538 state->strm.next_in = ibuf + 3; in z_incomp()
539 state->strm.avail_in = icnt - 3; in z_incomp()
541 --state->strm.next_in; in z_incomp()
542 ++state->strm.avail_in; in z_incomp()
545 r = zlib_inflateIncomp(&state->strm); in z_incomp()
550 state->unit, r, (state->strm.msg? state->strm.msg: "")); in z_incomp()