Home
last modified time | relevance | path

Searched refs:fds_count (Results 1 – 20 of 20) sorted by relevance

/external/libwebsockets/lib/core-net/
Dpollfd.c72 assert(wsi->position_in_fds_table < (int)pt->fds_count); in _lws_change_pollfd()
253 lwsl_cx_warn(pt->context, "fds_count %u, %s", pt->fds_count, s); in __dump_fds()
255 for (n = 0; n < pt->fds_count; n++) { in __dump_fds()
281 wsi->tsi, wsi->desc.sockfd, pt->fds_count); in __insert_wsi_socket_into_fds()
283 if ((unsigned int)pt->fds_count >= context->fd_limit_per_thread) { in __insert_wsi_socket_into_fds()
319 wsi->position_in_fds_table = (int)pt->fds_count; in __insert_wsi_socket_into_fds()
324 pa.events = pt->fds[pt->fds_count].events; in __insert_wsi_socket_into_fds()
339 if ((unsigned int)pt->fds_count == context->fd_limit_per_thread - 1) in __insert_wsi_socket_into_fds()
395 assert(m == LWS_NO_FDS_POS || (m >= 0 && (unsigned int)m < pt->fds_count)); in __remove_wsi_socket_from_fds()
408 assert(pt->fds_count && (unsigned int)m != pt->fds_count); in __remove_wsi_socket_from_fds()
[all …]
Dadopt.c34 lwsl_cx_debug(context, "%d %d\n", context->pt[n].fds_count, in lws_get_idlest_tsi()
36 if ((unsigned int)context->pt[n].fds_count != in lws_get_idlest_tsi()
38 (unsigned int)context->pt[n].fds_count < lowest) { in lws_get_idlest_tsi()
39 lowest = context->pt[n].fds_count; in lws_get_idlest_tsi()
Droute.c357 for (n = 0; n < pt->fds_count; n++) { in _lws_route_pt_close_unroutable()
383 for (n = 0; n < pt->fds_count; n++) { in _lws_route_pt_close_route_users()
Dwsi.c173 for (n = 0; n < pt->fds_count; n++) { in lws_callback_all_protocol()
215 for (n = 0; n < pt->fds_count; n++) { in lws_callback_all_protocol_vhost_args()
479 for (n = 0; n < pt->fds_count; n++) { in lws_rx_flow_allow_all_protocol()
Dclose.c261 wsi->a.context->pt[(int)wsi->tsi].fds_count); in __lws_free_wsi()
Dprivate-lib-core-net.h364 unsigned int fds_count; member
Dvhost.c1224 while (n < pt->fds_count) {
/external/libwebsockets/lib/plat/windows/
Dwindows-service.c40 for (n = 0; n < (int)pt->fds_count; n++) { in _lws_plat_service_forced_tsi()
97 for (i = 0; i < pt->fds_count; ++i) { in _lws_plat_service_tsi()
160 int d = WSAPoll((WSAPOLLFD *)&pt->fds[0], pt->fds_count, (int)(timeout_us / LWS_US_PER_MS)); in _lws_plat_service_tsi()
162 …lwsl_err("%s: WSAPoll failed: count %d, err %d: %d\n", __func__, pt->fds_count, d, WSAGetLastError… in _lws_plat_service_tsi()
173 for (n = 0; n < (int)pt->fds_count; n++) in _lws_plat_service_tsi()
Dwindows-sockets.c200 pt->fds[pt->fds_count].events |= LWS_POLLIN; in lws_plat_insert_socket_into_fds()
207 pt->fds[pt->fds_count++].revents = 0; in lws_plat_insert_socket_into_fds()
209 lws_plat_change_pollfd(context, wsi, &pt->fds[pt->fds_count - 1]); in lws_plat_insert_socket_into_fds()
218 pt->fds_count--; in lws_plat_delete_socket_from_fds()
Dwindows-init.c117 pt->fds_count = 0; in lws_plat_init()
Dwindows-spawn.c74 if ((unsigned int)context->pt[tsi].fds_count == in lws_create_basic_wsi()
/external/libwebsockets/lib/plat/optee/
Dnetwork.c140 n = poll(pt->fds, pt->fds_count, timeout_us / LWS_US_PER_MS); in _lws_plat_service_tsi()
165 for (n = 0; n < (int)pt->fds_count && c; n++) { in _lws_plat_service_tsi()
226 pt->fds[pt->fds_count++].revents = 0; in lws_plat_insert_socket_into_fds()
235 pt->fds_count--; in lws_plat_delete_socket_from_fds()
/external/libwebsockets/lib/plat/freertos/
Dfreertos-fds.c32 pt->fds[pt->fds_count++].revents = 0; in lws_plat_insert_socket_into_fds()
41 pt->fds_count--; in lws_plat_delete_socket_from_fds()
Dfreertos-service.c138 for (n = 0; n < (int)pt->fds_count; n++) { in _lws_plat_service_tsi()
156 for (m = 0; m < (int)pt->fds_count; m++) { in _lws_plat_service_tsi()
197 for (n = 0; n < (int)pt->fds_count && c; n++) { in _lws_plat_service_tsi()
/external/libwebsockets/lib/plat/unix/
Dunix-fds.c243 pt->fds[pt->fds_count++].revents = 0; in lws_plat_insert_socket_into_fds()
256 pt->fds_count--; in lws_plat_delete_socket_from_fds()
Dunix-service.c45 for (n = 0; n < (int)pt->fds_count; n++) { in _lws_plat_service_forced_tsi()
152 n = poll(pt->fds, pt->fds_count, (int)timeout_us /* ms now */ ); in _lws_plat_service_tsi()
Dunix-init.c55 m = m | (int)pt->fds_count; in lws_sul_plat_unix()
Dunix-spawn.c80 if ((unsigned int)pt->fds_count == context->fd_limit_per_thread - 1) { in lws_create_stdwsi()
/external/libwebsockets/lib/roles/listen/
Dops-listen.c168 } while (pt->fds_count < context->fd_limit_per_thread - 1 && in rops_handle_POLLIN_listen()
/external/libwebsockets/lib/core/
Dcontext.c1846 while (pt->fds_count) { in lws_context_destroy()