Lines Matching defs:cx
66 z_stream cx; /* compression context */
245 deflateEnd(&priv->cx);
247 inflateEnd(&priv->cx);
255 priv->cx.next_in = NULL;
256 priv->cx.zalloc = z_alloc;
257 priv->cx.zfree = z_free;
260 if ((res = deflateInit2(&priv->cx,
266 res, priv->cx.msg);
271 if ((res = inflateInit2(&priv->cx,
275 res, priv->cx.msg);
382 deflateEnd(&priv->cx);
384 inflateEnd(&priv->cx);
404 deflateEnd(&priv->cx);
406 inflateEnd(&priv->cx);
477 priv->cx.next_in = priv->inbuf;
478 priv->cx.avail_in = inlen;
480 priv->cx.next_in = priv->inbuf + 1; /* compress protocol */
481 priv->cx.avail_in = inlen - 1;
483 priv->cx.next_out = priv->outbuf + 2 + DEFLATE_HDRLEN;
484 priv->cx.avail_out = outlen - 2 - DEFLATE_HDRLEN;
487 rtn = deflate(&priv->cx, Z_PACKET_FLUSH);
493 rtn, priv->cx.msg);
499 outlen -= priv->cx.avail_out;
598 priv->cx.next_in = priv->inbuf + offset;
599 priv->cx.avail_in = inlen - offset;
601 priv->cx.next_out = priv->outbuf + 1;
602 priv->cx.avail_out = outlen - 1;
605 rtn = inflate(&priv->cx, Z_PACKET_FLUSH);
613 __func__, rtn, priv->cx.msg);
626 outlen -= priv->cx.avail_out;
652 priv->cx.next_in = priv->inbuf + 1; /* compress protocol */
653 priv->cx.avail_in = inlen - 1;
655 priv->cx.next_in = priv->inbuf;
656 priv->cx.avail_in = inlen;
659 rtn = inflateIncomp(&priv->cx);
665 __func__, rtn, priv->cx.msg);
693 deflateReset(&priv->cx);
695 inflateReset(&priv->cx);