Lines Matching refs:zstream
176 struct z_stream_s zstream = {
188 ret = zlib_deflateInit2(&zstream, Z_DEFAULT_COMPRESSION, Z_DEFLATED,
193 ret = zlib_deflate(&zstream, Z_FINISH);
197 ret = zlib_deflateEnd(&zstream);
201 return zstream.total_out;
583 struct z_stream_s *zstream)
600 if (!zstream->workspace) {
605 ret = zlib_inflateReset(zstream);
618 zstream->next_in = record->buf;
619 zstream->avail_in = record->size;
620 zstream->next_out = workspace;
621 zstream->avail_out = max_uncompressed_size;
623 ret = zlib_inflate(zstream, Z_FINISH);
630 unzipped_len = zstream->total_out;
661 struct z_stream_s zstream = {};
667 zstream.workspace = kvmalloc(zlib_inflate_workspacesize(),
669 zlib_inflateInit2(&zstream, -DEF_WBITS);
700 decompress_record(record, &zstream);
717 if (zlib_inflateEnd(&zstream) != Z_OK)
719 kvfree(zstream.workspace);