Lines Matching refs:rx_packet_length
259 wsi->ws->rx_packet_length = c & 0x7f; in lws_ws_rx_sm()
266 if (wsi->ws->rx_packet_length) { in lws_ws_rx_sm()
278 wsi->ws->rx_packet_length = (size_t)(c << 8); in lws_ws_rx_sm()
283 wsi->ws->rx_packet_length |= c; in lws_ws_rx_sm()
300 wsi->ws->rx_packet_length = ((size_t)c) << 56; in lws_ws_rx_sm()
302 wsi->ws->rx_packet_length = 0; in lws_ws_rx_sm()
309 wsi->ws->rx_packet_length |= ((size_t)c) << 48; in lws_ws_rx_sm()
316 wsi->ws->rx_packet_length |= ((size_t)c) << 40; in lws_ws_rx_sm()
323 wsi->ws->rx_packet_length |= ((size_t)c) << 32; in lws_ws_rx_sm()
329 wsi->ws->rx_packet_length |= ((size_t)c) << 24; in lws_ws_rx_sm()
334 wsi->ws->rx_packet_length |= ((size_t)c) << 16; in lws_ws_rx_sm()
339 wsi->ws->rx_packet_length |= ((size_t)c) << 8; in lws_ws_rx_sm()
344 wsi->ws->rx_packet_length |= ((size_t)c); in lws_ws_rx_sm()
379 if (wsi->ws->rx_packet_length == 0) { in lws_ws_rx_sm()
402 --wsi->ws->rx_packet_length; in lws_ws_rx_sm()
405 if (!wsi->ws->rx_packet_length) { in lws_ws_rx_sm()
670 if (!wsi->ws->rx_packet_length && in lws_ws_rx_sm()
754 return wsi->ws->rx_packet_length; in lws_remaining_packet_payload()
875 wsi->ws->final, (long)wsi->ws->rx_packet_length, in lws_is_final_fragment()
877 return wsi->ws->final && !wsi->ws->rx_packet_length && in lws_is_final_fragment()
880 return wsi->ws->final && !wsi->ws->rx_packet_length; in lws_is_final_fragment()