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()583 struct z_stream_s *zstream) in decompress_record() argument600 if (!zstream->workspace) { in decompress_record()605 ret = zlib_inflateReset(zstream); in decompress_record()618 zstream->next_in = record->buf; in decompress_record()619 zstream->avail_in = record->size; in decompress_record()[all …]
250 struct z_stream_s zstream; member256 struct z_stream_s *zstream = &c->zstream; in compress_init() local261 zstream->workspace = in compress_init()264 if (!zstream->workspace) { in compress_init()278 struct z_stream_s *zstream = &c->zstream; in compress_start() local279 void *workspace = zstream->workspace; in compress_start()281 memset(zstream, 0, sizeof(*zstream)); in compress_start()282 zstream->workspace = workspace; in compress_start()284 return zlib_deflateInit(zstream, Z_DEFAULT_COMPRESSION) == Z_OK; in compress_start()307 struct z_stream_s *zstream = &c->zstream; in compress_page() local[all …]