Home
last modified time | relevance | path

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

/Linux-v6.6/fs/pstore/
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()
576 struct z_stream_s *zstream) in decompress_record() argument
593 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 …]
/Linux-v6.6/drivers/gpu/drm/i915/
Di915_gpu_error.c248 struct z_stream_s zstream; member
254 struct z_stream_s *zstream = &c->zstream; in compress_init() local
259 zstream->workspace = in compress_init()
262 if (!zstream->workspace) { in compress_init()
276 struct z_stream_s *zstream = &c->zstream; in compress_start() local
277 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 …]