Lines Matching refs:w

51 static void uv__fs_event(uv_loop_t* loop, uv__io_t* w, unsigned int fflags);
173 uv__io_t* w; in uv__io_poll() local
203 w = uv__queue_data(q, uv__io_t, watcher_queue); in uv__io_poll()
204 assert(w->pevents != 0); in uv__io_poll()
205 assert(w->fd >= 0); in uv__io_poll()
206 assert(w->fd < (int) loop->nwatchers); in uv__io_poll()
208 if ((w->events & POLLIN) == 0 && (w->pevents & POLLIN) != 0) { in uv__io_poll()
213 if (w->cb == uv__fs_event) { in uv__io_poll()
220 EV_SET(events + nevents, w->fd, filter, op, fflags, 0, 0); in uv__io_poll()
229 if ((w->events & POLLOUT) == 0 && (w->pevents & POLLOUT) != 0) { in uv__io_poll()
230 EV_SET(events + nevents, w->fd, EVFILT_WRITE, EV_ADD, 0, 0, 0); in uv__io_poll()
239 if ((w->events & UV__POLLPRI) == 0 && (w->pevents & UV__POLLPRI) != 0) { in uv__io_poll()
240 EV_SET(events + nevents, w->fd, EV_OOBAND, EV_ADD, 0, 0, 0); in uv__io_poll()
249 w->events = w->pevents; in uv__io_poll()
362 w = loop->watchers[fd]; in uv__io_poll()
364 if (w == NULL) { in uv__io_poll()
371 assert(w->events == POLLIN); in uv__io_poll()
372 assert(w->pevents == POLLIN); in uv__io_poll()
374 w->cb(loop, w, ev->fflags); /* XXX always uv__fs_event() */ in uv__io_poll()
382 if (w->pevents & POLLIN) in uv__io_poll()
387 if ((ev->flags & EV_EOF) && (w->pevents & UV__POLLRDHUP)) in uv__io_poll()
392 if (w->pevents & UV__POLLPRI) in uv__io_poll()
399 if (w->pevents & POLLOUT) in uv__io_poll()
414 if (w == &loop->signal_io_watcher) { in uv__io_poll()
418 w->cb(loop, w, revents); in uv__io_poll()
494 static void uv__fs_event(uv_loop_t* loop, uv__io_t* w, unsigned int fflags) { in uv__fs_event() argument
504 handle = container_of(w, uv_fs_event_t, event_watcher); in uv__fs_event()
549 EV_SET(&ev, w->fd, EVFILT_VNODE, EV_ADD | EV_ONESHOT, fflags, 0, 0); in uv__fs_event()