| /linux/drivers/acpi/ |
| H A D | button.c | 3 * button.c - ACPI Button Driver 9 #define pr_fmt(fmt) "ACPI: button: " fmt 23 #include <acpi/button.h> 25 #define ACPI_BUTTON_CLASS "button" 31 #define ACPI_BUTTON_CLASS_POWER "button/power" 32 #define ACPI_BUTTON_DEVICE_NAME_POWER "Power Button" 35 #define ACPI_BUTTON_CLASS_SLEEP "button/sleep" 36 #define ACPI_BUTTON_DEVICE_NAME_SLEEP "Sleep Button" 39 #define ACPI_BUTTON_CLASS_LID "button/lid" 59 MODULE_DESCRIPTION("ACPI Button Driver"); [all …]
|
| /linux/drivers/platform/x86/ |
| H A D | wireless-hotkey.c | 3 * Airplane mode button for AMD, HP & Xiaomi laptops 17 MODULE_DESCRIPTION("Airplane mode button for AMD, HP & Xiaomi laptops"); 40 struct wl_button *button = dev_get_drvdata(dev); in wireless_input_setup() local 43 button->input_dev = input_allocate_device(); in wireless_input_setup() 44 if (!button->input_dev) in wireless_input_setup() 47 snprintf(button->phys, sizeof(button->phys), "%s/input0", in wireless_input_setup() 50 button->input_dev->name = "Wireless hotkeys"; in wireless_input_setup() 51 button->input_dev->phys = button->phys; in wireless_input_setup() 52 button->input_dev->id.bustype = BUS_HOST; in wireless_input_setup() 53 button->input_dev->evbit[0] = BIT(EV_KEY); in wireless_input_setup() [all …]
|
| H A D | adv_swbutton.c | 3 * adv_swbutton.c - Software Button Interface Driver. 31 struct adv_swbutton *button = dev_get_drvdata(&device->dev); in adv_swbutton_notify() local 35 input_report_key(button->input, KEY_PROG1, 0); in adv_swbutton_notify() 36 input_sync(button->input); in adv_swbutton_notify() 39 input_report_key(button->input, KEY_PROG1, 1); in adv_swbutton_notify() 40 input_sync(button->input); in adv_swbutton_notify() 49 struct adv_swbutton *button; in adv_swbutton_probe() local 59 button = devm_kzalloc(&device->dev, sizeof(*button), GFP_KERNEL); in adv_swbutton_probe() 60 if (!button) in adv_swbutton_probe() 63 dev_set_drvdata(&device->dev, button); in adv_swbutton_probe() [all …]
|
| H A D | xo15-ebook.c | 4 * (based on generic ACPI button driver) 44 struct ebook_switch *button = dev_get_drvdata(dev); in ebook_send_state() local 53 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state() 54 input_sync(button->input); in ebook_send_state() 85 struct ebook_switch *button; in ebook_switch_probe() local 89 button = devm_kzalloc(dev, sizeof(*button), GFP_KERNEL); in ebook_switch_probe() 90 if (!button) in ebook_switch_probe() 93 platform_set_drvdata(pdev, button); in ebook_switch_probe() 99 button->input = input; in ebook_switch_probe() 105 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", id->id); in ebook_switch_probe() [all …]
|
| /linux/drivers/input/misc/ |
| H A D | cpcap-pwrbutton.c | 3 * CPCAP Power Button Input Driver 30 struct cpcap_power_button *button = _button; in powerbutton_irq() local 33 val = cpcap_sense_virq(button->regmap, irq); in powerbutton_irq() 35 dev_err(button->dev, "irq read failed: %d", val); in powerbutton_irq() 39 pm_wakeup_event(button->dev, 0); in powerbutton_irq() 40 input_report_key(button->idev, KEY_POWER, val); in powerbutton_irq() 41 input_sync(button->idev); in powerbutton_irq() 48 struct cpcap_power_button *button; in cpcap_power_button_probe() local 56 button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); in cpcap_power_button_probe() 57 if (!button) in cpcap_power_button_probe() [all …]
|
| H A D | Kconfig | 21 reporting power button status. 31 reporting power button status. 41 reporting power button status. 84 tristate "Dell Wyse 3020 Power Button Driver" 88 Say Y to enable support for reporting power button status on 109 power button status. ONKEY can be used to wakeup from low power 116 tristate "Atmel Capacitive Touch Button Driver" 120 Say Y here if an Atmel Capacitive Touch Button device which 172 tristate "NI Ettus Research USRP E3xx Button support." 176 USRP E3xx Button. [all …]
|
| H A D | palmas-pwrbutton.c | 3 * Texas Instruments' Palmas Power Button Input Driver 42 * @pwron_debounce_val: value for debounce of power button 50 * palmas_power_button_work() - Detects the button release event 51 * @work: work item to detect button release 68 /* The button is released, report event. */ in palmas_power_button_work() 72 /* The button is still depressed, keep checking. */ in palmas_power_button_work() 79 * pwron_irq() - button press isr 102 * @dev: palmas button device 151 * @pdev: platform device for the button 173 dev_err(dev, "Can't allocate power button\n"); in palmas_pwron_probe() [all …]
|
| /linux/drivers/platform/surface/ |
| H A D | surfacepro3_button.c | 3 * power/home/volume button support for 18 #include <acpi/button.h> 45 MODULE_DESCRIPTION("Surface Pro3 Button Driver"); 49 * Power button, Home button, Volume buttons support is supposed to 78 struct surface_button *button = dev_get_drvdata(dev); in surface_button_notify() local 84 /* Power button press,release handle */ in surface_button_notify() 91 /* Home button press,release handle */ in surface_button_notify() 98 /* Volume up button press,release handle */ in surface_button_notify() 105 /* Volume down button press,release handle */ in surface_button_notify() 119 input = button->input; in surface_button_notify() [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-elecom.c | 29 * Certain ELECOM mice misreport their button count meaning that they only work 50 hid_info(hdev, "Fixing up Elecom mouse button count\n"); in mouse_button_fixup() 72 * 20: button bit count in elecom_report_fixup() 74 * 22: button report size in elecom_report_fixup() 75 * 14: button usage maximum in elecom_report_fixup() 85 * 12: button bit count in elecom_report_fixup() 87 * 14: button report size in elecom_report_fixup() 88 * 20: button usage maximum in elecom_report_fixup() 99 * 12: button bit count in elecom_report_fixup() 101 * 14: button report size in elecom_report_fixup() [all …]
|
| /linux/Documentation/input/devices/ |
| H A D | sentelic.rst | 15 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward 16 page (5th button) 37 Bit2 => Middle Button, 1 is pressed, 0 is not pressed. 38 Bit1 => Right Button, 1 is pressed, 0 is not pressed. 39 Bit0 => Left Button, 1 is pressed, 0 is not pressed. 44 Bit4 => 1 = 4th mouse button is pressed, Forward one page. 45 0 = 4th mouse button is not pressed. 46 Bit5 => 1 = 5th mouse button is pressed, Backward one page. 47 0 = 5th mouse button is not pressed. 69 Bit2 => Middle Button, 1 is pressed, 0 is not pressed. [all …]
|
| H A D | joystick-parport.rst | 170 | +----> Button 190 | | +----> Button | | | +----> Button 1 191 | +------> Power | | +------> Button 2 208 | | +----> Button 1 | | | +----> Button 209 | +------> Button 2 | | +------> Power 215 +-----------> Up +-----------> Button 3 226 | | | +----> Right | | | +----> Button 1 229 +----------> Down +----------> Button 2 240 For the basic 1-button Multisystem joystick you connect its wires to the 250 (pin 6) -----> Button 1 [all …]
|
| H A D | atarikbd.rst | 42 mouse button states) 71 button being pressed or released, or motion in either axis exceeding a 84 ; where y is the right button state 85 ; and x is the left button state 89 Note that the value of the button state bits should be valid even if the 90 MOUSE BUTTON ACTION has set the buttons to act like part of the keyboard. 155 Fire Button Monitoring 159 this mode the ikbd monitors the state of the Joystick 1 fire button at the 163 only stops the output but also temporarily stops scanning the button (samples 208 received while port 0 is presumed to be a mouse, the button is logically [all …]
|
| /linux/drivers/soc/loongson/ |
| H A D | loongson2_pm.c | 100 struct input_dev *button; in loongson2_power_button_init() local 102 button = input_allocate_device(); in loongson2_power_button_init() 106 button->name = "Power Button"; in loongson2_power_button_init() 107 button->phys = "pm/button/input0"; in loongson2_power_button_init() 108 button->id.bustype = BUS_HOST; in loongson2_power_button_init() 109 button->dev.parent = NULL; in loongson2_power_button_init() 110 input_set_capability(button, EV_KEY, KEY_POWER); in loongson2_power_button_init() 112 ret = input_register_device(button); in loongson2_power_button_init() 116 dev_pm_set_wake_irq(&button->dev, irq); in loongson2_power_button_init() 117 device_set_wakeup_capable(&button->dev, true); in loongson2_power_button_init() [all …]
|
| /linux/drivers/hid/bpf/progs/ |
| H A D | XPPen__ACK05.bpf.c | 35 * 0x05, 0x09, // Usage Page (Button) 12 81 * Each button gets assigned the following events: 84 * Button 1: 06 01 12 00 00 00 00 00 -> LControl + o 85 * Button 2: 06 01 11 00 00 00 00 00 -> LControl + n 86 * Button 3: 06 00 3e 00 00 00 00 00 -> F5 87 * Button 4: 06 02 00 00 00 00 00 00 -> LShift 88 * Button 5: 06 01 00 00 00 00 00 00 -> LControl 89 * Button 6: 06 04 00 00 00 00 00 00 -> LAlt 90 * Button 7: 06 01 16 00 00 00 00 00 -> LControl + s 91 * Button 8: 06 01 1d 00 00 00 00 00 -> LControl + z [all …]
|
| /linux/scripts/kconfig/lxdialog/ |
| H A D | inputbox.c | 35 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local 111 if (button == -1) { /* Input box selected */ in dialog_inputbox() 234 switch (button) { in dialog_inputbox() 236 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox() 240 button = -1; /* Indicates input box is selected */ in dialog_inputbox() 246 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox() 254 switch (button) { in dialog_inputbox() 256 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox() 260 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox() 264 button = -1; /* Indicates input box is selected */ in dialog_inputbox() [all …]
|
| H A D | yesno.c | 31 int i, x, y, key = 0, button = 0; in dialog_yesno() local 80 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); in dialog_yesno() 82 print_buttons(dialog, height, width, button); in dialog_yesno() 88 return button; in dialog_yesno()
|
| /linux/arch/arm64/boot/dts/allwinner/ |
| H A D | sun50i-h700-anbernic-rg35xx-2024.dts | 37 button-a { 44 button-b { 51 button-down { 58 button-l1 { 65 button-l2 { 72 button-left { 79 button-menu { 86 button-r1 { 93 button-r2 { 100 button-right { [all …]
|
| /linux/Documentation/input/joydev/ |
| H A D | joystick.rst | 150 with CH Flightstick Pro, ThrustMaster FCS or 6 and 8 button gamepads. Saitek 156 * 2-axis, 4-button joystick 157 * 3-axis, 4-button joystick 158 * 4-axis, 4-button joystick 177 2btn 2-button n-axis joystick 178 y-joy Two 2-button 2-axis joysticks on an Y-cable 179 y-pad Two 2-button 2-axis gamepads on an Y-cable 183 gamepad 4/6-button n-axis gamepad 184 gamepad8 8-button 2-axis gamepad 199 4 Button A [all …]
|
| /linux/Documentation/firmware-guide/acpi/ |
| H A D | acpi-lid.rst | 52 The ACPI button driver exports the lid state to the userspace via the 55 /proc/acpi/button/lid/LID0/state 62 The ACPI button driver emits the following input event to the userspace: 68 button driver uses the following 3 modes in order not to trigger issues. 74 A. button.lid_init_state=method: 75 When this option is specified, the ACPI button driver reports the 87 B. button.lid_init_state=open: 88 When this option is specified, the ACPI button driver always reports the 100 C. button.lid_init_state=ignore: 101 When this option is specified, the ACPI button driver never reports the [all …]
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sun8i-v3s-anbernic-rg-nano.dts | 33 button-a { 39 button-b { 45 button-down { 51 button-left { 57 button-right { 63 button-se { 69 button-st { 75 button-tl { 81 button-tr { 87 button-up { [all …]
|
| /linux/arch/arm/boot/dts/marvell/ |
| H A D | armada-xp-lenovo-ix4-300d.dts | 142 power-button { 143 label = "Power Button"; 148 reset-button { 149 label = "Reset Button"; 154 select-button { 155 label = "Select Button"; 160 scroll-button { 161 label = "Scroll Button"; 270 power_button_pin: power-button-pin { 275 reset_button_pin: reset-button-pin { [all …]
|
| /linux/drivers/input/rmi4/ |
| H A D | rmi_f3a.c | 39 struct f3a_data *f3a, unsigned int button) in rmi_f3a_report_button() argument 41 u16 key_code = f3a->gpio_key_map[button]; in rmi_f3a_report_button() 42 bool key_down = !(f3a->data_regs[0] & BIT(button)); in rmi_f3a_report_button() 45 button >= TRACKSTICK_RANGE_START && in rmi_f3a_report_button() 46 button <= TRACKSTICK_RANGE_END) { in rmi_f3a_report_button() 115 static bool rmi_f3a_is_valid_button(int button, struct f3a_data *f3a, in rmi_f3a_is_valid_button() argument 119 return (query1_regs[0] & BIT(button)) && !(ctrl1_regs[0] & BIT(button)); in rmi_f3a_is_valid_button() 128 unsigned int button = BTN_LEFT; in rmi_f3a_map_gpios() local 152 f3a->gpio_key_map[i] = button; in rmi_f3a_map_gpios() 153 input_set_capability(input, EV_KEY, button++); in rmi_f3a_map_gpios() [all …]
|
| /linux/arch/arm64/boot/dts/apple/ |
| H A D | s800x-ipad5.dtsi | 17 button-home { 18 label = "Home Button"; 24 button-power { 25 label = "Power Button"; 31 button-voldown { 37 button-volup {
|
| H A D | t8010-ipad6.dtsi | 18 button-home { 19 label = "Home Button"; 25 button-power { 26 label = "Power Button"; 32 button-voldown { 38 button-volup {
|
| H A D | t8011-pro2.dtsi | 16 button-home { 17 label = "Home Button"; 23 button-power { 24 label = "Power Button"; 30 button-voldown { 36 button-volup {
|