Lines Matching refs:stream
75 static struct z_stream_s stream; variable
139 err = zlib_deflateInit2(&stream, COMPR_LEVEL, Z_DEFLATED, WINDOW_BITS, in pstore_compress()
144 stream.next_in = in; in pstore_compress()
145 stream.avail_in = inlen; in pstore_compress()
146 stream.total_in = 0; in pstore_compress()
147 stream.next_out = out; in pstore_compress()
148 stream.avail_out = outlen; in pstore_compress()
149 stream.total_out = 0; in pstore_compress()
151 err = zlib_deflate(&stream, Z_FINISH); in pstore_compress()
155 err = zlib_deflateEnd(&stream); in pstore_compress()
159 if (stream.total_out >= stream.total_in) in pstore_compress()
162 ret = stream.total_out; in pstore_compress()
173 err = zlib_inflateInit2(&stream, WINDOW_BITS); in pstore_decompress()
177 stream.next_in = in; in pstore_decompress()
178 stream.avail_in = inlen; in pstore_decompress()
179 stream.total_in = 0; in pstore_decompress()
180 stream.next_out = out; in pstore_decompress()
181 stream.avail_out = outlen; in pstore_decompress()
182 stream.total_out = 0; in pstore_decompress()
184 err = zlib_inflate(&stream, Z_FINISH); in pstore_decompress()
188 err = zlib_inflateEnd(&stream); in pstore_decompress()
192 ret = stream.total_out; in pstore_decompress()
227 stream.workspace = kmalloc(size, GFP_KERNEL); in allocate_buf_for_compression()
228 if (!stream.workspace) { in allocate_buf_for_compression()
235 stream.workspace = NULL; in allocate_buf_for_compression()