Lines Matching defs:fdi
98 #define FDI_HAS_READ(fdi) ((fdi)->fdi_what & EV_READ)
99 #define FDI_HAS_WRITE(fdi) ((fdi)->fdi_what & EV_WRITE)
100 #define FDI_HAS_EVENTS(fdi) (FDI_HAS_READ(fdi) || FDI_HAS_WRITE(fdi))
101 #define FDI_TO_SYSEVENTS(fdi) (FDI_HAS_READ(fdi) ? POLLIN : 0) | \
102 (FDI_HAS_WRITE(fdi) ? POLLOUT : 0)
110 /* fdi's that we need to reassoc */
289 struct fd_info *fdi = NULL;
294 fdi = evmap_io_get_fdinfo_(&base->io, fd);
297 if (fdi != NULL && FDI_HAS_EVENTS(fdi)) {
298 reassociate(epdp, fdi, fd);
300 fdi->pending_idx_plus_1 = 0;
328 struct fd_info *fdi = pevt->portev_user;
329 /*EVUTIL_ASSERT(evmap_io_get_fdinfo_(&base->io, fd) == fdi);*/
334 fdi->pending_idx_plus_1 = i + 1;
382 struct fd_info *fdi = p;
386 fdi->fdi_what |= events;
388 return reassociate(evpd, fdi, fd);
399 struct fd_info *fdi = p;
400 int associated = ! fdi->pending_idx_plus_1;
404 fdi->fdi_what &= ~(events &(EV_READ|EV_WRITE));
407 if (!FDI_HAS_EVENTS(fdi) &&
418 if (FDI_HAS_EVENTS(fdi)) {
419 return (reassociate(evpd, fdi, fd));
423 if ((fdi->fdi_what & (EV_READ|EV_WRITE)) == 0) {
424 const int i = fdi->pending_idx_plus_1 - 1;
427 fdi->pending_idx_plus_1 = 0;