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

12

/linux-master/include/linux/
H A Dtca6416_keypad.h24 int nbuttons; member in struct:tca6416_keys_platform_data
H A Dgpio_keys.h45 * @nbuttons: number of elements in @buttons array
54 int nbuttons; member in struct:gpio_keys_platform_data
/linux-master/drivers/hid/
H A Dhid-elecom.c42 int nbuttons)
50 nbuttons = clamp(nbuttons, 0, MOUSE_BUTTONS_MAX);
51 rdesc[button_bit_count + 1] = nbuttons;
52 rdesc[button_usage_maximum + 1] = nbuttons;
53 rdesc[padding_bit + 1] = MOUSE_BUTTONS_MAX - nbuttons;
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) argument
/linux-master/drivers/input/keyboard/
H A Dgpio_keys_polled.c96 for (i = 0; i < pdata->nbuttons; i++) {
148 int nbuttons; local
150 nbuttons = device_get_child_node_count(dev);
151 if (nbuttons == 0)
154 pdata = devm_kzalloc(dev, sizeof(*pdata) + nbuttons * sizeof(*button),
162 pdata->nbuttons = nbuttons;
207 for (i = 0; i < pdata->nbuttons; i++) {
249 bdev = devm_kzalloc(dev, struct_size(bdev, data, pdata->nbuttons),
279 for (i = 0; i < pdata->nbuttons;
[all...]
H A Dgpio_keys.c212 for (i = 0; i < ddata->pdata->nbuttons; i++) {
266 for (i = 0; i < ddata->pdata->nbuttons; i++) {
281 for (i = 0; i < ddata->pdata->nbuttons; i++) {
724 for (i = 0; i < ddata->pdata->nbuttons; i++) {
772 int nbuttons, irq; local
774 nbuttons = device_get_child_node_count(dev);
775 if (nbuttons == 0)
779 sizeof(*pdata) + nbuttons * sizeof(*button),
787 pdata->nbuttons = nbuttons;
[all...]
H A Dqt1050.c345 int nbuttons; local
347 nbuttons = device_get_child_node_count(dev);
348 if (nbuttons == 0 || nbuttons > QT1050_MAX_KEYS)
H A Dtca6416-keypad.c205 struct_size(chip, buttons, pdata->nbuttons),
235 for (i = 0; i < pdata->nbuttons; i++) {
/linux-master/arch/sh/boards/mach-rsk/
H A Ddevices-rsk7203.c107 .nbuttons = ARRAY_SIZE(rsk7203_gpio_keys_table),
/linux-master/arch/x86/platform/geode/
H A Dnet5501.c44 .nbuttons = ARRAY_SIZE(net5501_gpio_buttons),
H A Dgeos.c42 .nbuttons = ARRAY_SIZE(geos_gpio_buttons),
H A Dalix.c58 .nbuttons = ARRAY_SIZE(alix_gpio_buttons),
/linux-master/drivers/mfd/
H A Ducb1x00-assabet.c56 keys.nbuttons = ARRAY_SIZE(buttons);
H A Drohm-bd718x7.c29 .nbuttons = 1,
/linux-master/arch/arm/mach-mv78xx0/
H A Dbuffalo-wxl-setup.c119 .nbuttons = ARRAY_SIZE(tswxl_buttons),
/linux-master/arch/mips/bcm47xx/
H A Dbuttons.c502 size_t nbuttons)
504 size_t size = nbuttons * sizeof(*buttons);
509 bcm47xx_button_pdata.nbuttons = nbuttons;
501 bcm47xx_buttons_copy(const struct gpio_keys_button *buttons, size_t nbuttons) argument
/linux-master/arch/arm/mach-orion5x/
H A Dmv2120-setup.c94 .nbuttons = ARRAY_SIZE(mv2120_buttons),
H A Dts409-setup.c225 .nbuttons = ARRAY_SIZE(qnap_ts409_buttons),
H A Ddns323-setup.c329 .nbuttons = ARRAY_SIZE(dns323ab_buttons),
343 .nbuttons = ARRAY_SIZE(dns323c_buttons),
H A Dts209-setup.c219 .nbuttons = ARRAY_SIZE(qnap_ts209_buttons),
H A Dnet2big-setup.c325 .nbuttons = ARRAY_SIZE(net2big_buttons),
/linux-master/drivers/platform/x86/
H A Dmeraki-mx100.c134 .nbuttons = ARRAY_SIZE(tink_buttons),
H A Dpcengines-apuv2.c116 .nbuttons = ARRAY_SIZE(apu2_keys_buttons),
/linux-master/arch/sh/boards/mach-x3proto/
H A Dsetup.c198 .nbuttons = ARRAY_SIZE(baseboard_buttons),
/linux-master/arch/arm/mach-sa1100/
H A Dh3xxx.c191 .nbuttons = ARRAY_SIZE(h3xxx_button_table),
/linux-master/arch/mips/alchemy/
H A Dboard-mtx1.c93 .nbuttons = ARRAY_SIZE(mtx1_gpio_button),

Completed in 239 milliseconds

12