Home
last modified time | relevance | path

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

12345678910>>...12

/Linux-v4.19/drivers/input/misc/
Dcpcap-pwrbutton.c38 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()
61 if (!button) in cpcap_power_button_probe()
64 button->idev = devm_input_allocate_device(&pdev->dev); in cpcap_power_button_probe()
[all …]
/Linux-v4.19/drivers/input/keyboard/
Dgpio_keys_polled.c49 const struct gpio_keys_button *button, in gpio_keys_button_event() argument
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()
64 __set_bit(button->code, bdev->abs_axis_seen); in gpio_keys_button_event()
67 input_event(input, type, button->code, state); in gpio_keys_button_event()
73 const struct gpio_keys_button *button, in gpio_keys_polled_check_state() argument
83 gpio_keys_button_event(dev, button, state); in gpio_keys_polled_check_state()
150 struct gpio_keys_button *button; in gpio_keys_polled_get_devtree_pdata() local
[all …]
Dgpio_keys.c36 const struct gpio_keys_button *button; member
206 if (bdata->button->type != type) in gpio_keys_attr_show_helper()
260 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
264 !bdata->button->can_disable) { in gpio_keys_attr_store_helper()
275 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
364 const struct gpio_keys_button *button = bdata->button; in gpio_keys_gpio_report_event() local
366 unsigned int type = button->type ?: EV_KEY; in gpio_keys_gpio_report_event()
378 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event()
392 if (bdata->button->wakeup) in gpio_keys_gpio_work_func()
402 if (bdata->button->wakeup) { in gpio_keys_gpio_isr()
[all …]
/Linux-v4.19/drivers/acpi/
Dbutton.c161 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_notify_state() local
174 button->last_state != !!state) in acpi_lid_notify_state()
179 next_report = ktime_add(button->last_time, in acpi_lid_notify_state()
181 if (button->last_state == !!state && in acpi_lid_notify_state()
223 input_report_switch(button->input, in acpi_lid_notify_state()
225 input_sync(button->input); in acpi_lid_notify_state()
233 input_report_switch(button->input, SW_LID, !state); in acpi_lid_notify_state()
234 input_sync(button->input); in acpi_lid_notify_state()
235 button->last_state = !!state; in acpi_lid_notify_state()
236 button->last_time = ktime_get(); in acpi_lid_notify_state()
[all …]
/Linux-v4.19/drivers/platform/x86/
Dsurfacepro3_button.c76 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local
118 input = button->input; in surface_button_notify()
122 pm_wakeup_dev_event(&device->dev, 0, button->suspended); in surface_button_notify()
123 if (button->suspended) in surface_button_notify()
133 struct surface_button *button = acpi_driver_data(device); in surface_button_suspend() local
135 button->suspended = true; in surface_button_suspend()
142 struct surface_button *button = acpi_driver_data(device); in surface_button_resume() local
144 button->suspended = false; in surface_button_resume()
151 struct surface_button *button; in surface_button_add() local
161 button = kzalloc(sizeof(struct surface_button), GFP_KERNEL); in surface_button_add()
[all …]
Dxo15-ebook.c51 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
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
96 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add()
97 if (!button) in ebook_switch_add()
100 device->driver_data = button; in ebook_switch_add()
102 button->input = input = input_allocate_device(); in ebook_switch_add()
120 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add()
123 input->phys = button->phys; in ebook_switch_add()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/input/
Dgpio-mouse.txt15 - button-left-gpios: GPIO line handle to the left mouse button
16 - button-middle-gpios: GPIO line handle to the middle mouse button
17 - button-right-gpios: GPIO line handle to the right mouse button
29 button-left-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
30 button-middle-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
31 button-right-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
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
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";
Dsun4i-lradc-keys.txt28 button@191 {
35 button@392 {
42 button@601 {
49 button@795 {
56 button@987 {
Dgpio-keys-polled.txt11 Each button (key) is represented as a sub-node of "gpio-keys-polled":
19 - linux,input-type: Specify event type this button/key generates.
22 value is sent for events this button generates when pressed.
26 e.g. to make a button generate a value of -1 use:
30 - wakeup-source: Boolean, button can wake-up the system.
Dadc-keys.txt15 Each button (key) is represented as a sub-node of "adc-keys":
32 button-up {
38 button-down {
44 button-enter {
Dgpio-keys.txt11 Each button (key) is represented as a sub-node of "gpio-keys":
23 - linux,input-type: Specify event type this button/key generates.
27 - wakeup-source: Boolean, button can wake-up the system.
37 - linux,can-disable: Boolean, indicates that button is connected
39 suppress events from the button.
/Linux-v4.19/scripts/kconfig/lxdialog/
Dyesno.c44 int i, x, y, key = 0, button = 0; in dialog_yesno() local
93 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); in dialog_yesno()
95 print_buttons(dialog, height, width, button); in dialog_yesno()
101 return button; in dialog_yesno()
Dinputbox.c48 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local
122 if (button == -1) { /* Input box selected */ in dialog_inputbox()
244 switch (button) { in dialog_inputbox()
246 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
250 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
256 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
264 switch (button) { in dialog_inputbox()
266 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
270 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
274 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
[all …]
Dchecklist.c121 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
290 button = 1; in dialog_checklist()
302 return button; in dialog_checklist()
306 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_checklist()
307 ? 1 : (button > 1 ? 0 : button); in dialog_checklist()
309 print_buttons(dialog, height, width, button); in dialog_checklist()
/Linux-v4.19/drivers/input/rmi4/
Drmi_f30.c105 struct f30_data *f30, unsigned int button) in rmi_f30_report_button() argument
107 unsigned int reg_num = button >> 3; in rmi_f30_report_button()
108 unsigned int bit_num = button & 0x07; in rmi_f30_report_button()
109 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button()
113 button >= TRACKSTICK_RANGE_START && in rmi_f30_report_button()
114 button <= TRACKSTICK_RANGE_END) { in rmi_f30_report_button()
213 static bool rmi_f30_is_valid_button(int button, struct rmi_f30_ctrl_data *ctrl) in rmi_f30_is_valid_button() argument
215 int byte_position = button >> 3; in rmi_f30_is_valid_button()
216 int bit_position = button & 0x07; in rmi_f30_is_valid_button()
232 unsigned int button = BTN_LEFT; in rmi_f30_map_gpios() local
[all …]
/Linux-v4.19/Documentation/input/
Dgamepad.rst11 having user-space deal with different button-mappings for each gamepad, this
51 Furthermore, many gamepads have a fancy branded button that is used as
52 special system-button. It often looks different to the other buttons and
57 Analog-sticks may also provide a digital button if you press them.
106 Please note that 2- and 3-button pads are fairly rare and old. You might
112 BTN_EAST. For vertical layouts, the upper button is BTN_EAST. For
113 horizontal layouts, the button more on the right is BTN_EAST.
127 If rectangular-shaped, the upper-left button is BTN_NORTH, lower-left
167 If only one trigger-button combination is present (upper+lower), they are
177 - 1-button Pad:
[all …]
/Linux-v4.19/Documentation/input/devices/
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 …]
Damijoy.rst34 6 Fire button
37 9 Thumb button
50 5 Middle button
51 6 Left button
54 9 Right button
63 1 Top button
64 2 Top2 button
65 3 Trigger button
66 4 Thumb button
84 5 Touch button
[all …]
/Linux-v4.19/arch/arm/boot/dts/
Ds3c6410-mini6410.dts75 button-k1 {
82 button-k2 {
89 button-k3 {
96 button-k4 {
103 button-k5 {
110 button-k6 {
117 button-k7 {
124 button-k8 {
/Linux-v4.19/drivers/staging/unisys/visorinput/
Dvisorinput.c607 int xmotion, ymotion, button; in visorinput_channel_interrupt() local
646 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
647 if (button < 0) in visorinput_channel_interrupt()
649 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt()
653 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
654 if (button < 0) in visorinput_channel_interrupt()
656 input_report_key(visorinput_dev, button, 0); in visorinput_channel_interrupt()
660 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
661 if (button < 0) in visorinput_channel_interrupt()
663 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt()
[all …]
/Linux-v4.19/arch/arm64/boot/dts/amlogic/
Dmeson-gxbb-p200.dts30 button-home {
36 button-esc {
42 button-up {
48 button-down {
54 button-menu {
/Linux-v4.19/Documentation/devicetree/bindings/sound/
Dcs42l42.txt55 enabling button detection interrupts. After auto-detection and before
56 servicing button interrupts, the HS bias needs time to settle. If you
57 don't wait, there is possibility for erroneous button interrupt.
63 receiving a button press interrupt. With level detect interrupts, you want
64 to wait a small amount of time to make sure the button press is making a
70 - cirrus,bias-lvls : For a level-detect headset button scheme, each button
71 will bias the mic pin to a certain voltage. To determine which button was
/Linux-v4.19/drivers/media/usb/em28xx/
Dem28xx-input.c539 const struct em28xx_button *button; in em28xx_query_buttons() local
541 button = &dev->board.buttons[j]; in em28xx_query_buttons()
544 if (button->reg_r != dev->button_polling_addresses[i]) { in em28xx_query_buttons()
549 is_pressed = regval & button->mask; in em28xx_query_buttons()
551 & button->mask; in em28xx_query_buttons()
552 if (button->inverted) { in em28xx_query_buttons()
557 if (is_pressed && button->reg_clearing) in em28xx_query_buttons()
558 em28xx_write_reg(dev, button->reg_clearing, in em28xx_query_buttons()
559 (~regval & button->mask) in em28xx_query_buttons()
560 | (regval & ~button->mask)); in em28xx_query_buttons()
[all …]

12345678910>>...12