Lines Matching refs:stream
26 z_stream *stream = kmalloc(sizeof(z_stream), GFP_KERNEL); in zlib_init() local
27 if (stream == NULL) in zlib_init()
29 stream->workspace = vmalloc(zlib_inflate_workspacesize()); in zlib_init()
30 if (stream->workspace == NULL) in zlib_init()
33 return stream; in zlib_init()
37 kfree(stream); in zlib_init()
44 z_stream *stream = strm; in zlib_free() local
46 if (stream) in zlib_free()
47 vfree(stream->workspace); in zlib_free()
48 kfree(stream); in zlib_free()
57 z_stream *stream = strm; in zlib_uncompress() local
59 stream->avail_out = PAGE_SIZE; in zlib_uncompress()
60 stream->next_out = squashfs_first_page(output); in zlib_uncompress()
61 stream->avail_in = 0; in zlib_uncompress()
64 if (stream->avail_in == 0 && k < b) { in zlib_uncompress()
67 stream->next_in = bh[k]->b_data + offset; in zlib_uncompress()
68 stream->avail_in = avail; in zlib_uncompress()
72 if (stream->avail_out == 0) { in zlib_uncompress()
73 stream->next_out = squashfs_next_page(output); in zlib_uncompress()
74 if (stream->next_out != NULL) in zlib_uncompress()
75 stream->avail_out = PAGE_SIZE; in zlib_uncompress()
79 zlib_err = zlib_inflateInit(stream); in zlib_uncompress()
87 zlib_err = zlib_inflate(stream, Z_SYNC_FLUSH); in zlib_uncompress()
89 if (stream->avail_in == 0 && k < b) in zlib_uncompress()
98 zlib_err = zlib_inflateEnd(stream); in zlib_uncompress()
105 return stream->total_out; in zlib_uncompress()