Lines Matching refs:z
8 struct z_stream_s z; member
37 vfree(strm->z.workspace); in z_erofs_deflate_exit()
60 strm->z.workspace = vmalloc(zlib_inflate_workspacesize()); in z_erofs_deflate_init()
61 if (!strm->z.workspace) { in z_erofs_deflate_init()
137 zerr = zlib_inflateInit2(&strm->z, -MAX_WBITS); in z_erofs_deflate_decompress()
144 strm->z.avail_in = min_t(u32, insz, PAGE_SIZE - rq->pageofs_in); in z_erofs_deflate_decompress()
145 insz -= strm->z.avail_in; in z_erofs_deflate_decompress()
146 strm->z.next_in = kin + rq->pageofs_in; in z_erofs_deflate_decompress()
147 strm->z.avail_out = 0; in z_erofs_deflate_decompress()
150 if (!strm->z.avail_out) { in z_erofs_deflate_decompress()
159 strm->z.avail_out = min_t(u32, outsz, PAGE_SIZE - pofs); in z_erofs_deflate_decompress()
160 outsz -= strm->z.avail_out; in z_erofs_deflate_decompress()
168 strm->z.next_out = kout + pofs; in z_erofs_deflate_decompress()
172 if (!strm->z.avail_in && insz) { in z_erofs_deflate_decompress()
180 j = strm->z.next_out - kout; in z_erofs_deflate_decompress()
184 strm->z.avail_in = min_t(u32, insz, PAGE_SIZE); in z_erofs_deflate_decompress()
185 insz -= strm->z.avail_in; in z_erofs_deflate_decompress()
187 strm->z.next_in = kin; in z_erofs_deflate_decompress()
191 strm->z.next_out = kout + j; in z_erofs_deflate_decompress()
202 memcpy(strm->bounce, strm->z.next_in, strm->z.avail_in); in z_erofs_deflate_decompress()
203 strm->z.next_in = strm->bounce; in z_erofs_deflate_decompress()
222 zerr = zlib_inflate(&strm->z, Z_SYNC_FLUSH); in z_erofs_deflate_decompress()
223 if (zerr != Z_OK || !(outsz + strm->z.avail_out)) { in z_erofs_deflate_decompress()
235 if (zlib_inflateEnd(&strm->z) != Z_OK && !err) in z_erofs_deflate_decompress()