Lines Matching refs:stream
26 z_stream *stream = kmalloc(sizeof(z_stream), GFP_KERNEL);
27 if (stream == NULL)
29 stream->workspace = vmalloc(zlib_inflate_workspacesize());
30 if (stream->workspace == NULL)
33 return stream;
37 kfree(stream);
44 z_stream *stream = strm;
46 if (stream)
47 vfree(stream->workspace);
48 kfree(stream);
59 z_stream *stream = strm;
61 stream->avail_out = PAGE_SIZE;
62 stream->next_out = squashfs_first_page(output);
63 stream->avail_in = 0;
65 if (IS_ERR(stream->next_out)) {
66 error = PTR_ERR(stream->next_out);
73 if (stream->avail_in == 0) {
86 stream->next_in = data + offset;
87 stream->avail_in = avail;
91 if (stream->avail_out == 0) {
92 stream->next_out = squashfs_next_page(output);
93 if (IS_ERR(stream->next_out)) {
94 error = PTR_ERR(stream->next_out);
96 } else if (stream->next_out != NULL)
97 stream->avail_out = PAGE_SIZE;
101 zlib_err = zlib_inflateInit(stream);
109 zlib_err = zlib_inflate(stream, Z_SYNC_FLUSH);
122 if (zlib_inflateEnd(stream) != Z_OK)
125 return error ? error : stream->total_out;