Lines Matching refs:cx

48     z_stream cx;  member
63 deflateReset(&state->cx); in DeflateResetOutput()
105 state->cx.next_out = wp; in DeflateOutput()
106 state->cx.avail_out = DEFLATE_CHUNK_LEN - 2; in DeflateOutput()
107 state->cx.next_in = MBUF_CTOP(mi); in DeflateOutput()
108 state->cx.avail_in = mi->m_len; in DeflateOutput()
113 if ((res = deflate(&state->cx, flush)) != Z_OK) { in DeflateOutput()
117 res, state->cx.msg ? state->cx.msg : ""); in DeflateOutput()
124 if (flush == Z_SYNC_FLUSH && state->cx.avail_out != 0) in DeflateOutput()
127 if (state->cx.avail_in == 0 && mi->m_next != NULL) { in DeflateOutput()
129 state->cx.next_in = MBUF_CTOP(mi); in DeflateOutput()
130 state->cx.avail_in = mi->m_len; in DeflateOutput()
135 if (state->cx.avail_out == 0) { in DeflateOutput()
140 state->cx.next_out = MBUF_CTOP(mo); in DeflateOutput()
141 state->cx.avail_out = DEFLATE_CHUNK_LEN; in DeflateOutput()
145 olen += (mo->m_len = DEFLATE_CHUNK_LEN - state->cx.avail_out); in DeflateOutput()
195 inflateReset(&state->cx); in DeflateResetInput()
247 state->cx.next_in = MBUF_CTOP(mi); in DeflateInput()
248 state->cx.avail_in = mi->m_len; in DeflateInput()
249 state->cx.next_out = wp + 1; in DeflateInput()
250 state->cx.avail_out = 1; in DeflateInput()
258 if ((res = inflate(&state->cx, flush)) != Z_OK) { in DeflateInput()
262 res, state->cx.msg ? state->cx.msg : ""); in DeflateInput()
269 if (flush == Z_SYNC_FLUSH && state->cx.avail_out != 0) in DeflateInput()
272 if (state->cx.avail_in == 0 && mi && (mi = m_free(mi)) != NULL) { in DeflateInput()
274 state->cx.next_in = MBUF_CTOP(mi); in DeflateInput()
275 ilen += (state->cx.avail_in = mi->m_len); in DeflateInput()
280 if (state->cx.avail_out == 0) { in DeflateInput()
286 state->cx.next_out--; in DeflateInput()
287 state->cx.avail_out = DEFLATE_CHUNK_LEN-1; in DeflateInput()
289 state->cx.avail_out = DEFLATE_CHUNK_LEN-2; in DeflateInput()
295 state->cx.next_out = MBUF_CTOP(mo); in DeflateInput()
296 state->cx.avail_out = DEFLATE_CHUNK_LEN; in DeflateInput()
311 olen += (mo->m_len = DEFLATE_CHUNK_LEN - state->cx.avail_out); in DeflateInput()
328 state->cx.next_out = garbage; in DeflateInput()
329 state->cx.avail_out = sizeof garbage; in DeflateInput()
330 state->cx.next_in = EMPTY_BLOCK; in DeflateInput()
331 state->cx.avail_in = sizeof EMPTY_BLOCK; in DeflateInput()
332 inflate(&state->cx, Z_SYNC_FLUSH); in DeflateInput()
373 state->cx.next_in = rp; in DeflateDictSetup()
374 state->cx.avail_in = mi->m_len; in DeflateDictSetup()
375 state->cx.next_out = garbage; in DeflateDictSetup()
376 state->cx.avail_out = sizeof garbage; in DeflateDictSetup()
381 if ((res = inflate(&state->cx, flush)) != Z_OK) { in DeflateDictSetup()
387 res, state->cx.msg ? state->cx.msg : ""); in DeflateDictSetup()
389 state->cx.avail_in, state->cx.avail_out); in DeflateDictSetup()
395 if (flush == Z_SYNC_FLUSH && state->cx.avail_out != 0) in DeflateDictSetup()
398 if (state->cx.avail_in == 0 && mi && (mi = mi->m_next) != NULL) { in DeflateDictSetup()
400 state->cx.next_in = MBUF_CTOP(mi); in DeflateDictSetup()
401 state->cx.avail_in = mi->m_len; in DeflateDictSetup()
406 if (state->cx.avail_out == 0) { in DeflateDictSetup()
407 if (state->cx.avail_in == 0) in DeflateDictSetup()
421 state->cx.next_out = garbage; in DeflateDictSetup()
422 state->cx.avail_out = sizeof garbage; in DeflateDictSetup()
497 state->cx.zalloc = NULL; in DeflateInitInput()
498 state->cx.opaque = NULL; in DeflateInitInput()
499 state->cx.zfree = NULL; in DeflateInitInput()
500 state->cx.next_out = NULL; in DeflateInitInput()
501 if (inflateInit2(&state->cx, -state->winsize) == Z_OK) in DeflateInitInput()
520 state->cx.zalloc = NULL; in DeflateInitOutput()
521 state->cx.opaque = NULL; in DeflateInitOutput()
522 state->cx.zfree = NULL; in DeflateInitOutput()
523 state->cx.next_in = NULL; in DeflateInitOutput()
524 if (deflateInit2(&state->cx, Z_DEFAULT_COMPRESSION, 8, in DeflateInitOutput()
541 inflateEnd(&state->cx); in DeflateTermInput()
550 deflateEnd(&state->cx); in DeflateTermOutput()