Lines Matching refs:zsp
108 z_stream *zsp;
148 zsp = bkmem_alloc(sizeof (*zsp));
149 filep->fi_dcstream = zsp;
154 bzero(zsp, sizeof (*zsp));
155 zsp->opaque = filep;
156 zsp->zalloc = cf_alloc;
157 zsp->zfree = cf_free;
158 zsp->avail_in = 0;
159 zsp->next_in = NULL;
160 zsp->avail_out = 0;
161 zsp->next_out = NULL;
162 if (inflateInit2(zsp, MAX_WBITS | 0x20) != Z_OK) {
192 z_stream *zsp;
195 zsp = filep->fi_dcstream;
196 zsp->avail_in = 0;
197 zsp->next_in = NULL;
198 (void) inflateReset(zsp);
214 z_stream *zsp;
223 zsp = filep->fi_dcstream;
225 dprintf(" reading at offset %lx\n", zsp->total_out);
226 zsp->next_out = (unsigned char *)buf;
227 zsp->avail_out = count;
228 while (zsp->avail_out != 0) {
229 if (zsp->avail_in == 0 && filep->fi_cfoff < ip->i_size) {
241 zsp->next_in = (unsigned char *)filep->fi_memp;
242 zsp->avail_in = filep->fi_count;
246 infbytes = zsp->avail_out;
248 zsp->avail_out, (unsigned long)zsp->next_out);
249 err = inflate(zsp, Z_NO_FLUSH);
250 infbytes -= zsp->avail_out;
259 dprintf("cf_read: returned %lx bytes\n", count - zsp->avail_out);
260 return (count - zsp->avail_out);
269 z_stream *zsp;
274 zsp = filep->fi_dcstream;
276 addr += zsp->total_out;
280 if (addr < zsp->total_out) {
284 addr -= zsp->total_out;