Lines Matching defs: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;
68 if (stream->avail_in == 0) {
81 stream->next_in = data + offset;
82 stream->avail_in = avail;
86 if (stream->avail_out == 0) {
87 stream->next_out = squashfs_next_page(output);
88 if (stream->next_out != NULL)
89 stream->avail_out = PAGE_SIZE;
93 zlib_err = zlib_inflateInit(stream);
101 zlib_err = zlib_inflate(stream, Z_SYNC_FLUSH);
113 if (zlib_inflateEnd(stream) != Z_OK)
116 return error ? error : stream->total_out;