Home
last modified time | relevance | path

Searched +full:button +full:- (Results 1 – 25 of 1035) sorted by relevance

12345678910>>...42

/kernel/linux/linux-6.6/drivers/platform/x86/
Dwireless-hotkey.c1 // 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>
39 struct wl_button *button = acpi_driver_data(device); in wireless_input_setup() local
42 button->input_dev = input_allocate_device(); in wireless_input_setup()
43 if (!button->input_dev) in wireless_input_setup()
44 return -ENOMEM; in wireless_input_setup()
46 snprintf(button->phys, sizeof(button->phys), "%s/input0", acpi_device_hid(device)); in wireless_input_setup()
48 button->input_dev->name = "Wireless hotkeys"; in wireless_input_setup()
49 button->input_dev->phys = button->phys; in wireless_input_setup()
[all …]
Dadv_swbutton.c1 // 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 …]
Dxo15-ebook.c1 // 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"
29 MODULE_DESCRIPTION("OLPC XO-1.5 ebook switch driver");
45 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
49 status = acpi_evaluate_integer(device->handle, "EBK", NULL, &state); in ebook_send_state()
51 return -EIO; in ebook_send_state()
54 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
55 input_sync(button->input); in ebook_send_state()
[all …]
/kernel/linux/linux-6.6/drivers/input/keyboard/
Dgpio_keys_polled.c1 // 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 …]
Dgpio_keys.c1 // SPDX-License-Identifier: GPL-2.0-only
31 #include <dt-bindings/input/gpio-keys.h>
34 const struct gpio_keys_button *button; member
41 unsigned int release_delay; /* in msecs, for IRQ-only buttons */
45 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
[all …]
Dqt1050.c1 // SPDX-License-Identifier: GPL-2.0
229 err = regmap_read(ts->regmap, QT1050_CHIP_ID, &val); in qt1050_identify()
231 dev_err(&ts->client->dev, "Failed to read chip ID: %d\n", err); in qt1050_identify()
236 dev_err(&ts->client->dev, "ID %d not supported\n", val); in qt1050_identify()
241 err = regmap_read(ts->regmap, QT1050_FW_VERSION, &val); in qt1050_identify()
243 dev_err(&ts->client->dev, "could not read the firmware version\n"); in qt1050_identify()
247 dev_info(&ts->client->dev, "AT42QT1050 firmware version %1d.%1d\n", in qt1050_identify()
256 struct input_dev *input = ts->input; in qt1050_irq_threaded()
262 err = regmap_read(ts->regmap, QT1050_DET_STATUS, &val); in qt1050_irq_threaded()
264 dev_err(&ts->client->dev, "Fail to read detection status: %d\n", in qt1050_irq_threaded()
[all …]
/kernel/linux/linux-5.10/drivers/input/misc/
Dcpcap-pwrbutton.c2 * 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 …]
/kernel/linux/linux-6.6/drivers/input/misc/
Dcpcap-pwrbutton.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dgpio_keys_polled.c1 // 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 …]
Dgpio_keys.c1 // 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 …]
Dqt1050.c1 // 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-6.6/drivers/acpi/
Dbutton.c1 // 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>
24 #define ACPI_BUTTON_CLASS "button"
30 #define ACPI_BUTTON_DEVICE_NAME_POWER "Power Button"
34 #define ACPI_BUTTON_DEVICE_NAME_SLEEP "Sleep Button"
56 MODULE_DESCRIPTION("ACPI Button Driver");
72 /* GP-electronic T701, _LID method points to a floating GPIO */
160 .name = "button",
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dbutton.c1 // 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-5.10/drivers/platform/x86/
Dsurfacepro3_button.c1 // 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 …]
Dxo15-ebook.c1 // 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-6.6/drivers/platform/surface/
Dsurfacepro3_button.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * power/home/volume button support for
16 #include <acpi/button.h>
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 …]
/kernel/linux/linux-6.6/drivers/soc/loongson/
Dloongson2_pm.c1 // 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 …]
/kernel/linux/linux-6.6/Documentation/input/
Dgamepad.rst1 ---------------------------
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/
Dgamepad.rst1 ---------------------------
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-6.6/Documentation/input/devices/
Dsentelic.rst8 :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/
Dsentelic.rst8 :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/devicetree/bindings/input/
Dgpio-mouse.txt1 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-6.6/Documentation/devicetree/bindings/input/
Dgpio-mouse.txt1 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-6.6/drivers/hid/
Dhid-elecom.c1 // 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)
13 * Copyright (c) 2017 Tomasz Kramkowski <tk@the-tk.com>
14 * Copyright (c) 2020 YOSHIOKA Takuma <lo48576@hard-wi.red>
25 #include "hid-ids.h"
28 * Certain ELECOM mice misreport their button count meaning that they only work
49 hid_info(hdev, "Fixing up Elecom mouse button count\n"); in mouse_button_fixup()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-ixp4xx/
Ddsmg600-setup.c1 // 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 …]

12345678910>>...42