Searched refs:zstream (Results 1 – 2 of 2) sorted by relevance
176 struct z_stream_s zstream = { in pstore_compress() local188 ret = zlib_deflateInit2(&zstream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, in pstore_compress()193 ret = zlib_deflate(&zstream, Z_FINISH); in pstore_compress()197 ret = zlib_deflateEnd(&zstream); in pstore_compress()201 return zstream.total_out; in pstore_compress()576 struct z_stream_s *zstream) in decompress_record() argument593 if (!zstream->workspace) { in decompress_record()598 ret = zlib_inflateReset(zstream); in decompress_record()611 zstream->next_in = record->buf; in decompress_record()612 zstream->avail_in = record->size; in decompress_record()[all …]
248 struct z_stream_s zstream; member254 struct z_stream_s *zstream = &c->zstream; in compress_init() local259 zstream->workspace = in compress_init()262 if (!zstream->workspace) { in compress_init()276 struct z_stream_s *zstream = &c->zstream; in compress_start() local277 void *workspace = zstream->workspace; in compress_start()279 memset(zstream, 0, sizeof(*zstream)); in compress_start()280 zstream->workspace = workspace; in compress_start()282 return zlib_deflateInit(zstream, Z_DEFAULT_COMPRESSION) == Z_OK; in compress_start()305 struct z_stream_s *zstream = &c->zstream; in compress_page() local[all …]