Lines Matching refs:pmdrx
80 struct lws_ext_pm_deflate_rx_ebufs *pmdrx = in lws_extension_callback_pm_deflate() local
192 pmdrx->eb_in.len, priv->rx.avail_in); in lws_extension_callback_pm_deflate()
216 pmdrx->eb_out.len = 0; in lws_extension_callback_pm_deflate()
220 pmdrx->eb_in.len, priv->rx.avail_in, wsi->ws->final); in lws_extension_callback_pm_deflate()
248 if (priv->rx.avail_in && pmdrx->eb_in.token && in lws_extension_callback_pm_deflate()
249 pmdrx->eb_in.len) { in lws_extension_callback_pm_deflate()
255 if (!priv->rx.avail_in && pmdrx->eb_in.token && pmdrx->eb_in.len) { in lws_extension_callback_pm_deflate()
256 priv->rx.next_in = (unsigned char *)pmdrx->eb_in.token; in lws_extension_callback_pm_deflate()
257 priv->rx.avail_in = (uInt)pmdrx->eb_in.len; in lws_extension_callback_pm_deflate()
261 pmdrx->eb_out.token = priv->rx.next_out; in lws_extension_callback_pm_deflate()
311 pmdrx->eb_in.token = pmdrx->eb_in.token + in lws_extension_callback_pm_deflate()
312 ((unsigned int)pmdrx->eb_in.len - (unsigned int)priv->rx.avail_in); in lws_extension_callback_pm_deflate()
313 pmdrx->eb_in.len = (int)priv->rx.avail_in; in lws_extension_callback_pm_deflate()
353 pmdrx->eb_out.len = lws_ptr_diff(priv->rx.next_out, in lws_extension_callback_pm_deflate()
354 pmdrx->eb_out.token); in lws_extension_callback_pm_deflate()
355 priv->count_rx_between_fin = priv->count_rx_between_fin + (size_t)pmdrx->eb_out.len; in lws_extension_callback_pm_deflate()
359 pmdrx->eb_out.len, priv->rx.avail_in, in lws_extension_callback_pm_deflate()
412 if (pmdrx->eb_in.token) { in lws_extension_callback_pm_deflate()
416 priv->count_tx_between_fin = priv->count_tx_between_fin + (size_t)pmdrx->eb_in.len; in lws_extension_callback_pm_deflate()
419 pmdrx->eb_in.len, in lws_extension_callback_pm_deflate()
421 priv->tx.next_in = (unsigned char *)pmdrx->eb_in.token; in lws_extension_callback_pm_deflate()
422 priv->tx.avail_in = (uInt)pmdrx->eb_in.len; in lws_extension_callback_pm_deflate()
426 pmdrx->eb_out.token = priv->tx.next_out; in lws_extension_callback_pm_deflate()
464 pmdrx->eb_out.len = lws_ptr_diff(priv->tx.next_out, in lws_extension_callback_pm_deflate()
465 pmdrx->eb_out.token); in lws_extension_callback_pm_deflate()
468 pmdrx->eb_out.len < 4) { in lws_extension_callback_pm_deflate()
470 (int)pmdrx->eb_out.len); in lws_extension_callback_pm_deflate()
477 pmdrx->eb_out.len >= 4) { in lws_extension_callback_pm_deflate()
494 pmdrx->eb_in.token = pmdrx->eb_in.token + in lws_extension_callback_pm_deflate()
495 ((unsigned int)pmdrx->eb_in.len - (unsigned int)priv->tx.avail_in); in lws_extension_callback_pm_deflate()
496 pmdrx->eb_in.len = (int)priv->tx.avail_in; in lws_extension_callback_pm_deflate()
499 pmdrx->eb_out.len = lws_ptr_diff(priv->tx.next_out, in lws_extension_callback_pm_deflate()
500 pmdrx->eb_out.token); in lws_extension_callback_pm_deflate()
504 pmdrx->eb_in.len, pmdrx->eb_out.len, pen); in lws_extension_callback_pm_deflate()
506 if (pmdrx->eb_in.len || pen) in lws_extension_callback_pm_deflate()
525 …*pmdrx->eb_in.token = (unsigned char)((((unsigned char)*pmdrx->eb_in.token) & (unsigned char)~0xf)… in lws_extension_callback_pm_deflate()
534 n = *(pmdrx->eb_in.token) & 15; in lws_extension_callback_pm_deflate()
538 *pmdrx->eb_in.token |= 0x40; in lws_extension_callback_pm_deflate()
541 ((*pmdrx->eb_in.token) & 0xff), in lws_extension_callback_pm_deflate()
542 pmdrx->eb_in.len); in lws_extension_callback_pm_deflate()
544 if (((*pmdrx->eb_in.token) & 0x80) && /* fin */ in lws_extension_callback_pm_deflate()