/linux-6.3-rc2/drivers/hid/ |
A D | hid-elecom.c | 42 int nbuttons) in mouse_button_fixup() argument 50 nbuttons = clamp(nbuttons, 0, MOUSE_BUTTONS_MAX); in mouse_button_fixup() 51 rdesc[button_bit_count + 1] = nbuttons; in mouse_button_fixup() 52 rdesc[button_usage_maximum + 1] = nbuttons; in mouse_button_fixup() 53 rdesc[padding_bit + 1] = MOUSE_BUTTONS_MAX - nbuttons; in mouse_button_fixup()
|
/linux-6.3-rc2/drivers/input/keyboard/ |
A D | gpio_keys_polled.c | 96 for (i = 0; i < pdata->nbuttons; i++) { in gpio_keys_polled_poll() 148 int nbuttons; in gpio_keys_polled_get_devtree_pdata() local 150 nbuttons = device_get_child_node_count(dev); in gpio_keys_polled_get_devtree_pdata() 151 if (nbuttons == 0) in gpio_keys_polled_get_devtree_pdata() 154 pdata = devm_kzalloc(dev, sizeof(*pdata) + nbuttons * sizeof(*button), in gpio_keys_polled_get_devtree_pdata() 162 pdata->nbuttons = nbuttons; in gpio_keys_polled_get_devtree_pdata() 207 for (i = 0; i < pdata->nbuttons; i++) { in gpio_keys_polled_set_abs_params() 249 bdev = devm_kzalloc(dev, struct_size(bdev, data, pdata->nbuttons), in gpio_keys_polled_probe() 279 for (i = 0; i < pdata->nbuttons; i++) { in gpio_keys_polled_probe() 370 for (i = 0; i < pdata->nbuttons; i++) in gpio_keys_polled_probe()
|
A D | gpio_keys.c | 210 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_show_helper() 264 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_store_helper() 279 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_store_helper() 686 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_report_state() 734 int nbuttons; in gpio_keys_get_devtree_pdata() local 736 nbuttons = device_get_child_node_count(dev); in gpio_keys_get_devtree_pdata() 737 if (nbuttons == 0) in gpio_keys_get_devtree_pdata() 749 pdata->nbuttons = nbuttons; in gpio_keys_get_devtree_pdata() 855 input->keycodemax = pdata->nbuttons; in gpio_keys_probe() 861 for (i = 0; i < pdata->nbuttons; i++) { in gpio_keys_probe() [all …]
|
A D | qt1050.c | 345 int nbuttons; in qt1050_parse_fw() local 347 nbuttons = device_get_child_node_count(dev); in qt1050_parse_fw() 348 if (nbuttons == 0 || nbuttons > QT1050_MAX_KEYS) in qt1050_parse_fw()
|
A D | tca6416-keypad.c | 219 chip = kzalloc(struct_size(chip, buttons, pdata->nbuttons), GFP_KERNEL); in tca6416_keypad_probe() 250 for (i = 0; i < pdata->nbuttons; i++) { in tca6416_keypad_probe()
|
/linux-6.3-rc2/include/linux/ |
A D | tca6416_keypad.h | 24 int nbuttons; member
|
A D | gpio_keys.h | 52 int nbuttons; member
|
/linux-6.3-rc2/arch/mips/bcm47xx/ |
A D | buttons.c | 502 size_t nbuttons) in bcm47xx_buttons_copy() argument 504 size_t size = nbuttons * sizeof(*buttons); in bcm47xx_buttons_copy() 509 bcm47xx_button_pdata.nbuttons = nbuttons; in bcm47xx_buttons_copy()
|
/linux-6.3-rc2/arch/x86/platform/geode/ |
A D | geos.c | 42 .nbuttons = ARRAY_SIZE(geos_gpio_buttons),
|
A D | net5501.c | 44 .nbuttons = ARRAY_SIZE(net5501_gpio_buttons),
|
A D | alix.c | 58 .nbuttons = ARRAY_SIZE(alix_gpio_buttons),
|
/linux-6.3-rc2/arch/sh/boards/mach-rsk/ |
A D | devices-rsk7203.c | 107 .nbuttons = ARRAY_SIZE(rsk7203_gpio_keys_table),
|
/linux-6.3-rc2/drivers/mfd/ |
A D | ucb1x00-assabet.c | 56 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
|
A D | rohm-bd718x7.c | 29 .nbuttons = 1,
|
/linux-6.3-rc2/arch/arm/mach-orion5x/ |
A D | dns323-setup.c | 329 .nbuttons = ARRAY_SIZE(dns323ab_buttons), 343 .nbuttons = ARRAY_SIZE(dns323c_buttons),
|
A D | mv2120-setup.c | 94 .nbuttons = ARRAY_SIZE(mv2120_buttons),
|
A D | ts409-setup.c | 225 .nbuttons = ARRAY_SIZE(qnap_ts409_buttons),
|
A D | ts209-setup.c | 219 .nbuttons = ARRAY_SIZE(qnap_ts209_buttons),
|
A D | net2big-setup.c | 325 .nbuttons = ARRAY_SIZE(net2big_buttons),
|
/linux-6.3-rc2/drivers/platform/x86/ |
A D | meraki-mx100.c | 134 .nbuttons = ARRAY_SIZE(tink_buttons),
|
A D | pcengines-apuv2.c | 116 .nbuttons = ARRAY_SIZE(apu2_keys_buttons),
|
/linux-6.3-rc2/arch/sh/boards/mach-x3proto/ |
A D | setup.c | 198 .nbuttons = ARRAY_SIZE(baseboard_buttons),
|
/linux-6.3-rc2/arch/mips/alchemy/ |
A D | board-mtx1.c | 93 .nbuttons = ARRAY_SIZE(mtx1_gpio_button),
|
/linux-6.3-rc2/arch/arm/mach-sa1100/ |
A D | h3xxx.c | 191 .nbuttons = ARRAY_SIZE(h3xxx_button_table),
|
A D | collie.c | 252 .nbuttons = ARRAY_SIZE(collie_gpio_keys),
|