/drivers/input/keyboard/ |
D | gpio_keys_polled.c | 49 const struct gpio_keys_button *button, in gpio_keys_button_event() argument 54 unsigned int type = button->type ?: EV_KEY; in gpio_keys_button_event() 58 input_event(input, type, button->code, button->value); in gpio_keys_button_event() 59 __set_bit(button->code, bdev->rel_axis_seen); in gpio_keys_button_event() 63 input_event(input, type, button->code, button->value); in gpio_keys_button_event() 64 __set_bit(button->code, bdev->abs_axis_seen); in gpio_keys_button_event() 67 input_event(input, type, button->code, state); in gpio_keys_button_event() 73 const struct gpio_keys_button *button, in gpio_keys_polled_check_state() argument 83 gpio_keys_button_event(dev, button, state); in gpio_keys_polled_check_state() 150 struct gpio_keys_button *button; in gpio_keys_polled_get_devtree_pdata() local [all …]
|
D | gpio_keys.c | 35 const struct gpio_keys_button *button; member 204 if (bdata->button->type != type) in gpio_keys_attr_show_helper() 258 if (bdata->button->type != type) in gpio_keys_attr_store_helper() 262 !bdata->button->can_disable) { in gpio_keys_attr_store_helper() 273 if (bdata->button->type != type) in gpio_keys_attr_store_helper() 362 const struct gpio_keys_button *button = bdata->button; in gpio_keys_gpio_report_event() local 364 unsigned int type = button->type ?: EV_KEY; in gpio_keys_gpio_report_event() 376 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event() 390 if (bdata->button->wakeup) in gpio_keys_gpio_work_func() 400 if (bdata->button->wakeup) { in gpio_keys_gpio_isr() [all …]
|
D | tca6416-keypad.c | 109 struct tca6416_button *button = &chip->buttons[pin_index]; in tca6416_keys_scan() local 110 unsigned int type = button->type ?: EV_KEY; in tca6416_keys_scan() 112 ^ button->active_low; in tca6416_keys_scan() 114 input_event(input, type, button->code, !!state); in tca6416_keys_scan()
|
/drivers/input/misc/ |
D | cpcap-pwrbutton.c | 38 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 …]
|
D | keyspan_remote.c | 96 u8 button; member 175 static void keyspan_report_button(struct usb_keyspan *remote, int button, int press) in keyspan_report_button() argument 179 input_event(input, EV_MSC, MSC_SCAN, button); in keyspan_report_button() 180 input_report_key(input, remote->keymap[button], press); in keyspan_report_button() 277 message.button = 0; in keyspan_check_data() 282 message.button = message.button << 1; in keyspan_check_data() 286 message.button = (message.button << 1) + 1; in keyspan_check_data() 326 __func__, message.system, message.button, message.toggle); in keyspan_check_data() 329 keyspan_report_button(remote, message.button, 1); in keyspan_check_data() 330 keyspan_report_button(remote, message.button, 0); in keyspan_check_data()
|
D | Kconfig | 20 reporting power button status. 30 reporting power button status. 199 reporting power button status. 221 reporting power button status. 310 tristate "Cobalt button interface" 314 Say Y here if you want to support MIPS Cobalt button interface. 330 tristate "x86 Wistron laptop button interface" 338 Say Y here for support of Wistron laptop button interfaces, used on 346 tristate "x86 Atlas button interface" 458 tristate "Retu Power button Driver" [all …]
|
D | ad714x.c | 119 struct ad714x_button_drv *button; member 216 struct ad714x_button_plat *hw = &ad714x->hw->button[idx]; in ad714x_button_state_machine() 217 struct ad714x_button_drv *sw = &ad714x->sw->button[idx]; in ad714x_button_state_machine() 1014 ad714x->sw->button = bt_drv = drv_mem; in ad714x_probe() 1126 struct ad714x_button_plat *bt_plat = ad714x->hw->button; in ad714x_probe()
|
/drivers/acpi/ |
D | button.c | 143 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_notify_state() local 156 button->last_state != !!state) in acpi_lid_notify_state() 161 next_report = ktime_add(button->last_time, in acpi_lid_notify_state() 163 if (button->last_state == !!state && in acpi_lid_notify_state() 205 input_report_switch(button->input, in acpi_lid_notify_state() 207 input_sync(button->input); in acpi_lid_notify_state() 213 input_report_switch(button->input, SW_LID, !state); in acpi_lid_notify_state() 214 input_sync(button->input); in acpi_lid_notify_state() 215 button->last_state = !!state; in acpi_lid_notify_state() 216 button->last_time = ktime_get(); in acpi_lid_notify_state() [all …]
|
/drivers/platform/x86/ |
D | surfacepro3_button.c | 76 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local 118 input = button->input; in surface_button_notify() 123 if (button->suspended) in surface_button_notify() 133 struct surface_button *button = acpi_driver_data(device); in surface_button_suspend() local 135 button->suspended = true; in surface_button_suspend() 142 struct surface_button *button = acpi_driver_data(device); in surface_button_resume() local 144 button->suspended = false; in surface_button_resume() 151 struct surface_button *button; in surface_button_add() local 161 button = kzalloc(sizeof(struct surface_button), GFP_KERNEL); in surface_button_add() 162 if (!button) in surface_button_add() [all …]
|
D | xo15-ebook.c | 51 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local 60 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state() 61 input_sync(button->input); in ebook_send_state() 90 struct ebook_switch *button; in ebook_switch_add() local 96 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add() 97 if (!button) in ebook_switch_add() 100 device->driver_data = button; in ebook_switch_add() 102 button->input = input = input_allocate_device(); in ebook_switch_add() 120 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add() 123 input->phys = button->phys; in ebook_switch_add() [all …]
|
/drivers/input/rmi4/ |
D | rmi_f30.c | 105 struct f30_data *f30, unsigned int button) in rmi_f30_report_button() argument 107 unsigned int reg_num = button >> 3; in rmi_f30_report_button() 108 unsigned int bit_num = button & 0x07; in rmi_f30_report_button() 109 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button() 113 button >= TRACKSTICK_RANGE_START && in rmi_f30_report_button() 114 button <= TRACKSTICK_RANGE_END) { in rmi_f30_report_button() 212 static bool rmi_f30_is_valid_button(int button, struct rmi_f30_ctrl_data *ctrl) in rmi_f30_is_valid_button() argument 214 int byte_position = button >> 3; in rmi_f30_is_valid_button() 215 int bit_position = button & 0x07; in rmi_f30_is_valid_button() 231 unsigned int button = BTN_LEFT; in rmi_f30_map_gpios() local [all …]
|
D | rmi_f03.c | 43 int rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button, in rmi_f03_overwrite_button() argument 49 if (button < BTN_LEFT || button > BTN_MIDDLE) in rmi_f03_overwrite_button() 52 bit = BIT(button - BTN_LEFT); in rmi_f03_overwrite_button()
|
D | rmi_driver.h | 111 int rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button, 116 unsigned int button, int value) in rmi_f03_overwrite_button() argument
|
/drivers/staging/unisys/visorinput/ |
D | visorinput.c | 560 int xmotion, ymotion, button; in visorinput_channel_interrupt() local 599 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt() 600 if (button < 0) in visorinput_channel_interrupt() 602 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt() 606 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt() 607 if (button < 0) in visorinput_channel_interrupt() 609 input_report_key(visorinput_dev, button, 0); in visorinput_channel_interrupt() 613 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt() 614 if (button < 0) in visorinput_channel_interrupt() 616 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt() [all …]
|
/drivers/media/usb/em28xx/ |
D | em28xx-input.c | 518 struct em28xx_button *button = &dev->board.buttons[j]; in em28xx_query_buttons() local 520 if (button->reg_r != dev->button_polling_addresses[i]) { in em28xx_query_buttons() 525 is_pressed = regval & button->mask; in em28xx_query_buttons() 527 & button->mask; in em28xx_query_buttons() 528 if (button->inverted) { in em28xx_query_buttons() 533 if (is_pressed && button->reg_clearing) in em28xx_query_buttons() 534 em28xx_write_reg(dev, button->reg_clearing, in em28xx_query_buttons() 535 (~regval & button->mask) in em28xx_query_buttons() 536 | (regval & ~button->mask)); in em28xx_query_buttons() 542 switch (button->role) { in em28xx_query_buttons() [all …]
|
/drivers/input/tablet/ |
D | wacom_serial4.c | 316 u8 in_proximity_p, stylus_p, button; in wacom_handle_packet() local 322 button = (wacom->data[3] & 0x78) >> 3; in wacom_handle_packet() 338 tool = (button & wacom->eraser_mask) ? ERASER : STYLUS; in wacom_handle_packet() 355 input_report_key(wacom->dev, BTN_TOUCH, button & 1); in wacom_handle_packet() 356 input_report_key(wacom->dev, BTN_STYLUS, button & 2); in wacom_handle_packet() 357 input_report_key(wacom->dev, BTN_STYLUS2, button & 4); in wacom_handle_packet() 359 input_report_key(wacom->dev, BTN_LEFT, button & 1); in wacom_handle_packet() 360 input_report_key(wacom->dev, BTN_RIGHT, button & 2); in wacom_handle_packet() 361 input_report_key(wacom->dev, BTN_MIDDLE, button & 4); in wacom_handle_packet()
|
/drivers/input/joystick/ |
D | amijoy.c | 56 int i, data = 0, button = 0; in amijoy_interrupt() local 62 case 0: data = ~amiga_custom.joy0dat; button = (~ciaa.pra >> 6) & 1; break; in amijoy_interrupt() 63 case 1: data = ~amiga_custom.joy1dat; button = (~ciaa.pra >> 7) & 1; break; in amijoy_interrupt() 66 input_report_key(amijoy_dev[i], BTN_TRIGGER, button); in amijoy_interrupt()
|
/drivers/input/joystick/iforce/ |
D | iforce-ff.c | 186 static unsigned char find_button(struct iforce *iforce, signed short button) in find_button() argument 191 if (iforce->type->btn[i] == button) in find_button() 298 || old->trigger.button != new->trigger.button in need_core() 310 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, in make_core() argument 321 data[2] = LO(axes) | find_button(iforce, button); in make_core() 407 effect->trigger.button, in iforce_upload_periodic() 467 effect->trigger.button, in iforce_upload_constant() 532 effect->trigger.button, effect->trigger.interval, in iforce_upload_condition()
|
/drivers/input/touchscreen/ |
D | ar1021_i2c.c | 37 unsigned int x, y, button; in ar1021_i2c_irq() local 49 button = data[0] & BIT(0); in ar1021_i2c_irq() 55 input_report_key(input, BTN_TOUCH, button); in ar1021_i2c_irq()
|
/drivers/media/usb/pwc/ |
D | Kconfig | 45 This option makes USB Philips cameras register the snapshot button as 46 an input device to report button events.
|
/drivers/hid/ |
D | hid-roccat-arvo.h | 67 uint8_t button; member
|
D | hid-roccat-kovaplus.h | 116 uint8_t button; member
|
D | hid-roccat-kovaplus.c | 314 roccat_report.button = 0; in kovaplus_sysfs_set_actual_profile() 586 roccat_report.button = button_report->data1; in kovaplus_report_to_chrdev() 588 roccat_report.button = 0; in kovaplus_report_to_chrdev()
|
/drivers/media/usb/uvc/ |
D | Kconfig | 18 to report button events.
|
/drivers/char/ |
D | Kconfig | 218 time the orange button is pressed a number of times, the number of 219 times the button was pressed will be written to that device. 222 perform actions based on how many times the button is pressed in a 225 Do not hold the button down for too long, as the driver does not 227 button; it will still execute a hard reset if the button is held 234 below to be able to initiate a system shutdown from the button. 241 shutdown and reboot by pressing the orange button a number of times. 246 time with "insmod button reboot_count=<something>".
|