Lines Matching refs:strm
54 z_stream strm; member
89 zlib_deflateEnd(&state->strm); in z_comp_free()
90 vfree(state->strm.workspace); in z_comp_free()
129 state->strm.next_in = NULL; in z_comp_alloc()
131 state->strm.workspace = vmalloc(zlib_deflate_workspacesize()); in z_comp_alloc()
132 if (state->strm.workspace == NULL) in z_comp_alloc()
135 if (zlib_deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, in z_comp_alloc()
178 zlib_deflateReset(&state->strm); in z_comp_init()
195 zlib_deflateReset(&state->strm); in z_comp_reset()
242 state->strm.next_out = wptr; in z_compress()
243 state->strm.avail_out = oavail = osize - olen; in z_compress()
248 state->strm.next_in = rptr; in z_compress()
249 state->strm.avail_in = (isize - off); in z_compress()
252 r = zlib_deflate(&state->strm, Z_PACKET_FLUSH); in z_compress()
259 if (state->strm.avail_out == 0) { in z_compress()
261 state->strm.next_out = NULL; in z_compress()
262 state->strm.avail_out = oavail = 1000000; in z_compress()
267 olen += oavail - state->strm.avail_out; in z_compress()
308 zlib_inflateEnd(&state->strm); in z_decomp_free()
309 kfree(state->strm.workspace); in z_decomp_free()
348 state->strm.next_out = NULL; in z_decomp_alloc()
349 state->strm.workspace = kmalloc(zlib_inflate_workspacesize(), in z_decomp_alloc()
351 if (state->strm.workspace == NULL) in z_decomp_alloc()
354 if (zlib_inflateInit2(&state->strm, -w_size) != Z_OK) in z_decomp_alloc()
397 zlib_inflateReset(&state->strm); in z_decomp_init()
414 zlib_inflateReset(&state->strm); in z_decomp_reset()
476 state->strm.next_in = ibuf + PPP_HDRLEN + DEFLATE_OVHD; in z_decompress()
477 state->strm.avail_in = isize - (PPP_HDRLEN + DEFLATE_OVHD); in z_decompress()
478 state->strm.next_out = obuf + 3; in z_decompress()
479 state->strm.avail_out = 1; in z_decompress()
487 r = zlib_inflate(&state->strm, Z_PACKET_FLUSH); in z_decompress()
491 state->unit, r, (state->strm.msg? state->strm.msg: "")); in z_decompress()
494 if (state->strm.avail_out != 0) in z_decompress()
497 state->strm.avail_out = osize - PPP_HDRLEN; in z_decompress()
501 --state->strm.next_out; in z_decompress()
502 ++state->strm.avail_out; in z_decompress()
511 state->strm.next_out = overflow_buf; in z_decompress()
512 state->strm.avail_out = 1; in z_decompress()
529 olen = osize + overflow - state->strm.avail_out; in z_decompress()
562 state->strm.next_in = ibuf + 3; in z_incomp()
563 state->strm.avail_in = icnt - 3; in z_incomp()
565 --state->strm.next_in; in z_incomp()
566 ++state->strm.avail_in; in z_incomp()
569 r = zlib_inflateIncomp(&state->strm); in z_incomp()
574 state->unit, r, (state->strm.msg? state->strm.msg: "")); in z_incomp()