Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 443) sorted by relevance

12345678910>>...18

/linux/drivers/acpi/
H A Dbutton.c3 * 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"
35 #define ACPI_BUTTON_CLASS_SLEEP "button/sleep"
39 #define ACPI_BUTTON_CLASS_LID "button/lid"
189 .name = "acpi-button",
197 struct device *dev; /* physical button device */
232 static void acpi_lid_notify_state(struct acpi_button *button, boo in acpi_lid_notify_state()
220 acpi_lid_notify_state(struct acpi_button * button,bool state) acpi_lid_notify_state() argument
299 struct acpi_button *button = seq->private; acpi_button_state_seq_show() local
308 acpi_lid_add_fs(struct acpi_button * button) acpi_lid_add_fs() argument
356 struct acpi_button *button = data; acpi_lid_remove_fs() local
370 devm_acpi_lid_add_fs(struct device * dev,struct acpi_button * button) devm_acpi_lid_add_fs() argument
411 acpi_lid_update_state(struct acpi_button * button,bool signal_wakeup) acpi_lid_update_state() argument
425 acpi_lid_initialize_state(struct acpi_button * button) acpi_lid_initialize_state() argument
444 struct acpi_button *button = data; acpi_lid_notify() local
461 struct acpi_button *button = data; acpi_button_notify() local
508 struct acpi_button *button = dev_get_drvdata(dev); acpi_button_suspend() local
516 struct acpi_button *button = dev_get_drvdata(dev); acpi_button_resume() local
539 struct acpi_button *button = input_get_drvdata(input); acpi_lid_input_open() local
548 acpi_button_notify_handler(struct acpi_button * button) acpi_button_notify_handler() argument
569 struct acpi_button *button = data; acpi_button_remove_event_handler() local
598 acpi_button_add_fixed_event_handler(u32 event,struct acpi_button * button) acpi_button_add_fixed_event_handler() argument
609 acpi_button_add_event_handler(struct acpi_button * button) acpi_button_add_event_handler() argument
647 devm_acpi_button_add_event_handler(struct device * dev,struct acpi_button * button) devm_acpi_button_add_event_handler() argument
664 struct acpi_button *button; acpi_button_probe() local
761 struct acpi_button *button = platform_get_drvdata(pdev); acpi_button_remove() local
[all...]
/linux/drivers/platform/x86/
H A Dwireless-hotkey.c40 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()
54 set_bit(KEY_RFKILL, button->input_dev->keybit); in wireless_input_setup()
56 err = input_register_device(button->input_dev); in wireless_input_setup()
[all …]
H A Dadv_swbutton.c31 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_obj(&device->dev, *button); 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 Dxo15-ebook.c4 * (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_obj(dev, *button); in ebook_switch_probe()
90 if (!button) in ebook_switch_probe()
93 platform_set_drvdata(pdev, button); in ebook_switch_probe()
99 button in ebook_switch_probe()
137 struct ebook_switch *button = platform_get_drvdata(pdev); ebook_switch_remove() local
[all...]
/linux/drivers/input/misc/
H A Dcpcap-pwrbutton.c30 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_obj(&pdev->dev, *button); in cpcap_power_button_probe()
57 if (!button) in cpcap_power_button_probe()
[all...]
/linux/drivers/platform/surface/
H A Dsurfacepro3_button.c78 struct surface_button *button = dev_get_drvdata(dev); in surface_button_notify() local
119 input = button->input; in surface_button_notify()
123 pm_wakeup_dev_event(dev, 0, button->suspended); in surface_button_notify()
124 if (button->suspended) in surface_button_notify()
133 struct surface_button *button = dev_get_drvdata(dev); in surface_button_suspend() local
135 button->suspended = true; in surface_button_suspend()
141 struct surface_button *button = dev_get_drvdata(dev); in surface_button_resume() local
143 button->suspended = false; in surface_button_resume()
187 struct surface_button *button; in surface_button_probe() local
203 button = kzalloc_obj(struct surface_button); in surface_button_probe()
[all …]
/linux/tools/testing/selftests/hid/tests/
H A Dtest_tablet.py35 """Represents whether a button is pressed on the stylus"""
60 self, touch: BtnTouch, tool: Optional[ToolType], button: Optional[bool]
64 self.button = button # type: ignore
70 button = False
87 # we take only the provided button into account
89 button = bool(evdev.value[test_button.value])
92 # the button will be released after
94 button = False
96 return cls((touch, tool, button)) # typ
500 assert_expected_input_events(self, evdev, button) global() argument
543 move_to(self, pen, state, button) global() argument
614 event(self, pen, button) global() argument
662 validate_transitions( self, from_state, pen, evdev, events, allow_intermediate_states, button ) global() argument
684 _test_states( self, state_list, scribble, allow_intermediate_states, button=None ) global() argument
922 move_to(self, pen, state, button) global() argument
1024 move_to(self, pen, state, button, debug=True) global() argument
1075 send_intermediate_state(self, pen, state, button) global() argument
1080 event(self, pen, button) global() argument
1161 move_to(self, pen, state, button, debug=True) global() argument
1247 event(self, pen, button) global() argument
[all...]
/linux/drivers/soc/loongson/
H A Dloongson2_pm.c100 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 in loongson2_power_button_init()
[all...]
/linux/drivers/hid/
H A Dhid-winwing.c129 static int winwing_map_button(int button, int has_grip15) in winwing_map_button() argument
131 if (button < 1) in winwing_map_button()
134 if (button > 112) in winwing_map_button()
137 if (button <= 16) { in winwing_map_button()
142 return (button - 1) + BTN_JOYSTICK; in winwing_map_button()
145 if (button >= 65) { in winwing_map_button()
150 return (button - 65) + BTN_TRIGGER_HAPPY17; in winwing_map_button()
158 if (button >= 33) in winwing_map_button()
164 return (button - 17) + BTN_TRIGGER_HAPPY1; in winwing_map_button()
167 if (button >= 49) { in winwing_map_button()
[all …]
/linux/scripts/kconfig/lxdialog/
H A Dyesno.c31 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()
H A Dinputbox.c35 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 Dchecklist.c108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
276 button = 1; in dialog_checklist()
288 return button; in dialog_checklist()
292 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_checklist()
293 ? 1 : (button > 1 ? 0 : button); in dialog_checklist()
295 print_buttons(dialog, height, width, button); in dialog_checklist()
/linux/drivers/input/rmi4/
H A Drmi_f3a.c39 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
150 f3a->gpio_key_map[i] = button; in rmi_f3a_map_gpios()
[all...]
H A Drmi_f30.c102 struct f30_data *f30, unsigned int button) in rmi_f30_report_button() argument
104 unsigned int reg_num = button >> 3; in rmi_f30_report_button()
105 unsigned int bit_num = button & 0x07; in rmi_f30_report_button()
106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button()
110 button >= TRACKSTICK_RANGE_START && in rmi_f30_report_button()
111 button <= TRACKSTICK_RANGE_END) { in rmi_f30_report_button()
210 static bool rmi_f30_is_valid_button(int button, struct rmi_f30_ctrl_data *ctrl) in rmi_f30_is_valid_button() argument
212 int byte_position = button >> 3; in rmi_f30_is_valid_button()
213 int bit_position = button & 0x07; in rmi_f30_is_valid_button()
217 * ctrl3 -> data == 1 -> actual button in rmi_f30_is_valid_button()
229 unsigned int button = BTN_LEFT; rmi_f30_map_gpios() local
[all...]
/linux/arch/arm64/boot/dts/allwinner/
H A Dsun50i-h700-anbernic-rg35xx-2024.dts37 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/arch/arm/boot/dts/allwinner/
H A Dsun8i-v3s-anbernic-rg-nano.dts33 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/Documentation/devicetree/bindings/input/
H A Dti,palmas-pwrbutton.txt1 Texas Instruments Palmas family power button module
7 This module provides a simple power button event via an Interrupt.
11 - "ti,palmas-pwrbutton": For Palmas compatible power on button
12 - interrupts: Interrupt number of power button submodule on device.
17 button should be kept pressed for Palmas to power off automatically.
21 which the power button should be kept pressed for Palmas to register
H A De3x0-button.txt1 National Instruments Ettus Research USRP E3x0 button driver
5 This module provides a simple power button event via two interrupts.
9 - "ettus,e3x0-button": For devices such as the NI Ettus Research USRP E3x0
18 button {
19 compatible = "ettus,e3x0-button";
/linux/Documentation/input/devices/
H A Dsentelic.rst15 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward
16 page (5th button)
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.
78 Bit4 => 1 = 4th mouse button is pressed, Forward one page.
79 0 = 4th mouse button is not pressed.
80 Bit5 => 1 = 5th mouse button is pressed, Backward one page.
81 0 = 5th mouse button is not pressed.
[all …]
/linux/arch/arm/boot/dts/samsung/
H A Ds3c6410-mini6410.dts67 button-k1 {
74 button-k2 {
81 button-k3 {
88 button-k4 {
95 button-k5 {
102 button-k6 {
109 button-k7 {
116 button-k8 {
/linux/arch/arm/boot/dts/marvell/
H A Dkirkwood-dnskw.dtsi15 button-power {
16 label = "Power button";
20 button-eject {
21 label = "USB unmount button";
25 button-reset {
26 label = "Reset button";
83 pmx_button_power: pmx-button-power {
131 pmx_button_unmount: pmx-button-unmount {
135 pmx_button_reset: pmx-button-reset {
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm4709-buffalo-wxr-1900dhp.dts81 button-power {
87 button-restart {
93 button-aoss {
100 button-mode {
107 button-sw-ap {
113 button-eject {
/linux/arch/arm64/boot/dts/apple/
H A Ds800x-ipad5.dtsi17 button-home {
24 button-power {
31 button-voldown {
37 button-volup {
H A Dt8011-pro2.dtsi16 button-home {
23 button-power {
30 button-voldown {
36 button-volup {
/linux/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-facebook-greatlakes.dts254 /*F0-F7*/ "slot1-bmc-reset-button","slot2-bmc-reset-button",
255 "slot3-bmc-reset-button","slot4-bmc-reset-button",
261 /*I0-I7*/ "","","","","","","bb-bmc-button","",
276 /*V0-V7*/ "bmc-slot1-ac-button","bmc-slot2-ac-button",
277 "bmc-slot3-ac-button","bmc-slot4-ac-button",

12345678910>>...18