Lines Matching refs:w
821 uv__io_t* w; in uv__io_poll() local
844 w = uv__queue_data(q, uv__io_t, watcher_queue); in uv__io_poll()
846 assert(w->pevents != 0); in uv__io_poll()
847 assert(w->fd >= 0); in uv__io_poll()
849 stream= container_of(w, uv_stream_t, io_watcher); in uv__io_poll()
851 assert(w->fd < (int) loop->nwatchers); in uv__io_poll()
853 e.events = w->pevents; in uv__io_poll()
854 e.fd = w->fd; in uv__io_poll()
856 if (w->events == 0) in uv__io_poll()
864 if (epoll_ctl(loop->ep, op, w->fd, &e)) { in uv__io_poll()
871 if (epoll_ctl(loop->ep, EPOLL_CTL_MOD, w->fd, &e)) in uv__io_poll()
875 w->events = w->pevents; in uv__io_poll()
981 w = loop->watchers[fd]; in uv__io_poll()
983 if (w == NULL) { in uv__io_poll()
998 pe->events &= w->pevents | POLLERR | POLLHUP; in uv__io_poll()
1001 pe->events |= w->pevents & (POLLIN | POLLOUT); in uv__io_poll()
1007 if (w == &loop->signal_io_watcher) { in uv__io_poll()
1011 w->cb(loop, w, pe->events); in uv__io_poll()