Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/hid/
H A Dhid-elecom.c42 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()
/openbmc/linux/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; i++) { in gpio_keys_polled_probe()
364 for (i = 0; i < pdata->nbuttons; i++) in gpio_keys_polled_probe()
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()
816 ddata = devm_kzalloc(dev, struct_size(ddata, data, pdata->nbuttons), in gpio_keys_probe()
[all …]
H A Dqt1050.c350 int nbuttons; in qt1050_parse_fw() local
352 nbuttons = device_get_child_node_count(dev); in qt1050_parse_fw()
353 if (nbuttons == 0 || nbuttons > QT1050_MAX_KEYS) in qt1050_parse_fw()
H A Dtca6416-keypad.c206 struct_size(chip, buttons, pdata->nbuttons), in tca6416_keypad_probe()
236 for (i = 0; i < pdata->nbuttons; i++) { in tca6416_keypad_probe()
/openbmc/linux/include/linux/
H A Dtca6416_keypad.h24 int nbuttons; member
H A Dgpio_keys.h52 int nbuttons; member
/openbmc/linux/arch/mips/bcm47xx/
H A Dbuttons.c502 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()
/openbmc/linux/arch/x86/platform/geode/
H A Dgeos.c42 .nbuttons = ARRAY_SIZE(geos_gpio_buttons),
H A Dnet5501.c44 .nbuttons = ARRAY_SIZE(net5501_gpio_buttons),
H A Dalix.c58 .nbuttons = ARRAY_SIZE(alix_gpio_buttons),
/openbmc/linux/arch/sh/boards/mach-rsk/
H A Ddevices-rsk7203.c107 .nbuttons = ARRAY_SIZE(rsk7203_gpio_keys_table),
/openbmc/linux/arch/arm/mach-mv78xx0/
H A Dbuffalo-wxl-setup.c119 .nbuttons = ARRAY_SIZE(tswxl_buttons),
/openbmc/linux/arch/arm/mach-orion5x/
H A Ddns323-setup.c329 .nbuttons = ARRAY_SIZE(dns323ab_buttons),
343 .nbuttons = ARRAY_SIZE(dns323c_buttons),
H A Dmv2120-setup.c94 .nbuttons = ARRAY_SIZE(mv2120_buttons),
H A Dts409-setup.c225 .nbuttons = ARRAY_SIZE(qnap_ts409_buttons),
H A Dts209-setup.c219 .nbuttons = ARRAY_SIZE(qnap_ts209_buttons),
H A Dnet2big-setup.c325 .nbuttons = ARRAY_SIZE(net2big_buttons),
/openbmc/linux/drivers/mfd/
H A Ducb1x00-assabet.c56 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
H A Drohm-bd718x7.c29 .nbuttons = 1,
/openbmc/linux/drivers/platform/x86/
H A Dmeraki-mx100.c134 .nbuttons = ARRAY_SIZE(tink_buttons),
H A Dpcengines-apuv2.c116 .nbuttons = ARRAY_SIZE(apu2_keys_buttons),
/openbmc/linux/arch/mips/alchemy/
H A Dboard-mtx1.c93 .nbuttons = ARRAY_SIZE(mtx1_gpio_button),
/openbmc/linux/arch/sh/boards/mach-x3proto/
H A Dsetup.c198 .nbuttons = ARRAY_SIZE(baseboard_buttons),
/openbmc/linux/arch/arm/mach-sa1100/
H A Dh3xxx.c191 .nbuttons = ARRAY_SIZE(h3xxx_button_table),

12