/linux-6.1.9/drivers/hid/ |
D | hid-elecom.c | 41 int nbuttons) in mouse_button_fixup() argument 49 nbuttons = clamp(nbuttons, 0, MOUSE_BUTTONS_MAX); in mouse_button_fixup() 50 rdesc[button_bit_count + 1] = nbuttons; in mouse_button_fixup() 51 rdesc[button_usage_maximum + 1] = nbuttons; in mouse_button_fixup() 52 rdesc[padding_bit + 1] = MOUSE_BUTTONS_MAX - nbuttons; in mouse_button_fixup()
|
/linux-6.1.9/drivers/input/keyboard/ |
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()
|
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() 741 sizeof(*pdata) + nbuttons * sizeof(*button), in gpio_keys_get_devtree_pdata() 749 pdata->nbuttons = nbuttons; in gpio_keys_get_devtree_pdata() 816 ddata = devm_kzalloc(dev, struct_size(ddata, data, pdata->nbuttons), in gpio_keys_probe() [all …]
|
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()
|
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.1.9/include/linux/ |
D | tca6416_keypad.h | 24 int nbuttons; member
|
D | gpio_keys.h | 52 int nbuttons; member
|
/linux-6.1.9/arch/mips/bcm47xx/ |
D | buttons.c | 496 size_t nbuttons) in bcm47xx_buttons_copy() argument 498 size_t size = nbuttons * sizeof(*buttons); in bcm47xx_buttons_copy() 503 bcm47xx_button_pdata.nbuttons = nbuttons; in bcm47xx_buttons_copy()
|
/linux-6.1.9/arch/arm/mach-pxa/ |
D | csb701.c | 24 .nbuttons = ARRAY_SIZE(csb701_buttons),
|
D | ezx.c | 747 .nbuttons = ARRAY_SIZE(a780_buttons), 862 .nbuttons = ARRAY_SIZE(e680_buttons), 930 .nbuttons = ARRAY_SIZE(a1200_buttons), 998 .nbuttons = ARRAY_SIZE(a910_buttons), 1161 .nbuttons = ARRAY_SIZE(e6_buttons),
|
D | palmt5.c | 153 .nbuttons = ARRAY_SIZE(palmt5_pxa_buttons),
|
/linux-6.1.9/arch/arm/mach-sa1100/ |
D | simpad.c | 267 .nbuttons = ARRAY_SIZE(simpad_button_table), 288 .nbuttons = ARRAY_SIZE(simpad_polled_button_table),
|
/linux-6.1.9/arch/x86/platform/geode/ |
D | geos.c | 42 .nbuttons = ARRAY_SIZE(geos_gpio_buttons),
|
D | net5501.c | 44 .nbuttons = ARRAY_SIZE(net5501_gpio_buttons),
|
D | alix.c | 58 .nbuttons = ARRAY_SIZE(alix_gpio_buttons),
|
/linux-6.1.9/arch/sh/boards/mach-rsk/ |
D | devices-rsk7203.c | 107 .nbuttons = ARRAY_SIZE(rsk7203_gpio_keys_table),
|
/linux-6.1.9/arch/arm/mach-s3c/ |
D | mach-smartq5.c | 92 .nbuttons = ARRAY_SIZE(smartq5_buttons),
|
D | mach-n30.c | 151 .nbuttons = ARRAY_SIZE(n30_buttons), 241 .nbuttons = ARRAY_SIZE(n35_buttons),
|
D | mach-smartq7.c | 108 .nbuttons = ARRAY_SIZE(smartq7_buttons),
|
/linux-6.1.9/drivers/mfd/ |
D | ucb1x00-assabet.c | 56 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
|
/linux-6.1.9/arch/arm/mach-orion5x/ |
D | dns323-setup.c | 329 .nbuttons = ARRAY_SIZE(dns323ab_buttons), 343 .nbuttons = ARRAY_SIZE(dns323c_buttons),
|
D | ls_hgl-setup.c | 151 .nbuttons = ARRAY_SIZE(ls_hgl_buttons),
|
D | mv2120-setup.c | 94 .nbuttons = ARRAY_SIZE(mv2120_buttons),
|
D | wrt350n-v2-setup.c | 83 .nbuttons = ARRAY_SIZE(wrt350n_v2_buttons),
|
/linux-6.1.9/drivers/platform/x86/ |
D | meraki-mx100.c | 134 .nbuttons = ARRAY_SIZE(tink_buttons),
|