Lines Matching full:cx

66 	z_stream 	cx;			/* compression context */  member
241 deflateEnd(&priv->cx); in ng_deflate_rcvmsg()
243 inflateEnd(&priv->cx); in ng_deflate_rcvmsg()
251 priv->cx.next_in = NULL; in ng_deflate_rcvmsg()
254 if ((res = deflateInit2(&priv->cx, in ng_deflate_rcvmsg()
260 res, priv->cx.msg); in ng_deflate_rcvmsg()
265 if ((res = inflateInit2(&priv->cx, in ng_deflate_rcvmsg()
269 res, priv->cx.msg); in ng_deflate_rcvmsg()
375 deflateEnd(&priv->cx); in ng_deflate_shutdown()
377 inflateEnd(&priv->cx); in ng_deflate_shutdown()
397 deflateEnd(&priv->cx); in ng_deflate_disconnect()
399 inflateEnd(&priv->cx); in ng_deflate_disconnect()
452 priv->cx.next_in = priv->inbuf; in ng_deflate_compress()
453 priv->cx.avail_in = inlen; in ng_deflate_compress()
455 priv->cx.next_in = priv->inbuf + 1; /* compress protocol */ in ng_deflate_compress()
456 priv->cx.avail_in = inlen - 1; in ng_deflate_compress()
458 priv->cx.next_out = priv->outbuf + 2 + DEFLATE_HDRLEN; in ng_deflate_compress()
459 priv->cx.avail_out = outlen - 2 - DEFLATE_HDRLEN; in ng_deflate_compress()
462 rtn = deflate(&priv->cx, Z_SYNC_FLUSH); in ng_deflate_compress()
468 rtn, priv->cx.msg); in ng_deflate_compress()
474 outlen -= priv->cx.avail_out; in ng_deflate_compress()
588 priv->cx.next_in = priv->inbuf + offset; in ng_deflate_decompress()
589 priv->cx.avail_in = inlen - offset; in ng_deflate_decompress()
591 priv->cx.next_out = priv->outbuf + 1; in ng_deflate_decompress()
592 priv->cx.avail_out = outlen - 1; in ng_deflate_decompress()
595 rtn = inflate(&priv->cx, Z_SYNC_FLUSH); in ng_deflate_decompress()
603 __func__, rtn, priv->cx.msg); in ng_deflate_decompress()
616 if (inflateSyncPoint(&priv->cx)) { in ng_deflate_decompress()
617 priv->cx.avail_in = 4; in ng_deflate_decompress()
618 priv->cx.next_in = EMPTY_BLOCK; in ng_deflate_decompress()
619 inflate(&priv->cx, Z_SYNC_FLUSH); in ng_deflate_decompress()
623 outlen -= priv->cx.avail_out; in ng_deflate_decompress()
660 priv->cx.next_in = headbuf; in ng_deflate_decompress()
661 priv->cx.avail_in = sizeof(headbuf); in ng_deflate_decompress()
662 priv->cx.next_out = priv->outbuf; in ng_deflate_decompress()
663 priv->cx.avail_out = DEFLATE_BUF_SIZE; in ng_deflate_decompress()
665 rtn = inflate(&priv->cx, Z_NO_FLUSH); in ng_deflate_decompress()
668 priv->cx.next_in = in ng_deflate_decompress()
670 priv->cx.avail_in = inlen - 1; in ng_deflate_decompress()
672 priv->cx.next_in = priv->inbuf; in ng_deflate_decompress()
673 priv->cx.avail_in = inlen; in ng_deflate_decompress()
675 priv->cx.next_out = priv->outbuf; in ng_deflate_decompress()
676 priv->cx.avail_out = DEFLATE_BUF_SIZE; in ng_deflate_decompress()
678 rtn = inflate(&priv->cx, Z_SYNC_FLUSH); in ng_deflate_decompress()
684 __func__, rtn, priv->cx.msg); in ng_deflate_decompress()
712 deflateReset(&priv->cx); in ng_deflate_reset_req()
714 inflateReset(&priv->cx); in ng_deflate_reset_req()