Lines Matching refs:fdi
102 #define FDI_HAS_READ(fdi) ((fdi)->fdi_what & EV_READ) argument
103 #define FDI_HAS_WRITE(fdi) ((fdi)->fdi_what & EV_WRITE) argument
104 #define FDI_HAS_EVENTS(fdi) (FDI_HAS_READ(fdi) || FDI_HAS_WRITE(fdi)) argument
105 #define FDI_TO_SYSEVENTS(fdi) (FDI_HAS_READ(fdi) ? POLLIN : 0) | \ argument
106 (FDI_HAS_WRITE(fdi) ? POLLOUT : 0)
295 struct fd_info *fdi = NULL; in evport_dispatch() local
297 fdi = &(epdp->ed_fds[epdp->ed_pending[i]]); in evport_dispatch()
300 if (fdi != NULL && FDI_HAS_EVENTS(fdi)) { in evport_dispatch()
302 reassociate(epdp, fdi, fd); in evport_dispatch()
329 struct fd_info *fdi; in evport_dispatch() local
358 fdi = &(epdp->ed_fds[fd]); in evport_dispatch()
378 struct fd_info *fdi; in evport_add() local
398 fdi = &evpd->ed_fds[fd]; in evport_add()
399 fdi->fdi_what |= events; in evport_add()
401 return reassociate(evpd, fdi, fd); in evport_add()
412 struct fd_info *fdi; in evport_del() local
430 fdi = &evpd->ed_fds[fd]; in evport_del()
432 fdi->fdi_what &= ~EV_READ; in evport_del()
434 fdi->fdi_what &= ~EV_WRITE; in evport_del()
437 if (!FDI_HAS_EVENTS(fdi) && in evport_del()
448 if (FDI_HAS_EVENTS(fdi)) { in evport_del()
449 return (reassociate(evpd, fdi, fd)); in evport_del()
453 if ((fdi->fdi_what & (EV_READ|EV_WRITE)) == 0) { in evport_del()