Lines Matching refs:ev
175 epoll_event ev; in ev_init() local
176 ev.events = EPOLLIN | EPOLLWAKEUP; in ev_init()
177 ev.data.ptr = &ev_fdinfo[g_ev_count]; in ev_init()
178 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { in ev_init()
212 epoll_event ev; in ev_add_fd() local
213 ev.events = EPOLLIN | EPOLLWAKEUP; in ev_add_fd()
214 ev.data.ptr = static_cast<void*>(&ev_fdinfo[g_ev_count]); in ev_add_fd()
215 int ret = epoll_ctl(g_epoll_fd, EPOLL_CTL_ADD, fd, &ev); in ev_add_fd()
254 int ev_get_input(int fd, uint32_t epevents, input_event* ev) { in ev_get_input() argument
256 ssize_t r = TEMP_FAILURE_RETRY(read(fd, ev, sizeof(*ev))); in ev_get_input()
257 if (r == sizeof(*ev)) { in ev_get_input()