Lines Matching refs:ebuf
944 struct lws_tokens ebuf; in rops_handle_POLLIN_ws() local
970 ebuf.token = NULL; in rops_handle_POLLIN_ws()
971 ebuf.len = 0; in rops_handle_POLLIN_ws()
1089 ebuf.len = (int)lws_buflist_next_segment_len(&wsi->buflist, in rops_handle_POLLIN_ws()
1090 &ebuf.token); in rops_handle_POLLIN_ws()
1091 if (ebuf.len) { in rops_handle_POLLIN_ws()
1092 lwsl_info("draining buflist (len %d)\n", ebuf.len); in rops_handle_POLLIN_ws()
1121 ebuf.token = pt->serv_buf; in rops_handle_POLLIN_ws()
1123 ebuf.len = (int)wsi->ws->rx_ubuf_alloc; in rops_handle_POLLIN_ws()
1125 ebuf.len = (int)wsi->a.context->pt_serv_buf_size; in rops_handle_POLLIN_ws()
1127 if ((unsigned int)ebuf.len > wsi->a.context->pt_serv_buf_size) in rops_handle_POLLIN_ws()
1128 ebuf.len = (int)wsi->a.context->pt_serv_buf_size; in rops_handle_POLLIN_ws()
1130 if ((int)pending > ebuf.len) in rops_handle_POLLIN_ws()
1131 pending = (unsigned int)ebuf.len; in rops_handle_POLLIN_ws()
1133 ebuf.len = lws_ssl_capable_read(wsi, ebuf.token, in rops_handle_POLLIN_ws()
1135 (unsigned int)ebuf.len)); in rops_handle_POLLIN_ws()
1136 switch (ebuf.len) { in rops_handle_POLLIN_ws()
1154 ebuf.len &= 0x7fffffff; in rops_handle_POLLIN_ws()
1175 if (ebuf.len > 0) { in rops_handle_POLLIN_ws()
1179 n = lws_read_h2(wsi, ebuf.token, in rops_handle_POLLIN_ws()
1180 (unsigned int)ebuf.len); in rops_handle_POLLIN_ws()
1183 n = lws_read_h1(wsi, ebuf.token, in rops_handle_POLLIN_ws()
1184 (unsigned int)ebuf.len); in rops_handle_POLLIN_ws()
1192 if (ebuf.len < 0 || in rops_handle_POLLIN_ws()
1193 lws_buflist_aware_finished_consuming(wsi, &ebuf, n, in rops_handle_POLLIN_ws()
1198 ebuf.token = NULL; in rops_handle_POLLIN_ws()
1199 ebuf.len = 0; in rops_handle_POLLIN_ws()