| /linux/drivers/acpi/ |
| H A D | button.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 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" [all …]
|
| /linux/drivers/platform/x86/ |
| H A D | wireless-hotkey.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Airplane mode button for AMD, HP & Xiaomi laptops 5 * Copyright (C) 2014-2017 Alex Hung <alex.hung@canonical.com> 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() 45 return -ENOMEM; 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() [all …]
|
| H A D | adv_swbutton.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * adv_swbutton.c - Software Button Interface Driver. 24 /*------------------------------------------------------------------------- 26 *-------------------------------------------------------------------------- 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() 43 dev_dbg(&device->dev, "Unsupported event [0x%x]\n", event); in adv_swbutton_notify() [all …]
|
| H A D | xo15-ebook.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * OLPC XO-1.5 ebook switch driver 4 * (based on generic ACPI button driver) 20 #define MODULE_NAME "xo15-ebook" 27 MODULE_DESCRIPTION("OLPC XO-1.5 ebook switch driver"); 44 struct ebook_switch *button = dev_get_drvdata(dev); in ebook_send_state() local 50 return -EIO; in ebook_send_state() 53 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state() 54 input_sync(button->input); in ebook_send_state() 82 struct device *dev = &pdev->dev; in ebook_switch_probe() [all …]
|
| /linux/drivers/input/misc/ |
| H A D | cpcap-pwrbutton.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * CPCAP Power Button Input Driver 17 #include <linux/mfd/motorola-cpcap.h> 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 [all …]
|
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 21 reporting power button status. 31 reporting power button status. 41 reporting power button status. 47 Say Y here to use the PowerOn Key for ST-Ericsson's AB8500 48 Mix-Sig PMIC. 51 will be called ab8500-ponkey. 71 module will be called ad714x-i2c. 81 module will be called ad714x-spi. 84 tristate "Dell Wyse 3020 Power Button Driver" [all …]
|
| H A D | palmas-pwrbutton.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Texas Instruments' Palmas Power Button Input Driver 5 * Copyright (C) 2012-2014 Texas Instruments Incorporated - http://www.ti.com/ 26 * struct palmas_pwron - Palmas power on data 40 * struct palmas_pwron_config - configuration of palmas power on 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 58 struct input_dev *input_dev = pwron->input_dev; in palmas_power_button_work() 62 error = palmas_read(pwron->palmas, PALMAS_INTERRUPT_BASE, in palmas_power_button_work() [all …]
|
| /linux/drivers/platform/surface/ |
| H A D | surfacepro3_button.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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() [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-elecom.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * - BM084 Bluetooth Mouse 5 * - EX-G Trackballs (M-XT3DRBK, M-XT3URBK, M-XT4DRBK) 6 * - DEFT Trackballs (M-DT1DRBK, M-DT1URBK, M-DT2DRBK, M-DT2URBK) 7 * - HUGE Trackballs (M-HT1DRBK, M-HT1URBK) 8 * - HUGE Plus Trackball (M-HT1MRBK) 14 * Copyright (c) 2017 Tomasz Kramkowski <tk@the-tk.com> 15 * Copyright (c) 2020 YOSHIOKA Takuma <lo48576@hard-wi.red> 26 #include "hid-ids.h" 29 * Certain ELECOM mice misreport their button count meaning that they only work [all …]
|
| /linux/Documentation/input/devices/ |
| H A D | sentelic.rst | 8 :Copyright: |copy| 2002-2011 Sentelic Corporation. 10 :Last update: Dec-07-2011 15 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward 16 page (5th button) 28 BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 30 |---------------| |---------------| |---------------| |---------------| 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. 40 Byte 2: X Movement(9-bit 2's complement integers) [all …]
|
| H A D | joystick-parport.rst | 3 .. _joystick-parport: 9 :Copyright: |copy| 1998-2000 Vojtech Pavlik <vojtech@ucw.cz> 10 :Copyright: |copy| 1998 Andree Borrmann <a.borrmann@tu-bs.de> 18 Any information in this file is provided as-is, without any guarantee that 36 Many console and 8-bit computer gamepads and joysticks are supported. The 40 ------------ 59 for your pads, use either keyboard or joystick port, and make a pass-through 69 (pin 9) -----> Power 77 (pin 9) ----|>|-------+------> Power 79 (pin 8) ----|>|-------+ [all …]
|
| /linux/drivers/soc/loongson/ |
| H A D | loongson2_pm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Loongson-2 PM Support 100 struct input_dev *button; in loongson2_power_button_init() local 102 button = input_allocate_device(); in loongson2_power_button_init() 104 return -ENOMEM; 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() [all …]
|
| /linux/drivers/hid/bpf/progs/ |
| H A D | XPPen__ACK05.bpf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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 [all …]
|
| /linux/scripts/kconfig/lxdialog/ |
| H A D | inputbox.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * inputbox.c -- implements the input box 18 int x = width / 2 - 11; in print_buttons() 19 int y = height - 2; in print_buttons() 35 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local 43 strncpy(instr, init, sizeof(dialog_input_result) - 1); in dialog_inputbox() 44 instr[sizeof(dialog_input_result) - 1] = '\0'; in dialog_inputbox() 48 if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGHT_MIN)) in dialog_inputbox() 49 return -ERRDISPLAYTOOSMALL; in dialog_inputbox() 50 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) in dialog_inputbox() [all …]
|
| H A D | yesno.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * yesno.c -- implements the yes/no box 16 int x = width / 2 - 10; in print_buttons() 17 int y = height - 2; in print_buttons() 27 * Display a dialog box with two buttons - Yes and No 31 int i, x, y, key = 0, button = 0; in dialog_yesno() local 36 return -ERRDISPLAYTOOSMALL; in dialog_yesno() 38 return -ERRDISPLAYTOOSMALL; in dialog_yesno() 41 x = (getmaxx(stdscr) - width) / 2; in dialog_yesno() 42 y = (getmaxy(stdscr) - height) / 2; in dialog_yesno() [all …]
|
| /linux/arch/arm64/boot/dts/allwinner/ |
| H A D | sun50i-h700-anbernic-rg35xx-2024.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 6 /dts-v1/; 8 #include "sun50i-h616.dtsi" 9 #include "sun50i-h616-cpu-opp.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/linux-event-codes.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/leds/common.h> 17 chassis-type = "handset"; 18 compatible = "anbernic,rg35xx-2024", "allwinner,sun50i-h700"; [all …]
|
| /linux/arch/arm64/boot/dts/apple/ |
| H A D | s800x-ipad5.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 8 #include "s800-0-3-common.dtsi" 9 #include <dt-bindings/input/input.h> 12 chassis-type = "tablet"; 14 gpio-keys { 15 compatible = "gpio-keys"; 17 button-home { 18 label = "Home Button"; 21 wakeup-source; 24 button-power { [all …]
|
| H A D | t8010-ipad6.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 9 #include "t8010-common.dtsi" 10 #include <dt-bindings/input/input.h> 13 chassis-type = "tablet"; 15 gpio-keys { 16 compatible = "gpio-keys"; 18 button-home { 19 label = "Home Button"; 22 wakeup-source; 25 button-power { [all …]
|
| H A D | t8011-pro2.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 8 #include <dt-bindings/input/input.h> 11 chassis-type = "tablet"; 13 gpio-keys { 14 compatible = "gpio-keys"; 16 button-home { 17 label = "Home Button"; 20 wakeup-source; 23 button-power { 24 label = "Power Button"; [all …]
|
| H A D | s800x-6s.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 8 #include "s800-0-3-common.dtsi" 9 #include <dt-bindings/input/input.h> 12 chassis-type = "handset"; 14 gpio-keys { 15 compatible = "gpio-keys"; 17 button-home { 18 label = "Home Button"; 21 wakeup-source; 24 button-power { [all …]
|
| /linux/Documentation/input/joydev/ |
| H A D | joystick.rst | 3 .. _joystick-doc: 14 linux-input@vger.kernel.org 16 send "subscribe linux-input" to majordomo@vger.kernel.org to subscribe to it. 25 --------- 29 usually packaged as ``joystick``, ``input-utils``, ``evtest``, and so on. 35 ------------ 48 ln -s input/js0 js0 49 ln -s input/js1 js1 50 ln -s input/js2 js2 51 ln -s input/js3 js3 [all …]
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sun8i-v3s-anbernic-rg-nano.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 4 #include <dt-bindings/input/linux-event-codes.h> 5 #include "sun8i-v3s.dtsi" 6 #include "sunxi-common-regulators.dtsi" 10 compatible = "anbernic,rg-nano", "allwinner,sun8i-v3s"; 19 compatible = "pwm-backlight"; 20 brightness-levels = <0 1 2 3 8 14 21 32 46 60 80 100>; 21 default-brightness-level = <11>; 22 power-supply = <®_vcc5v0>; [all …]
|
| /linux/arch/arm/boot/dts/marvell/ |
| H A D | armada-xp-lenovo-ix4-300d.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree file for Lenovo Iomega ix4-300d 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include "armada-xp-mv78230.dtsi" 15 model = "Lenovo Iomega ix4-300d"; 16 compatible = "lenovo,ix4-300d", "marvell,armadaxp-mv78230", 17 "marvell,armadaxp", "marvell,armada-370-xp"; 20 stdout-path = "serial0:115200n8"; [all …]
|
| /linux/drivers/input/rmi4/ |
| H A D | rmi_f3a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2020 Synaptics Incorporated 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() 44 if (f3a->trackstick_buttons && 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() 47 rmi_f03_overwrite_button(f3a->f03, key_code, key_down); in rmi_f3a_report_button() 49 rmi_dbg(RMI_DEBUG_FN, &fn->dev, in rmi_f3a_report_button() [all …]
|
| /linux/Documentation/firmware-guide/acpi/ |
| H A D | acpi-lid.rst | 1 .. SPDX-License-Identifier: GPL-2.0 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: [all …]
|