Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 50) sorted by relevance

12

/drivers/input/keyboard/
Dgpio_keys_polled.c46 const struct gpio_keys_button *button, in gpio_keys_button_event() argument
51 unsigned int type = button->type ?: EV_KEY; in gpio_keys_button_event()
55 input_event(input, type, button->code, button->value); in gpio_keys_button_event()
56 __set_bit(button->code, bdev->rel_axis_seen); in gpio_keys_button_event()
60 input_event(input, type, button->code, button->value); in gpio_keys_button_event()
61 __set_bit(button->code, bdev->abs_axis_seen); in gpio_keys_button_event()
64 input_event(input, type, button->code, state); in gpio_keys_button_event()
70 const struct gpio_keys_button *button, in gpio_keys_polled_check_state() argument
80 gpio_keys_button_event(dev, button, state); in gpio_keys_polled_check_state()
147 struct gpio_keys_button *button; in gpio_keys_polled_get_devtree_pdata() local
[all …]
Dgpio_keys.c33 const struct gpio_keys_button *button; member
203 if (bdata->button->type != type) in gpio_keys_attr_show_helper()
257 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
261 !bdata->button->can_disable) { in gpio_keys_attr_store_helper()
272 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
358 const struct gpio_keys_button *button = bdata->button; in gpio_keys_gpio_report_event() local
360 unsigned int type = button->type ?: EV_KEY; in gpio_keys_gpio_report_event()
372 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event()
386 if (bdata->button->wakeup) in gpio_keys_gpio_work_func()
396 if (bdata->button->wakeup) { in gpio_keys_gpio_isr()
[all …]
Dqt1050.c304 struct qt1050_key *button = &ts->keys[0]; in qt1050_apply_fw_data() local
315 for (i = 0; i < QT1050_MAX_KEYS; i++, button++) { in qt1050_apply_fw_data()
317 if (button->keycode == KEY_RESERVED) in qt1050_apply_fw_data()
320 err = qt1050_set_key(map, button->num, 1); in qt1050_apply_fw_data()
324 key_regs = qt1050_get_key_regs(button->num); in qt1050_apply_fw_data()
327 (button->samples << 4) | (button->scale)); in qt1050_apply_fw_data()
330 err = regmap_write(map, key_regs->csd, button->charge_delay); in qt1050_apply_fw_data()
333 err = regmap_write(map, key_regs->nthr, button->thr_cnt); in qt1050_apply_fw_data()
352 struct qt1050_key button; in qt1050_parse_fw() local
356 &button.keycode)) { in qt1050_parse_fw()
[all …]
Dtca6416-keypad.c106 struct tca6416_button *button = &chip->buttons[pin_index]; in tca6416_keys_scan() local
107 unsigned int type = button->type ?: EV_KEY; in tca6416_keys_scan()
109 ^ button->active_low; in tca6416_keys_scan()
111 input_event(input, type, button->code, !!state); in tca6416_keys_scan()
/drivers/input/misc/
Dcpcap-pwrbutton.c38 struct cpcap_power_button *button = _button; in powerbutton_irq() local
41 val = cpcap_sense_virq(button->regmap, irq); in powerbutton_irq()
43 dev_err(button->dev, "irq read failed: %d", val); in powerbutton_irq()
47 pm_wakeup_event(button->dev, 0); in powerbutton_irq()
48 input_report_key(button->idev, KEY_POWER, val); in powerbutton_irq()
49 input_sync(button->idev); in powerbutton_irq()
56 struct cpcap_power_button *button; in cpcap_power_button_probe() local
60 button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); in cpcap_power_button_probe()
61 if (!button) in cpcap_power_button_probe()
64 button->idev = devm_input_allocate_device(&pdev->dev); in cpcap_power_button_probe()
[all …]
Dkeyspan_remote.c88 u8 button; member
167 static void keyspan_report_button(struct usb_keyspan *remote, int button, int press) in keyspan_report_button() argument
171 input_event(input, EV_MSC, MSC_SCAN, button); in keyspan_report_button()
172 input_report_key(input, remote->keymap[button], press); in keyspan_report_button()
269 message.button = 0; in keyspan_check_data()
274 message.button = message.button << 1; in keyspan_check_data()
278 message.button = (message.button << 1) + 1; in keyspan_check_data()
318 __func__, message.system, message.button, message.toggle); in keyspan_check_data()
321 keyspan_report_button(remote, message.button, 1); in keyspan_check_data()
322 keyspan_report_button(remote, message.button, 0); in keyspan_check_data()
DKconfig21 reporting power button status.
31 reporting power button status.
219 reporting power button status.
241 reporting power button status.
328 tristate "Cobalt button interface"
332 Say Y here if you want to support MIPS Cobalt button interface.
348 tristate "x86 Wistron laptop button interface"
356 Say Y here for support of Wistron laptop button interfaces, used on
364 tristate "x86 Atlas button interface"
476 tristate "Retu Power button Driver"
[all …]
/drivers/acpi/
Dbutton.c159 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_notify_state() local
172 button->last_state != !!state) in acpi_lid_notify_state()
177 next_report = ktime_add(button->last_time, in acpi_lid_notify_state()
179 if (button->last_state == !!state && in acpi_lid_notify_state()
221 input_report_switch(button->input, in acpi_lid_notify_state()
223 input_sync(button->input); in acpi_lid_notify_state()
231 input_report_switch(button->input, SW_LID, !state); in acpi_lid_notify_state()
232 input_sync(button->input); in acpi_lid_notify_state()
233 button->last_state = !!state; in acpi_lid_notify_state()
234 button->last_time = ktime_get(); in acpi_lid_notify_state()
[all …]
/drivers/platform/x86/
Dsurfacepro3_button.c78 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local
120 input = button->input; in surface_button_notify()
124 pm_wakeup_dev_event(&device->dev, 0, button->suspended); in surface_button_notify()
125 if (button->suspended) in surface_button_notify()
135 struct surface_button *button = acpi_driver_data(device); in surface_button_suspend() local
137 button->suspended = true; in surface_button_suspend()
144 struct surface_button *button = acpi_driver_data(device); in surface_button_resume() local
146 button->suspended = false; in surface_button_resume()
191 struct surface_button *button; in surface_button_add() local
204 button = kzalloc(sizeof(struct surface_button), GFP_KERNEL); in surface_button_add()
[all …]
Dxo15-ebook.c47 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
56 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
57 input_sync(button->input); in ebook_send_state()
86 struct ebook_switch *button; in ebook_switch_add() local
92 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add()
93 if (!button) in ebook_switch_add()
96 device->driver_data = button; in ebook_switch_add()
98 button->input = input = input_allocate_device(); in ebook_switch_add()
116 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add()
119 input->phys = button->phys; in ebook_switch_add()
[all …]
/drivers/input/rmi4/
Drmi_f30.c102 struct f30_data *f30, unsigned int button) in rmi_f30_report_button() argument
104 unsigned int reg_num = button >> 3; in rmi_f30_report_button()
105 unsigned int bit_num = button & 0x07; in rmi_f30_report_button()
106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button()
110 button >= TRACKSTICK_RANGE_START && in rmi_f30_report_button()
111 button <= TRACKSTICK_RANGE_END) { in rmi_f30_report_button()
210 static bool rmi_f30_is_valid_button(int button, struct rmi_f30_ctrl_data *ctrl) in rmi_f30_is_valid_button() argument
212 int byte_position = button >> 3; in rmi_f30_is_valid_button()
213 int bit_position = button & 0x07; in rmi_f30_is_valid_button()
229 unsigned int button = BTN_LEFT; in rmi_f30_map_gpios() local
[all …]
Drmi_f03.c40 int rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button, in rmi_f03_overwrite_button() argument
46 if (button < BTN_LEFT || button > BTN_MIDDLE) in rmi_f03_overwrite_button()
49 bit = BIT(button - BTN_LEFT); in rmi_f03_overwrite_button()
Drmi_driver.h106 int rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button,
111 unsigned int button, int value) in rmi_f03_overwrite_button() argument
/drivers/staging/unisys/visorinput/
Dvisorinput.c607 int xmotion, ymotion, button; in visorinput_channel_interrupt() local
646 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
647 if (button < 0) in visorinput_channel_interrupt()
649 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt()
653 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
654 if (button < 0) in visorinput_channel_interrupt()
656 input_report_key(visorinput_dev, button, 0); in visorinput_channel_interrupt()
660 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
661 if (button < 0) in visorinput_channel_interrupt()
663 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt()
[all …]
/drivers/media/usb/em28xx/
Dem28xx-input.c526 const struct em28xx_button *button; in em28xx_query_buttons() local
528 button = &dev->board.buttons[j]; in em28xx_query_buttons()
531 if (button->reg_r != dev->button_polling_addresses[i]) { in em28xx_query_buttons()
536 is_pressed = regval & button->mask; in em28xx_query_buttons()
538 & button->mask; in em28xx_query_buttons()
539 if (button->inverted) { in em28xx_query_buttons()
544 if (is_pressed && button->reg_clearing) in em28xx_query_buttons()
545 em28xx_write_reg(dev, button->reg_clearing, in em28xx_query_buttons()
546 (~regval & button->mask) in em28xx_query_buttons()
547 | (regval & ~button->mask)); in em28xx_query_buttons()
[all …]
/drivers/input/tablet/
Dwacom_serial4.c311 u8 in_proximity_p, stylus_p, button; in wacom_handle_packet() local
317 button = (wacom->data[3] & 0x78) >> 3; in wacom_handle_packet()
333 tool = (button & wacom->eraser_mask) ? ERASER : STYLUS; in wacom_handle_packet()
350 input_report_key(wacom->dev, BTN_TOUCH, button & 1); in wacom_handle_packet()
351 input_report_key(wacom->dev, BTN_STYLUS, button & 2); in wacom_handle_packet()
352 input_report_key(wacom->dev, BTN_STYLUS2, button & 4); in wacom_handle_packet()
354 input_report_key(wacom->dev, BTN_LEFT, button & 1); in wacom_handle_packet()
355 input_report_key(wacom->dev, BTN_RIGHT, button & 2); in wacom_handle_packet()
356 input_report_key(wacom->dev, BTN_MIDDLE, button & 4); in wacom_handle_packet()
/drivers/input/joystick/
Damijoy.c40 int i, data = 0, button = 0; in amijoy_interrupt() local
46 case 0: data = ~amiga_custom.joy0dat; button = (~ciaa.pra >> 6) & 1; break; in amijoy_interrupt()
47 case 1: data = ~amiga_custom.joy1dat; button = (~ciaa.pra >> 7) & 1; break; in amijoy_interrupt()
50 input_report_key(amijoy_dev[i], BTN_TRIGGER, button); in amijoy_interrupt()
/drivers/input/joystick/iforce/
Diforce-ff.c167 static unsigned char find_button(struct iforce *iforce, signed short button) in find_button() argument
172 if (iforce->type->btn[i] == button) in find_button()
279 || old->trigger.button != new->trigger.button in need_core()
291 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, in make_core() argument
302 data[2] = LO(axes) | find_button(iforce, button); in make_core()
388 effect->trigger.button, in iforce_upload_periodic()
448 effect->trigger.button, in iforce_upload_constant()
513 effect->trigger.button, effect->trigger.interval, in iforce_upload_condition()
/drivers/input/touchscreen/
Dar1021_i2c.c36 unsigned int x, y, button; in ar1021_i2c_irq() local
48 button = data[0] & BIT(0); in ar1021_i2c_irq()
54 input_report_key(input, BTN_TOUCH, button); in ar1021_i2c_irq()
/drivers/mfd/
Drohm-bd718x7.c21 static struct gpio_keys_button button = { variable
28 .buttons = &button,
170 button.irq = ret; in bd718xx_i2c_probe()
/drivers/media/usb/pwc/
DKconfig46 This option makes USB Philips cameras register the snapshot button as
47 an input device to report button events.
/drivers/hid/
Dhid-roccat-arvo.h64 uint8_t button; member
Dhid-roccat-kovaplus.h113 uint8_t button; member
/drivers/char/
DKconfig176 time the orange button is pressed a number of times, the number of
177 times the button was pressed will be written to that device.
180 perform actions based on how many times the button is pressed in a
183 Do not hold the button down for too long, as the driver does not
185 button; it will still execute a hard reset if the button is held
192 below to be able to initiate a system shutdown from the button.
199 shutdown and reboot by pressing the orange button a number of times.
204 time with "insmod button reboot_count=<something>".
/drivers/media/usb/uvc/
DKconfig19 to report button events.

12