/drivers/input/keyboard/ |
D | gpio_keys_polled.c | 49 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 struct gpio_keys_button *button, in gpio_keys_polled_check_state() argument 79 state = !!gpiod_get_value_cansleep(button->gpiod); in gpio_keys_polled_check_state() 81 state = !!gpiod_get_value(button->gpiod); in gpio_keys_polled_check_state() [all …]
|
D | gpio_keys.c | 36 const struct gpio_keys_button *button; member 143 if (gpio_is_valid(bdata->button->gpio)) in gpio_keys_disable_button() 200 if (bdata->button->type != type) in gpio_keys_attr_show_helper() 206 __set_bit(bdata->button->code, bits); in gpio_keys_attr_show_helper() 254 if (bdata->button->type != type) in gpio_keys_attr_store_helper() 257 if (test_bit(bdata->button->code, bits) && in gpio_keys_attr_store_helper() 258 !bdata->button->can_disable) { in gpio_keys_attr_store_helper() 269 if (bdata->button->type != type) in gpio_keys_attr_store_helper() 272 if (test_bit(bdata->button->code, bits)) in gpio_keys_attr_store_helper() 358 const struct gpio_keys_button *button = bdata->button; in gpio_keys_gpio_report_event() local [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/acpi/ |
D | button.c | 144 struct acpi_button *button = acpi_driver_data(device); in acpi_button_add_fs() local 149 if (button->type != ACPI_BUTTON_TYPE_LID) in acpi_button_add_fs() 201 struct acpi_button *button = acpi_driver_data(device); in acpi_button_remove_fs() local 203 if (button->type != ACPI_BUTTON_TYPE_LID) in acpi_button_remove_fs() 251 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_send_state() local 261 input_report_switch(button->input, SW_LID, !state); in acpi_lid_send_state() 262 input_sync(button->input); in acpi_lid_send_state() 283 struct acpi_button *button = acpi_driver_data(device); in acpi_button_notify() local 291 input = button->input; in acpi_button_notify() 292 if (button->type == ACPI_BUTTON_TYPE_LID) { in acpi_button_notify() [all …]
|
D | Makefile | 63 obj-$(CONFIG_ACPI_BUTTON) += button.o
|
/drivers/platform/x86/ |
D | surfacepro3_button.c | 72 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local 111 input = button->input; in surface_button_notify() 116 if (button->suspended) in surface_button_notify() 126 struct surface_button *button = acpi_driver_data(device); in surface_button_suspend() local 128 button->suspended = true; in surface_button_suspend() 135 struct surface_button *button = acpi_driver_data(device); in surface_button_resume() local 137 button->suspended = false; in surface_button_resume() 144 struct surface_button *button; in surface_button_add() local 154 button = kzalloc(sizeof(struct surface_button), GFP_KERNEL); in surface_button_add() 155 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/staging/unisys/visorinput/ |
D | visorinput.c | 526 int xmotion, ymotion, zmotion, button; in visorinput_channel_interrupt() local 572 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt() 573 if (button < 0) in visorinput_channel_interrupt() 575 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt() 579 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt() 580 if (button < 0) in visorinput_channel_interrupt() 582 input_report_key(visorinput_dev, button, 0); in visorinput_channel_interrupt() 586 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt() 587 if (button < 0) in visorinput_channel_interrupt() 589 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt() [all …]
|
/drivers/media/usb/em28xx/ |
D | em28xx-input.c | 509 struct em28xx_button *button = &dev->board.buttons[j]; in em28xx_query_buttons() local 511 if (button->reg_r != dev->button_polling_addresses[i]) { in em28xx_query_buttons() 516 is_pressed = regval & button->mask; in em28xx_query_buttons() 518 & button->mask; in em28xx_query_buttons() 519 if (button->inverted) { in em28xx_query_buttons() 524 if (is_pressed && button->reg_clearing) in em28xx_query_buttons() 525 em28xx_write_reg(dev, button->reg_clearing, in em28xx_query_buttons() 526 (~regval & button->mask) in em28xx_query_buttons() 527 | (regval & ~button->mask)); in em28xx_query_buttons() 533 switch (button->role) { in em28xx_query_buttons() [all …]
|
/drivers/input/misc/ |
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. 185 reporting power button status. 207 reporting power button status. 294 tristate "Cobalt button interface" 298 Say Y here if you want to support MIPS Cobalt button interface. 304 tristate "x86 Wistron laptop button interface" 312 Say Y here for support of Wistron laptop button interfaces, used on 320 tristate "x86 Atlas button interface" 443 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/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 | 32 unsigned int x, y, button; in ar1021_i2c_irq() local 44 button = data[0] & BIT(0); in ar1021_i2c_irq() 50 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 | 318 roccat_report.button = 0; in kovaplus_sysfs_set_actual_profile() 593 roccat_report.button = button_report->data1; in kovaplus_report_to_chrdev() 595 roccat_report.button = 0; in kovaplus_report_to_chrdev()
|
D | hid-roccat-kone.h | 154 uint8_t button; member
|
D | hid-roccat-arvo.c | 240 static BIN_ATTR(button, 0220, NULL, arvo_sysfs_write_button, 396 roccat_report.button = special_report->event & in arvo_report_to_chrdev()
|
/drivers/media/usb/uvc/ |
D | Kconfig | 18 to report button events.
|
/drivers/char/ |
D | Kconfig | 201 time the orange button is pressed a number of times, the number of 202 times the button was pressed will be written to that device. 205 perform actions based on how many times the button is pressed in a 208 Do not hold the button down for too long, as the driver does not 210 button; it will still execute a hard reset if the button is held 217 below to be able to initiate a system shutdown from the button. 224 shutdown and reboot by pressing the orange button a number of times. 229 time with "insmod button reboot_count=<something>".
|
/drivers/iio/proximity/ |
D | Kconfig | 43 proximity/button sensor.
|