Home
last modified time | relevance | path

Searched refs:nbuttons (Results 1 - 25 of 95) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-elecom.c40 int nbuttons) in mouse_button_fixup()
47 nbuttons = clamp(nbuttons, 0, MOUSE_BUTTONS_MAX); in mouse_button_fixup()
48 rdesc[13] = nbuttons; in mouse_button_fixup()
49 rdesc[21] = nbuttons; in mouse_button_fixup()
50 rdesc[31] = MOUSE_BUTTONS_MAX - nbuttons; in mouse_button_fixup()
38 mouse_button_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int rsize, int nbuttons) mouse_button_fixup() argument
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-elecom.c42 int nbuttons) in mouse_button_fixup()
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()
36 mouse_button_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int rsize, unsigned int button_bit_count, unsigned int padding_bit, unsigned int button_report_size, unsigned int button_usage_maximum, int nbuttons) mouse_button_fixup() argument
/kernel/linux/linux-5.10/drivers/input/keyboard/
H A Dgpio_keys_polled.c96 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; in gpio_keys_polled_probe()
[all...]
H A Dgpio_keys.c200 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_show_helper()
254 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_store_helper()
269 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_store_helper()
647 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_report_state()
695 int nbuttons; in gpio_keys_get_devtree_pdata() local
697 nbuttons = device_get_child_node_count(dev); in gpio_keys_get_devtree_pdata()
698 if (nbuttons == 0) in gpio_keys_get_devtree_pdata()
702 sizeof(*pdata) + nbuttons * sizeof(*button), in gpio_keys_get_devtree_pdata()
710 pdata->nbuttons = nbuttons; in gpio_keys_get_devtree_pdata()
[all...]
H A Dqt1050.c345 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()
H A Dtca6416-keypad.c219 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()
/kernel/linux/linux-6.6/drivers/input/keyboard/
H A Dgpio_keys_polled.c96 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; in gpio_keys_polled_probe()
[all...]
H A Dgpio_keys.c210 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()
683 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_report_state()
731 int nbuttons; in gpio_keys_get_devtree_pdata() local
733 nbuttons = device_get_child_node_count(dev); in gpio_keys_get_devtree_pdata()
734 if (nbuttons == 0) in gpio_keys_get_devtree_pdata()
738 sizeof(*pdata) + nbuttons * sizeof(*button), in gpio_keys_get_devtree_pdata()
746 pdata->nbuttons = nbuttons; in gpio_keys_get_devtree_pdata()
[all...]
H A Dqt1050.c345 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()
/kernel/linux/linux-5.10/arch/x86/platform/intel-mid/device_libs/
H A Dplatform_gpio_keys.c43 .nbuttons = -1, /* will fill it after search */
76 gpio_keys.nbuttons = good; in pb_keys_init()
/kernel/linux/linux-5.10/include/linux/
H A Dtca6416_keypad.h24 int nbuttons; member
H A Dgpio_keys.h43 * @nbuttons: number of elements in @buttons array
52 int nbuttons; member
/kernel/linux/linux-6.6/include/linux/
H A Dtca6416_keypad.h24 int nbuttons; member
H A Dgpio_keys.h43 * @nbuttons: number of elements in @buttons array
52 int nbuttons; member
/kernel/linux/linux-5.10/arch/mips/bcm47xx/
H A Dbuttons.c460 size_t nbuttons) in bcm47xx_buttons_copy()
462 size_t size = nbuttons * sizeof(*buttons); in bcm47xx_buttons_copy()
467 bcm47xx_button_pdata.nbuttons = nbuttons; in bcm47xx_buttons_copy()
459 bcm47xx_buttons_copy(const struct gpio_keys_button *buttons, size_t nbuttons) bcm47xx_buttons_copy() argument
/kernel/linux/linux-6.6/arch/mips/bcm47xx/
H A Dbuttons.c502 size_t nbuttons) in bcm47xx_buttons_copy()
504 size_t size = nbuttons * sizeof(*buttons); in bcm47xx_buttons_copy()
509 bcm47xx_button_pdata.nbuttons = nbuttons; in bcm47xx_buttons_copy()
501 bcm47xx_buttons_copy(const struct gpio_keys_button *buttons, size_t nbuttons) bcm47xx_buttons_copy() argument
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
H A Dcsb701.c24 .nbuttons = ARRAY_SIZE(csb701_buttons),
H A Dezx.c748 .nbuttons = ARRAY_SIZE(a780_buttons),
863 .nbuttons = ARRAY_SIZE(e680_buttons),
931 .nbuttons = ARRAY_SIZE(a1200_buttons),
999 .nbuttons = ARRAY_SIZE(a910_buttons),
1162 .nbuttons = ARRAY_SIZE(e6_buttons),
/kernel/linux/linux-5.10/arch/x86/platform/geode/
H A Dnet5501.c43 .nbuttons = ARRAY_SIZE(net5501_gpio_buttons),
H A Dgeos.c41 .nbuttons = ARRAY_SIZE(geos_gpio_buttons),
/kernel/linux/linux-6.6/arch/x86/platform/geode/
H A Dgeos.c42 .nbuttons = ARRAY_SIZE(geos_gpio_buttons),
/kernel/linux/linux-5.10/arch/arm/mach-orion5x/
H A Ddns323-setup.c329 .nbuttons = ARRAY_SIZE(dns323ab_buttons),
343 .nbuttons = ARRAY_SIZE(dns323c_buttons),
/kernel/linux/linux-5.10/arch/arm/mach-sa1100/
H A Dsimpad.c267 .nbuttons = ARRAY_SIZE(simpad_button_table),
288 .nbuttons = ARRAY_SIZE(simpad_polled_button_table),
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
H A Dmach-n30.c145 .nbuttons = ARRAY_SIZE(n30_buttons),
235 .nbuttons = ARRAY_SIZE(n35_buttons),
/kernel/linux/linux-6.6/arch/arm/mach-orion5x/
H A Ddns323-setup.c329 .nbuttons = ARRAY_SIZE(dns323ab_buttons),
343 .nbuttons = ARRAY_SIZE(dns323c_buttons),

Completed in 19 milliseconds

1234