Lines Matching refs:ev_fdinfo
53 static FdInfo ev_fdinfo[MAX_DEVICES + MAX_MISC_FDS]; variable
101 ev.data.ptr = &ev_fdinfo[g_ev_count]; in ev_init()
107 ev_fdinfo[g_ev_count].fd.reset(fd.release()); in ev_init()
108 ev_fdinfo[g_ev_count].cb = input_cb; in ev_init()
133 ev.data.ptr = static_cast<void*>(&ev_fdinfo[g_ev_count]); in ev_add_fd()
136 ev_fdinfo[g_ev_count].fd.reset(fd.release()); in ev_add_fd()
137 ev_fdinfo[g_ev_count].cb = std::move(cb); in ev_add_fd()
147 ev_fdinfo[--g_ev_count].fd.reset(); in ev_exit()
191 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_sync_key_state()
197 if (ioctl(ev_fdinfo[i].fd, EVIOCGKEY(sizeof(key_bits)), key_bits) == -1) { in ev_sync_key_state()
221 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_iterate_available_keys()
228 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(EV_KEY, KEY_MAX), key_bits) == -1) { in ev_iterate_available_keys()
244 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_iterate_touch_inputs()
252 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(EV_ABS, KEY_MAX), key_bits) == -1) { in ev_iterate_touch_inputs()