Lines Matching refs:epdp
211 grow(struct evport_data *epdp, int factor) in grow() argument
214 int oldsize = epdp->ed_nevents; in grow()
218 check_evportop(epdp); in grow()
220 tmp = mm_realloc(epdp->ed_fds, sizeof(struct fd_info) * newsize); in grow()
223 epdp->ed_fds = tmp; in grow()
224 memset((char*) (epdp->ed_fds + oldsize), 0, in grow()
226 epdp->ed_nevents = newsize; in grow()
228 check_evportop(epdp); in grow()
239 reassociate(struct evport_data *epdp, struct fd_info *fdip, int fd) in reassociate() argument
244 if (port_associate(epdp->ed_port, PORT_SOURCE_FD, in reassociate()
251 check_evportop(epdp); in reassociate()
265 struct evport_data *epdp = base->evbase; in evport_dispatch() local
296 if (epdp->ed_pending[i] != -1) { in evport_dispatch()
297 fdi = &(epdp->ed_fds[epdp->ed_pending[i]]); in evport_dispatch()
301 int fd = epdp->ed_pending[i]; in evport_dispatch()
302 reassociate(epdp, fdi, fd); in evport_dispatch()
303 epdp->ed_pending[i] = -1; in evport_dispatch()
309 res = port_getn(epdp->ed_port, pevtlist, EVENTS_PER_GETN, in evport_dispatch()
333 check_evportop(epdp); in evport_dispatch()
335 epdp->ed_pending[i] = fd; in evport_dispatch()
357 EVUTIL_ASSERT(epdp->ed_nevents > fd); in evport_dispatch()
358 fdi = &(epdp->ed_fds[fd]); in evport_dispatch()
363 check_evportop(epdp); in evport_dispatch()