Lines Matching refs:strm

30     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()
217 state->strm.avail_out = oavail = osize - olen; in z_compress()
222 state->strm.next_in = rptr; in z_compress()
223 state->strm.avail_in = (isize - off); in z_compress()
226 r = zlib_deflate(&state->strm, Z_PACKET_FLUSH); in z_compress()
233 if (state->strm.avail_out == 0) { in z_compress()
235 state->strm.next_out = NULL; in z_compress()
236 state->strm.avail_out = oavail = 1000000; in z_compress()
241 olen += oavail - state->strm.avail_out; in z_compress()
282 vfree(state->strm.workspace); in z_decomp_free()
321 state->strm.next_out = NULL; in z_decomp_alloc()
322 state->strm.workspace = vmalloc(zlib_inflate_workspacesize()); in z_decomp_alloc()
323 if (state->strm.workspace == NULL) in z_decomp_alloc()
326 if (zlib_inflateInit2(&state->strm, -w_size) != Z_OK) in z_decomp_alloc()
369 zlib_inflateReset(&state->strm); in z_decomp_init()
386 zlib_inflateReset(&state->strm); in z_decomp_reset()
448 state->strm.next_in = ibuf + PPP_HDRLEN + DEFLATE_OVHD; in z_decompress()
449 state->strm.avail_in = isize - (PPP_HDRLEN + DEFLATE_OVHD); in z_decompress()
450 state->strm.next_out = obuf + 3; in z_decompress()
451 state->strm.avail_out = 1; in z_decompress()
459 r = zlib_inflate(&state->strm, Z_PACKET_FLUSH); in z_decompress()
463 state->unit, r, (state->strm.msg? state->strm.msg: "")); in z_decompress()
466 if (state->strm.avail_out != 0) in z_decompress()
469 state->strm.avail_out = osize - PPP_HDRLEN; in z_decompress()
473 --state->strm.next_out; in z_decompress()
474 ++state->strm.avail_out; in z_decompress()
483 state->strm.next_out = overflow_buf; in z_decompress()
484 state->strm.avail_out = 1; in z_decompress()
501 olen = osize + overflow - state->strm.avail_out; in z_decompress()
534 state->strm.next_in = ibuf + 3; in z_incomp()
535 state->strm.avail_in = icnt - 3; in z_incomp()
537 --state->strm.next_in; in z_incomp()
538 ++state->strm.avail_in; in z_incomp()
541 r = zlib_inflateIncomp(&state->strm); in z_incomp()
546 state->unit, r, (state->strm.msg? state->strm.msg: "")); in z_incomp()