Lines Matching refs:bits
65 uint8_t bits[INPUT_PROP_CNT / 8]; in print_input_props() local
72 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits); in print_input_props()
80 if (bits[i] & 1 << j) { in print_input_props()
97 uint8_t *bits = NULL; in print_possible_events() local
109 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events()
113 bits = realloc(bits, bits_size * 2); in print_possible_events()
114 if(bits == NULL) in print_possible_events()
120 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events()
137 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events()
142 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size); in print_possible_events()
147 res2 = ioctl(fd, EVIOCGSW(bits_size), bits + bits_size); in print_possible_events()
174 if(bits[j] & 1 << k) { in print_possible_events()
176 if(j < res2 && (bits[j + bits_size] & 1 << k)) in print_possible_events()
207 free(bits); in print_possible_events()