Lines Matching refs:rx_ubuf_head
389 if (wsi->ws->rx_ubuf_head + LWS_PRE >= wsi->ws->rx_ubuf_alloc) { in lws_ws_rx_sm()
396 (wsi->ws->rx_ubuf_head++)] = c; in lws_ws_rx_sm()
399 (wsi->ws->rx_ubuf_head++)] = in lws_ws_rx_sm()
423 wsi->ws->rx_ubuf_head != wsi->a.context->pt_serv_buf_size) in lws_ws_rx_sm()
427 wsi->ws->rx_ubuf_head != wsi->a.protocol->rx_buffer_size) in lws_ws_rx_sm()
450 wsi->ws->rx_ubuf_head > 2 && in lws_ws_rx_sm()
452 wsi->ws->rx_ubuf_head - 2)) in lws_ws_rx_sm()
480 if (wsi->ws->rx_ubuf_head >= 2) { in lws_ws_rx_sm()
502 wsi->ws->rx_ubuf_head)) in lws_ws_rx_sm()
513 (int)wsi->ws->rx_ubuf_head); in lws_ws_rx_sm()
525 if (wsi->ws->rx_ubuf_head > 128 - 3) { in lws_ws_rx_sm()
533 wsi->ws->rx_ubuf_head); in lws_ws_rx_sm()
535 wsi->ws->pong_payload_len = (uint8_t)wsi->ws->rx_ubuf_head; in lws_ws_rx_sm()
541 wsi->ws->rx_ubuf_head = 0; in lws_ws_rx_sm()
547 wsi->ws->rx_ubuf_head); in lws_ws_rx_sm()
582 pmdrx.eb_in.len = (int)wsi->ws->rx_ubuf_head; in lws_ws_rx_sm()
737 wsi->ws->rx_ubuf_head = 0; in lws_ws_rx_sm()