Home
last modified time | relevance | path

Searched refs:n_buttons (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/drivers/platform/x86/
H A Dsurface3_button.c96 int n_buttons = 0; in surface3_button_device_create() local
118 gpio_keys[n_buttons].type = info->event_type; in surface3_button_device_create()
119 gpio_keys[n_buttons].code = info->event_code; in surface3_button_device_create()
120 gpio_keys[n_buttons].gpio = gpio; in surface3_button_device_create()
121 gpio_keys[n_buttons].active_low = info->active_low; in surface3_button_device_create()
122 gpio_keys[n_buttons].desc = info->name; in surface3_button_device_create()
123 gpio_keys[n_buttons].wakeup = info->wakeup; in surface3_button_device_create()
124 n_buttons++; in surface3_button_device_create()
127 if (n_buttons == 0) { in surface3_button_device_create()
133 gpio_keys_pdata->nbuttons = n_buttons; in surface3_button_device_create()
[all...]
/kernel/linux/linux-5.10/drivers/input/misc/
H A Dsoc_button_array.c164 int n_buttons = 0; in soc_button_device_create() local
168 n_buttons++; in soc_button_device_create()
172 sizeof(*gpio_keys) * n_buttons, in soc_button_device_create()
178 n_buttons = 0; in soc_button_device_create()
211 gpio_keys[n_buttons].irq = irq; in soc_button_device_create()
212 gpio_keys[n_buttons].gpio = -ENOENT; in soc_button_device_create()
214 gpio_keys[n_buttons].gpio = gpio; in soc_button_device_create()
217 gpio_keys[n_buttons].type = info->event_type; in soc_button_device_create()
218 gpio_keys[n_buttons].code = info->event_code; in soc_button_device_create()
219 gpio_keys[n_buttons] in soc_button_device_create()
[all...]
/kernel/linux/linux-6.6/drivers/input/misc/
H A Dsoc_button_array.c164 int n_buttons = 0; in soc_button_device_create() local
168 n_buttons++; in soc_button_device_create()
172 sizeof(*gpio_keys) * n_buttons, in soc_button_device_create()
178 n_buttons = 0; in soc_button_device_create()
211 gpio_keys[n_buttons].irq = irq; in soc_button_device_create()
212 gpio_keys[n_buttons].gpio = -ENOENT; in soc_button_device_create()
214 gpio_keys[n_buttons].gpio = gpio; in soc_button_device_create()
217 gpio_keys[n_buttons].type = info->event_type; in soc_button_device_create()
218 gpio_keys[n_buttons].code = info->event_code; in soc_button_device_create()
219 gpio_keys[n_buttons] in soc_button_device_create()
[all...]
/kernel/linux/linux-5.10/drivers/input/joystick/
H A Dturbografx.c150 int *n_buttons, n_devs; in tgfx_attach() local
165 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach()
190 if (n_buttons[i] < 1) in tgfx_attach()
193 if (n_buttons[i] > ARRAY_SIZE(tgfx_buttons)) { in tgfx_attach()
194 printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); in tgfx_attach()
206 "TurboGraFX %d-button Multisystem joystick", n_buttons[i]); in tgfx_attach()
214 input_dev->id.product = n_buttons[i]; in tgfx_attach()
226 for (j = 0; j < n_buttons[i]; j++) in tgfx_attach()
H A Ddb9.c80 int n_buttons; member
572 if (mode < 1 || mode >= DB9_MAX_PAD || !db9_modes[mode].n_buttons) { in db9_attach()
627 for (j = 0; j < db9_mode->n_buttons; j++) in db9_attach()
/kernel/linux/linux-6.6/drivers/input/joystick/
H A Dturbografx.c147 int *n_buttons, n_devs; in tgfx_attach() local
162 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach()
187 if (n_buttons[i] < 1) in tgfx_attach()
190 if (n_buttons[i] > ARRAY_SIZE(tgfx_buttons)) { in tgfx_attach()
191 printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); in tgfx_attach()
203 "TurboGraFX %d-button Multisystem joystick", n_buttons[i]); in tgfx_attach()
211 input_dev->id.product = n_buttons[i]; in tgfx_attach()
223 for (j = 0; j < n_buttons[i]; j++) in tgfx_attach()
H A Ddb9.c77 int n_buttons; member
569 if (mode < 1 || mode >= DB9_MAX_PAD || !db9_modes[mode].n_buttons) { in db9_attach()
624 for (j = 0; j < db9_mode->n_buttons; j++) in db9_attach()

Completed in 6 milliseconds