Lines Matching refs:epe
90 struct epoll_event epe; in eloop_event_add() local
96 memset(&epe, 0, sizeof(epe)); in eloop_event_add()
97 epe.data.fd = fd; in eloop_event_add()
98 epe.events = EPOLLIN; in eloop_event_add()
100 epe.events |= EPOLLOUT; in eloop_event_add()
120 epe.data.ptr = e; in eloop_event_add()
122 fd, &epe); in eloop_event_add()
175 epe.data.ptr = e; in eloop_event_add()
176 if (epoll_ctl(ctx->poll_fd, EPOLL_CTL_ADD, fd, &epe) == -1) in eloop_event_add()
206 struct epoll_event epe; in eloop_event_delete() local
222 memset(&epe, 0, sizeof(epe)); in eloop_event_delete()
223 epe.data.fd = e->fd; in eloop_event_delete()
224 epe.data.ptr = e; in eloop_event_delete()
225 epe.events = EPOLLIN; in eloop_event_delete()
227 fd, &epe); in eloop_event_delete()
399 struct epoll_event epe; in eloop_requeue() local
441 memset(&epe, 0, sizeof(epe)); in eloop_requeue()
442 epe.data.fd = e->fd; in eloop_requeue()
443 epe.events = EPOLLIN; in eloop_requeue()
445 epe.events |= EPOLLOUT; in eloop_requeue()
446 epe.data.ptr = e; in eloop_requeue()
447 if (epoll_ctl(ctx->poll_fd, EPOLL_CTL_ADD, e->fd, &epe) == -1) in eloop_requeue()
532 struct epoll_event epe; in eloop_start() local
581 n = epoll_pwait(ctx->poll_fd, &epe, 1, timeout, in eloop_start()
584 n = epoll_wait(ctx->poll_fd, &epe, 1, timeout); in eloop_start()
624 e = (struct eloop_event *)epe.data.ptr; in eloop_start()
625 if (epe.events & EPOLLOUT && e->write_cb) { in eloop_start()
629 if (epe.events & in eloop_start()