Searched refs:n_events (Results 1 – 2 of 2) sorted by relevance
/drivers/input/keyboard/ |
D | gpio_keys.c | 188 int n_events = get_n_events_by_type(type); in gpio_keys_attr_show_helper() local 193 bits = kcalloc(BITS_TO_LONGS(n_events), sizeof(*bits), GFP_KERNEL); in gpio_keys_attr_show_helper() 209 ret = scnprintf(buf, PAGE_SIZE - 1, "%*pbl", n_events, bits); in gpio_keys_attr_show_helper() 231 int n_events = get_n_events_by_type(type); in gpio_keys_attr_store_helper() local 237 bits = kcalloc(BITS_TO_LONGS(n_events), sizeof(*bits), GFP_KERNEL); in gpio_keys_attr_store_helper() 241 error = bitmap_parselist(buf, bits, n_events); in gpio_keys_attr_store_helper() 246 if (!bitmap_subset(bits, bitmap, n_events)) { in gpio_keys_attr_store_helper()
|
/drivers/input/ |
D | evdev.c | 479 unsigned int n_events = in evdev_compute_buffer_size() local 483 return roundup_pow_of_two(n_events); in evdev_compute_buffer_size()
|