Home
last modified time | relevance | path

Searched refs:ev_bits (Results 1 – 1 of 1) sorted by relevance

/bootable/recovery/minui/
Devents.c57 unsigned long ev_bits[BITS_TO_LONGS(EV_MAX)]; in ev_init() local
65 if (ioctl(fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) < 0) { in ev_init()
72 if (!test_bit(EV_KEY, ev_bits) && !test_bit(EV_REL, ev_bits)) { in ev_init()
150 unsigned long ev_bits[BITS_TO_LONGS(EV_MAX)]; in ev_sync_key_state() local
158 memset(ev_bits, 0, sizeof(ev_bits)); in ev_sync_key_state()
160 ret = ioctl(ev_fds[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits); in ev_sync_key_state()
161 if (ret < 0 || !test_bit(EV_KEY, ev_bits)) in ev_sync_key_state()