Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/hid/
Dhid-elecom.c43 int nbuttons) in mouse_button_fixup() argument
50 nbuttons = clamp(nbuttons, 0, MOUSE_BUTTONS_MAX); in mouse_button_fixup()
51 rdesc[13] = nbuttons; in mouse_button_fixup()
52 rdesc[21] = nbuttons; in mouse_button_fixup()
53 rdesc[31] = MOUSE_BUTTONS_MAX - nbuttons; in mouse_button_fixup()
/Linux-v4.19/arch/mips/ath79/
Ddev-gpio-buttons.c20 unsigned nbuttons, in ath79_register_gpio_keys_polled() argument
28 p = kmemdup(buttons, nbuttons * sizeof(*p), GFP_KERNEL); in ath79_register_gpio_keys_polled()
38 pdata.nbuttons = nbuttons; in ath79_register_gpio_keys_polled()
Ddev-gpio-buttons.h20 unsigned nbuttons,
/Linux-v4.19/drivers/input/keyboard/
Dgpio_keys_polled.c102 for (i = 0; i < pdata->nbuttons; i++) { in gpio_keys_polled_poll()
152 int nbuttons; in gpio_keys_polled_get_devtree_pdata() local
154 nbuttons = device_get_child_node_count(dev); in gpio_keys_polled_get_devtree_pdata()
155 if (nbuttons == 0) in gpio_keys_polled_get_devtree_pdata()
158 pdata = devm_kzalloc(dev, sizeof(*pdata) + nbuttons * sizeof(*button), in gpio_keys_polled_get_devtree_pdata()
166 pdata->nbuttons = nbuttons; in gpio_keys_polled_get_devtree_pdata()
209 for (i = 0; i < pdata->nbuttons; i++) { in gpio_keys_polled_set_abs_params()
254 pdata->nbuttons * sizeof(struct gpio_keys_button_data); in gpio_keys_polled_probe()
287 for (i = 0; i < pdata->nbuttons; i++) { in gpio_keys_polled_probe()
371 for (i = 0; i < pdata->nbuttons; i++) in gpio_keys_polled_probe()
Dgpio_keys.c203 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_show_helper()
257 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_store_helper()
272 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_attr_store_helper()
656 for (i = 0; i < ddata->pdata->nbuttons; i++) { in gpio_keys_report_state()
704 int nbuttons; in gpio_keys_get_devtree_pdata() local
706 nbuttons = device_get_child_node_count(dev); in gpio_keys_get_devtree_pdata()
707 if (nbuttons == 0) in gpio_keys_get_devtree_pdata()
711 sizeof(*pdata) + nbuttons * sizeof(*button), in gpio_keys_get_devtree_pdata()
719 pdata->nbuttons = nbuttons; in gpio_keys_get_devtree_pdata()
788 pdata->nbuttons * sizeof(struct gpio_button_data); in gpio_keys_probe()
[all …]
Dtca6416-keypad.c223 pdata->nbuttons * sizeof(struct tca6416_button), in tca6416_keypad_probe()
255 for (i = 0; i < pdata->nbuttons; i++) { in tca6416_keypad_probe()
/Linux-v4.19/arch/x86/platform/intel-mid/device_libs/
Dplatform_gpio_keys.c47 .nbuttons = -1, /* will fill it after search */
80 gpio_keys.nbuttons = good; in pb_keys_init()
/Linux-v4.19/include/linux/
Dtca6416_keypad.h27 int nbuttons; member
Dgpio_keys.h52 int nbuttons; member
/Linux-v4.19/arch/mips/bcm47xx/
Dbuttons.c453 size_t nbuttons) in bcm47xx_buttons_copy() argument
455 size_t size = nbuttons * sizeof(*buttons); in bcm47xx_buttons_copy()
460 bcm47xx_button_pdata.nbuttons = nbuttons; in bcm47xx_buttons_copy()
/Linux-v4.19/arch/arm/mach-pxa/
Dcsb701.c24 .nbuttons = ARRAY_SIZE(csb701_buttons),
Dezx.c745 .nbuttons = ARRAY_SIZE(a780_buttons),
859 .nbuttons = ARRAY_SIZE(e680_buttons),
927 .nbuttons = ARRAY_SIZE(a1200_buttons),
995 .nbuttons = ARRAY_SIZE(a910_buttons),
1157 .nbuttons = ARRAY_SIZE(e6_buttons),
Dpalmt5.c158 .nbuttons = ARRAY_SIZE(palmt5_pxa_buttons),
/Linux-v4.19/arch/arm/mach-sa1100/
Dsimpad.c268 .nbuttons = ARRAY_SIZE(simpad_button_table),
289 .nbuttons = ARRAY_SIZE(simpad_polled_button_table),
/Linux-v4.19/arch/x86/platform/geode/
Dgeos.c45 .nbuttons = ARRAY_SIZE(geos_gpio_buttons),
Dnet5501.c48 .nbuttons = ARRAY_SIZE(net5501_gpio_buttons),
Dalix.c62 .nbuttons = ARRAY_SIZE(alix_gpio_buttons),
/Linux-v4.19/arch/arm/mach-s3c24xx/
Dmach-n30.c145 .nbuttons = ARRAY_SIZE(n30_buttons),
235 .nbuttons = ARRAY_SIZE(n35_buttons),
/Linux-v4.19/arch/sh/boards/mach-rsk/
Ddevices-rsk7203.c110 .nbuttons = ARRAY_SIZE(rsk7203_gpio_keys_table),
/Linux-v4.19/arch/unicore32/kernel/
Dpuv3-nb0916.c85 .nbuttons = ARRAY_SIZE(nb0916_gpio_keys),
/Linux-v4.19/arch/arm/mach-s3c64xx/
Dmach-smartq5.c93 .nbuttons = ARRAY_SIZE(smartq5_buttons),
Dmach-smartq7.c109 .nbuttons = ARRAY_SIZE(smartq7_buttons),
/Linux-v4.19/drivers/mfd/
Ducb1x00-assabet.c59 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
/Linux-v4.19/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),

123