Lines Matching refs:fdi
2269 nfds_t fdi; in lwip_pollscan() local
2274 for (fdi = 0; fdi < nfds; fdi++) { in lwip_pollscan()
2276 fds[fdi].revents = 0; in lwip_pollscan()
2283 if (fds[fdi].fd >= 0 && (fds[fdi].revents & POLLNVAL) == 0) { in lwip_pollscan()
2286 sock = tryget_socket_unconn_locked(fds[fdi].fd); in lwip_pollscan()
2315 if ((fds[fdi].events & POLLIN) != 0 && ((lastdata != NULL) || (rcvevent > 0))) { in lwip_pollscan()
2316 fds[fdi].revents |= POLLIN; in lwip_pollscan()
2317 LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_pollscan: fd=%d ready for reading\n", fds[fdi].fd)); in lwip_pollscan()
2320 if ((fds[fdi].events & POLLOUT) != 0 && (sendevent != 0)) { in lwip_pollscan()
2321 fds[fdi].revents |= POLLOUT; in lwip_pollscan()
2322 LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_pollscan: fd=%d ready for writing\n", fds[fdi].fd)); in lwip_pollscan()
2327 fds[fdi].revents |= POLLERR; in lwip_pollscan()
2328 LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_pollscan: fd=%d ready for exception\n", fds[fdi].fd)); in lwip_pollscan()
2334 fds[fdi].revents |= POLLNVAL; in lwip_pollscan()
2341 if (fds[fdi].revents != 0) { in lwip_pollscan()
2359 nfds_t fdi; in lwip_poll_inc_sockets_used() local
2363 for (fdi = 0; fdi < nfds; fdi++) { in lwip_poll_inc_sockets_used()
2365 tryget_socket_unconn(fds[fdi].fd); in lwip_poll_inc_sockets_used()
2374 nfds_t fdi; in lwip_poll_dec_sockets_used() local
2378 for (fdi = 0; fdi < nfds; fdi++) { in lwip_poll_dec_sockets_used()
2379 struct lwip_sock *sock = tryget_socket_unconn_nouse(fds[fdi].fd); in lwip_poll_dec_sockets_used()
2513 nfds_t fdi; in lwip_poll_should_wake() local
2514 for (fdi = 0; fdi < scb->poll_nfds; fdi++) { in lwip_poll_should_wake()
2515 const struct pollfd *pollfd = &scb->poll_fds[fdi]; in lwip_poll_should_wake()