Home
last modified time | relevance | path

Searched refs:zstream (Results 1 – 2 of 2) sorted by relevance

/linux/fs/pstore/
H A Dplatform.c176 struct z_stream_s zstream = { in pstore_compress() local
188 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() argument
600 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 …]
/linux/drivers/gpu/drm/i915/
H A Di915_gpu_error.c250 struct z_stream_s zstream; member
256 struct z_stream_s *zstream = &c->zstream; in compress_init() local
261 zstream->workspace = in compress_init()
264 if (!zstream->workspace) { in compress_init()
278 struct z_stream_s *zstream = &c->zstream; in compress_start() local
279 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 …]