Home
last modified time | relevance | path

Searched refs:nbuttons (Results 1 – 25 of 60) sorted by relevance

123

/Linux-v5.10/drivers/hid/
Dhid-elecom.c40 int nbuttons) in mouse_button_fixup() argument
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()
/Linux-v5.10/drivers/input/keyboard/
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; i++) { in gpio_keys_polled_probe()
370 for (i = 0; i < pdata->nbuttons; i++) in gpio_keys_polled_probe()
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()
777 ddata = devm_kzalloc(dev, struct_size(ddata, data, pdata->nbuttons), in gpio_keys_probe()
[all …]
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()
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()
/Linux-v5.10/arch/x86/platform/intel-mid/device_libs/
Dplatform_gpio_keys.c43 .nbuttons = -1, /* will fill it after search */
76 gpio_keys.nbuttons = good; in pb_keys_init()
/Linux-v5.10/include/linux/
Dtca6416_keypad.h24 int nbuttons; member
Dgpio_keys.h52 int nbuttons; member
/Linux-v5.10/arch/mips/bcm47xx/
Dbuttons.c460 size_t nbuttons) in bcm47xx_buttons_copy() argument
462 size_t size = nbuttons * sizeof(*buttons); in bcm47xx_buttons_copy()
467 bcm47xx_button_pdata.nbuttons = nbuttons; in bcm47xx_buttons_copy()
/Linux-v5.10/arch/arm/mach-pxa/
Dcsb701.c24 .nbuttons = ARRAY_SIZE(csb701_buttons),
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),
Dpalmt5.c153 .nbuttons = ARRAY_SIZE(palmt5_pxa_buttons),
/Linux-v5.10/arch/arm/mach-sa1100/
Dsimpad.c267 .nbuttons = ARRAY_SIZE(simpad_button_table),
288 .nbuttons = ARRAY_SIZE(simpad_polled_button_table),
/Linux-v5.10/arch/x86/platform/geode/
Dgeos.c41 .nbuttons = ARRAY_SIZE(geos_gpio_buttons),
Dnet5501.c43 .nbuttons = ARRAY_SIZE(net5501_gpio_buttons),
Dalix.c57 .nbuttons = ARRAY_SIZE(alix_gpio_buttons),
/Linux-v5.10/arch/sh/boards/mach-rsk/
Ddevices-rsk7203.c107 .nbuttons = ARRAY_SIZE(rsk7203_gpio_keys_table),
/Linux-v5.10/arch/arm/mach-s3c/
Dmach-smartq5.c92 .nbuttons = ARRAY_SIZE(smartq5_buttons),
Dmach-n30.c145 .nbuttons = ARRAY_SIZE(n30_buttons),
235 .nbuttons = ARRAY_SIZE(n35_buttons),
Dmach-smartq7.c108 .nbuttons = ARRAY_SIZE(smartq7_buttons),
/Linux-v5.10/drivers/mfd/
Ducb1x00-assabet.c56 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
/Linux-v5.10/arch/arm/mach-orion5x/
Ddns323-setup.c329 .nbuttons = ARRAY_SIZE(dns323ab_buttons),
343 .nbuttons = ARRAY_SIZE(dns323c_buttons),
Dls_hgl-setup.c154 .nbuttons = ARRAY_SIZE(ls_hgl_buttons),
Dmv2120-setup.c94 .nbuttons = ARRAY_SIZE(mv2120_buttons),
Dwrt350n-v2-setup.c88 .nbuttons = ARRAY_SIZE(wrt350n_v2_buttons),

123