| /kernel/linux/linux-4.19/drivers/input/misc/ |
| D | cpcap-pwrbutton.c | 2 * CPCAP Power Button Input Driver 25 #include <linux/mfd/motorola-cpcap.h> 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() [all …]
|
| D | palmas-pwrbutton.c | 2 * Texas Instruments' Palmas Power Button Input Driver 4 * Copyright (C) 2012-2014 Texas Instruments Incorporated - http://www.ti.com/ 33 * struct palmas_pwron - Palmas power on data 47 * struct palmas_pwron_config - configuration of palmas power on 49 * @pwron_debounce_val: value for debounce of power button 57 * palmas_power_button_work() - Detects the button release event 58 * @work: work item to detect button release 65 struct input_dev *input_dev = pwron->input_dev; in palmas_power_button_work() 69 error = palmas_read(pwron->palmas, PALMAS_INTERRUPT_BASE, in palmas_power_button_work() 72 dev_err(input_dev->dev.parent, in palmas_power_button_work() [all …]
|
| /kernel/linux/linux-5.10/drivers/input/misc/ |
| D | cpcap-pwrbutton.c | 2 * CPCAP Power Button Input Driver 25 #include <linux/mfd/motorola-cpcap.h> 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() [all …]
|
| D | palmas-pwrbutton.c | 2 * Texas Instruments' Palmas Power Button Input Driver 4 * Copyright (C) 2012-2014 Texas Instruments Incorporated - http://www.ti.com/ 33 * struct palmas_pwron - Palmas power on data 47 * struct palmas_pwron_config - configuration of palmas power on 49 * @pwron_debounce_val: value for debounce of power button 57 * palmas_power_button_work() - Detects the button release event 58 * @work: work item to detect button release 65 struct input_dev *input_dev = pwron->input_dev; in palmas_power_button_work() 69 error = palmas_read(pwron->palmas, PALMAS_INTERRUPT_BASE, in palmas_power_button_work() 72 dev_err(input_dev->dev.parent, in palmas_power_button_work() [all …]
|
| /kernel/linux/linux-4.19/drivers/input/keyboard/ |
| D | gpio_keys_polled.c | 4 * Copyright (C) 2007-2010 Gabor Juhos <juhosg@openwrt.org> 22 #include <linux/input-polldev.h> 30 #define DRV_NAME "gpio-keys-polled" 49 const struct gpio_keys_button *button, in gpio_keys_button_event() argument 52 struct gpio_keys_polled_dev *bdev = dev->private; in gpio_keys_button_event() 53 struct input_dev *input = dev->input; in gpio_keys_button_event() 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() [all …]
|
| D | gpio_keys.c | 33 #include <dt-bindings/input/gpio-keys.h> 36 const struct gpio_keys_button *button; member 43 unsigned int release_delay; /* in msecs, for IRQ-only buttons */ 46 unsigned int software_debounce; /* in msecs, for GPIO-driven buttons */ 67 * There are 4 attributes under /sys/devices/platform/gpio-keys/ 68 * keys [ro] - bitmap of keys (EV_KEY) which can be 70 * switches [ro] - bitmap of switches (EV_SW) which can be 72 * disabled_keys [rw] - bitmap of keys currently disabled 73 * disabled_switches [rw] - bitmap of switches currently disabled 79 * For example, if we have following switches set up as gpio-keys: [all …]
|
| /kernel/linux/linux-5.10/drivers/input/keyboard/ |
| D | gpio_keys_polled.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007-2010 Gabor Juhos <juhosg@openwrt.org> 26 #define DRV_NAME "gpio-keys-polled" 45 const struct gpio_keys_button *button, in gpio_keys_button_event() argument 49 unsigned int type = button->type ?: EV_KEY; in gpio_keys_button_event() 53 input_event(input, type, button->code, button->value); in gpio_keys_button_event() 54 __set_bit(button->code, bdev->rel_axis_seen); 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->abs_axis_seen); in gpio_keys_button_event() 62 input_event(input, type, button->code, state); in gpio_keys_button_event() [all …]
|
| D | gpio_keys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 #include <dt-bindings/input/gpio-keys.h> 33 const struct gpio_keys_button *button; member 40 unsigned int release_delay; /* in msecs, for IRQ-only buttons */ 43 unsigned int software_debounce; /* in msecs, for GPIO-driven buttons */ 64 * There are 4 attributes under /sys/devices/platform/gpio-keys/ 65 * keys [ro] - bitmap of keys (EV_KEY) which can be 67 * switches [ro] - bitmap of switches (EV_SW) which can be 69 * disabled_keys [rw] - bitmap of keys currently disabled 70 * disabled_switches [rw] - bitmap of switches currently disabled [all …]
|
| D | qt1050.c | 1 // SPDX-License-Identifier: GPL-2.0 229 regmap_read(ts->regmap, QT1050_CHIP_ID, &val); in qt1050_identify() 231 dev_err(&ts->client->dev, "ID %d not supported\n", val); in qt1050_identify() 236 err = regmap_read(ts->regmap, QT1050_FW_VERSION, &val); in qt1050_identify() 238 dev_err(&ts->client->dev, "could not read the firmware version\n"); in qt1050_identify() 242 dev_info(&ts->client->dev, "AT42QT1050 firmware version %1d.%1d\n", in qt1050_identify() 251 struct input_dev *input = ts->input; in qt1050_irq_threaded() 257 err = regmap_read(ts->regmap, QT1050_DET_STATUS, &val); in qt1050_irq_threaded() 259 dev_err(&ts->client->dev, "Fail to read detection status: %d\n", in qt1050_irq_threaded() 265 err = regmap_read(ts->regmap, QT1050_KEY_STATUS, &val); in qt1050_irq_threaded() [all …]
|
| /kernel/linux/linux-4.19/drivers/platform/x86/ |
| D | surfacepro3_button.c | 2 * power/home/volume button support for 20 #include <acpi/button.h> 41 ACPI_MODULE_NAME("surface pro 3 button"); 44 MODULE_DESCRIPTION("Surface Pro3 Button Driver"); 48 * Power button, Home button, Volume buttons support is supposed to 76 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local 82 /* Power button press,release handle */ in surface_button_notify() 89 /* Home button press,release handle */ in surface_button_notify() 96 /* Volume up button press,release handle */ in surface_button_notify() 103 /* Volume down button press,release handle */ in surface_button_notify() [all …]
|
| D | xo15-ebook.c | 2 * OLPC XO-1.5 ebook switch driver 3 * (based on generic ACPI button driver) 23 #define MODULE_NAME "xo15-ebook" 35 MODULE_DESCRIPTION("OLPC XO-1.5 ebook switch driver"); 51 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local 55 status = acpi_evaluate_integer(device->handle, "EBK", NULL, &state); in ebook_send_state() 57 return -EIO; in ebook_send_state() 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 [all …]
|
| D | intel-hid.c | 2 * Intel HID event & 5 button array driver 22 #include <linux/input/sparse-keymap.h> 38 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */ 39 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */ 48 /* 13 has two different meanings in the spec -- ignore it. */ 56 /* 27: wake -- needs special handling */ 60 /* 5 button array notification value. */ 106 #define HID_EVENT_FILTER_UUID "eeec56b3-4442-408f-a792-4edd4d758054" 200 *result = obj->integer.value; in intel_hid_evaluate_method() 225 intel_hid_dsm_fn_mask = *obj->buffer.pointer; in intel_hid_init_dsm() [all …]
|
| /kernel/linux/linux-5.10/drivers/acpi/ |
| 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 22 #include <acpi/button.h> 26 #define ACPI_BUTTON_CLASS "button" 32 #define ACPI_BUTTON_DEVICE_NAME_POWER "Power Button" 36 #define ACPI_BUTTON_DEVICE_NAME_SLEEP "Sleep Button" 58 ACPI_MODULE_NAME("button"); 61 MODULE_DESCRIPTION("ACPI Button Driver"); 77 /* GP-electronic T701, _LID method points to a floating GPIO */ [all …]
|
| /kernel/linux/linux-4.19/drivers/acpi/ |
| D | button.c | 2 * button.c - ACPI Button Driver 22 #define pr_fmt(fmt) "ACPI: button: " fmt 35 #include <acpi/button.h> 39 #define ACPI_BUTTON_CLASS "button" 47 #define ACPI_BUTTON_DEVICE_NAME_POWER "Power Button" 52 #define ACPI_BUTTON_DEVICE_NAME_SLEEP "Sleep Button" 65 ACPI_MODULE_NAME("button"); 68 MODULE_DESCRIPTION("ACPI Button Driver"); 87 /* GP-electronic T701 */ 133 .name = "button", [all …]
|
| /kernel/linux/linux-5.10/drivers/platform/x86/ |
| D | surfacepro3_button.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * power/home/volume button support for 16 #include <acpi/button.h> 43 ACPI_MODULE_NAME("surface pro 3 button"); 46 MODULE_DESCRIPTION("Surface Pro3 Button Driver"); 50 * Power button, Home button, Volume buttons support is supposed to 78 struct surface_button *button = acpi_driver_data(device); 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() [all …]
|
| 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) 19 #define MODULE_NAME "xo15-ebook" 31 MODULE_DESCRIPTION("OLPC XO-1.5 ebook switch driver"); 47 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local 51 status = acpi_evaluate_integer(device->handle, "EBK", NULL, &state); in ebook_send_state() 53 return -EIO; in ebook_send_state() 56 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state() 57 input_sync(button->input); in ebook_send_state() [all …]
|
| /kernel/linux/linux-4.19/Documentation/input/ |
| D | gamepad.rst | 1 --------------------------- 3 --------------------------- 11 having user-space deal with different button-mappings for each gamepad, this 25 | <===DP===> |SE| |ST| (W) -|- (E) | | 35 D-Pad Left Right Action Pad 43 - Action-Pad 44 4 buttons in diamonds-shape (on the right side). The buttons are 47 - D-Pad (Direction-pad) 49 - Menu-Pad 50 Different constellations, but most-times 2 buttons: SELECT - START [all …]
|
| /kernel/linux/linux-5.10/Documentation/input/ |
| D | gamepad.rst | 1 --------------------------- 3 --------------------------- 11 having user-space deal with different button-mappings for each gamepad, this 25 | <===DP===> |SE| |ST| (W) -|- (E) | | 35 D-Pad Left Right Action Pad 43 - Action-Pad 44 4 buttons in diamonds-shape (on the right side). The buttons are 47 - D-Pad (Direction-pad) 49 - Menu-Pad 50 Different constellations, but most-times 2 buttons: SELECT - START [all …]
|
| /kernel/linux/linux-4.19/Documentation/input/devices/ |
| 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 …]
|
| /kernel/linux/linux-5.10/Documentation/input/devices/ |
| 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 …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/input/ |
| D | gpio-mouse.txt | 1 Device-Tree bindings for GPIO attached mice 4 to 5-7 GPIO lines. 7 - compatible: must be "gpio-mouse" 8 - scan-interval-ms: The scanning interval in milliseconds 9 - up-gpios: GPIO line phandle to the line indicating "up" 10 - down-gpios: GPIO line phandle to the line indicating "down" 11 - left-gpios: GPIO line phandle to the line indicating "left" 12 - right-gpios: GPIO line phandle to the line indicating "right" 15 - button-left-gpios: GPIO line handle to the left mouse button 16 - button-middle-gpios: GPIO line handle to the middle mouse button [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/ |
| D | gpio-mouse.txt | 1 Device-Tree bindings for GPIO attached mice 4 to 5-7 GPIO lines. 7 - compatible: must be "gpio-mouse" 8 - scan-interval-ms: The scanning interval in milliseconds 9 - up-gpios: GPIO line phandle to the line indicating "up" 10 - down-gpios: GPIO line phandle to the line indicating "down" 11 - left-gpios: GPIO line phandle to the line indicating "left" 12 - right-gpios: GPIO line phandle to the line indicating "right" 15 - button-left-gpios: GPIO line handle to the left mouse button 16 - button-middle-gpios: GPIO line handle to the middle mouse button [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-ixp4xx/ |
| D | dsmg600-setup.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * DSM-G600 board-setup 8 * based on ixdp425-setup.c: 9 * Copyright (C) 2003-2004 MontaVista Software, Inc. 10 * based on nslu2-power.c: 12 * based on nslu2-io.c: 18 * Maintainers: http://www.nslu2-linux.org/ 33 #include <asm/mach-types.h> 43 /* DSM-G600 Timer Setting */ 47 #define DSMG600_PB_GPIO 15 /* power button */ [all …]
|
| /kernel/linux/linux-4.19/arch/arm/mach-ixp4xx/ |
| D | dsmg600-setup.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * DSM-G600 board-setup 8 * based on ixdp425-setup.c: 9 * Copyright (C) 2003-2004 MontaVista Software, Inc. 10 * based on nslu2-power.c: 12 * based on nslu2-io.c: 18 * Maintainers: http://www.nslu2-linux.org/ 33 #include <asm/mach-types.h> 41 /* DSM-G600 Timer Setting */ 45 #define DSMG600_PB_GPIO 15 /* power button */ [all …]
|
| /kernel/linux/linux-5.10/scripts/kconfig/lxdialog/ |
| 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 46 if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGTH_MIN)) in dialog_inputbox() 47 return -ERRDISPLAYTOOSMALL; in dialog_inputbox() 48 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN)) in dialog_inputbox() 49 return -ERRDISPLAYTOOSMALL; in dialog_inputbox() 52 x = (getmaxx(stdscr) - width) / 2; in dialog_inputbox() [all …]
|