Lines Matching refs:ev_fdinfo
46 static fd_info ev_fdinfo[MAX_DEVICES + MAX_MISC_FDS]; variable
89 ev.data.ptr = &ev_fdinfo[ev_count]; in ev_init()
96 ev_fdinfo[ev_count].fd = fd; in ev_init()
97 ev_fdinfo[ev_count].cb = input_cb; in ev_init()
98 ev_fdinfo[ev_count].data = data; in ev_init()
127 ev.data.ptr = (void *)&ev_fdinfo[ev_count]; in ev_add_fd()
130 ev_fdinfo[ev_count].fd = fd; in ev_add_fd()
131 ev_fdinfo[ev_count].cb = cb; in ev_add_fd()
132 ev_fdinfo[ev_count].data = data; in ev_add_fd()
142 close(ev_fdinfo[--ev_count].fd); in ev_exit()
185 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_sync_key_state()
191 if (ioctl(ev_fdinfo[i].fd, EVIOCGKEY(sizeof(key_bits)), key_bits) == -1) { in ev_sync_key_state()
214 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_iterate_available_keys()
221 int rc = ioctl(ev_fdinfo[i].fd, EVIOCGBIT(EV_KEY, KEY_MAX), key_bits); in ev_iterate_available_keys()