Lines Matching refs:strm
19 z_streamp strm = &(state->strm); in gz_init() local
39 strm->zalloc = Z_NULL; in gz_init()
40 strm->zfree = Z_NULL; in gz_init()
41 strm->opaque = Z_NULL; in gz_init()
42 ret = deflateInit2(strm, state->level, Z_DEFLATED, in gz_init()
57 strm->avail_out = state->size; in gz_init()
58 strm->next_out = state->out; in gz_init()
59 state->x.next = strm->next_out; in gz_init()
76 z_streamp strm = &(state->strm); in gz_comp() local
84 got = write(state->fd, strm->next_in, strm->avail_in); in gz_comp()
85 if (got < 0 || (unsigned)got != strm->avail_in) { in gz_comp()
89 strm->avail_in = 0; in gz_comp()
98 if (strm->avail_out == 0 || (flush != Z_NO_FLUSH && in gz_comp()
100 have = (unsigned)(strm->next_out - state->x.next); in gz_comp()
106 if (strm->avail_out == 0) { in gz_comp()
107 strm->avail_out = state->size; in gz_comp()
108 strm->next_out = state->out; in gz_comp()
110 state->x.next = strm->next_out; in gz_comp()
114 have = strm->avail_out; in gz_comp()
115 ret = deflate(strm, flush); in gz_comp()
121 have -= strm->avail_out; in gz_comp()
126 deflateReset(strm); in gz_comp()
139 z_streamp strm = &(state->strm); in gz_zero() local
142 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1) in gz_zero()
154 strm->avail_in = n; in gz_zero()
155 strm->next_in = state->in; in gz_zero()
172 z_streamp strm; in gzwrite() local
178 strm = &(state->strm); in gzwrite()
212 if (strm->avail_in == 0) in gzwrite()
213 strm->next_in = state->in; in gzwrite()
214 have = (unsigned)((strm->next_in + strm->avail_in) - state->in); in gzwrite()
219 strm->avail_in += copy; in gzwrite()
229 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1) in gzwrite()
233 strm->avail_in = len; in gzwrite()
234 strm->next_in = (z_const Bytef *)buf; in gzwrite()
252 z_streamp strm; in gzputc() local
258 strm = &(state->strm); in gzputc()
274 if (strm->avail_in == 0) in gzputc()
275 strm->next_in = state->in; in gzputc()
276 have = (unsigned)((strm->next_in + strm->avail_in) - state->in); in gzputc()
279 strm->avail_in++; in gzputc()
314 z_streamp strm; in gzvprintf() local
320 strm = &(state->strm); in gzvprintf()
338 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1) in gzvprintf()
366 strm->avail_in = (unsigned)len; in gzvprintf()
367 strm->next_in = state->in; in gzvprintf()
394 z_streamp strm; in gzprintf() local
400 strm = &(state->strm); in gzprintf()
422 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1) in gzprintf()
455 strm->avail_in = (unsigned)len; in gzprintf()
456 strm->next_in = state->in; in gzprintf()
502 z_streamp strm; in gzsetparams() local
508 strm = &(state->strm); in gzsetparams()
528 if (strm->avail_in && gz_comp(state, Z_PARTIAL_FLUSH) == -1) in gzsetparams()
530 deflateParams(strm, level, strategy); in gzsetparams()
565 (void)deflateEnd(&(state->strm)); in gzclose_w()