Lines Matching defs:cx
67 z_stream cx; /* compression context */
246 deflateEnd(&priv->cx);
248 inflateEnd(&priv->cx);
256 priv->cx.next_in = NULL;
257 priv->cx.zalloc = z_alloc;
258 priv->cx.zfree = z_free;
261 if ((res = deflateInit2(&priv->cx,
267 res, priv->cx.msg);
272 if ((res = inflateInit2(&priv->cx,
276 res, priv->cx.msg);
383 deflateEnd(&priv->cx);
385 inflateEnd(&priv->cx);
405 deflateEnd(&priv->cx);
407 inflateEnd(&priv->cx);
478 priv->cx.next_in = priv->inbuf;
479 priv->cx.avail_in = inlen;
481 priv->cx.next_in = priv->inbuf + 1; /* compress protocol */
482 priv->cx.avail_in = inlen - 1;
484 priv->cx.next_out = priv->outbuf + 2 + DEFLATE_HDRLEN;
485 priv->cx.avail_out = outlen - 2 - DEFLATE_HDRLEN;
488 rtn = deflate(&priv->cx, Z_PACKET_FLUSH);
494 rtn, priv->cx.msg);
500 outlen -= priv->cx.avail_out;
599 priv->cx.next_in = priv->inbuf + offset;
600 priv->cx.avail_in = inlen - offset;
602 priv->cx.next_out = priv->outbuf + 1;
603 priv->cx.avail_out = outlen - 1;
606 rtn = inflate(&priv->cx, Z_PACKET_FLUSH);
614 __func__, rtn, priv->cx.msg);
627 outlen -= priv->cx.avail_out;
653 priv->cx.next_in = priv->inbuf + 1; /* compress protocol */
654 priv->cx.avail_in = inlen - 1;
656 priv->cx.next_in = priv->inbuf;
657 priv->cx.avail_in = inlen;
660 rtn = inflateIncomp(&priv->cx);
666 __func__, rtn, priv->cx.msg);
694 deflateReset(&priv->cx);
696 inflateReset(&priv->cx);