Home
last modified time | relevance | path

Searched full:button (Results 1 – 25 of 1954) sorted by relevance

12345678910>>...79

/kernel/linux/linux-6.6/drivers/platform/x86/
Dwireless-hotkey.c3 * Airplane mode button for AMD, HP & Xiaomi laptops
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()
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()
50 button->input_dev->id.bustype = BUS_HOST; in wireless_input_setup()
51 button->input_dev->evbit[0] = BIT(EV_KEY); in wireless_input_setup()
52 set_bit(KEY_RFKILL, button->input_dev->keybit); in wireless_input_setup()
[all …]
Dadv_swbutton.c3 * adv_swbutton.c - Software Button Interface Driver.
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()
49 struct adv_swbutton *button; in adv_swbutton_probe() local
55 button = devm_kzalloc(&device->dev, sizeof(*button), GFP_KERNEL); in adv_swbutton_probe()
56 if (!button) in adv_swbutton_probe()
59 dev_set_drvdata(&device->dev, button); in adv_swbutton_probe()
[all …]
Dxo15-ebook.c4 * (based on generic ACPI button driver)
45 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
54 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
55 input_sync(button->input); in ebook_send_state()
84 struct ebook_switch *button; in ebook_switch_add() local
90 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add()
91 if (!button) in ebook_switch_add()
94 device->driver_data = button; in ebook_switch_add()
96 button->input = input = input_allocate_device(); in ebook_switch_add()
114 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add()
[all …]
/kernel/linux/linux-6.6/drivers/input/keyboard/
Dgpio_keys_polled.c45 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()
68 const struct gpio_keys_button *button, in gpio_keys_polled_check_state() argument
78 gpio_keys_button_event(input, button, state); in gpio_keys_polled_check_state()
146 struct gpio_keys_button *button; in gpio_keys_polled_get_devtree_pdata() local
[all …]
Dgpio_keys.c34 const struct gpio_keys_button *button; member
100 * @type: type of button (%EV_KEY, %EV_SW)
115 * @type: type of button (%EV_KEY, %EV_SW)
141 * gpio_keys_disable_button() - disables given GPIO button
142 * @bdata: button data for button to be disabled
144 * Disables button pointed by @bdata. This is done by masking
145 * IRQ line. After this function is called, button won't generate
166 * gpio_keys_enable_button() - enables given GPIO button
167 * @bdata: button data for button to be disabled
169 * Enables given button pointed by @bdata.
[all …]
Dqt1050.c309 struct qt1050_key *button = &ts->keys[0]; in qt1050_apply_fw_data() local
320 for (i = 0; i < QT1050_MAX_KEYS; i++, button++) { in qt1050_apply_fw_data()
322 if (button->keycode == KEY_RESERVED) in qt1050_apply_fw_data()
325 err = qt1050_set_key(map, button->num, 1); in qt1050_apply_fw_data()
329 key_regs = qt1050_get_key_regs(button->num); in qt1050_apply_fw_data()
332 (button->samples << 4) | (button->scale)); in qt1050_apply_fw_data()
335 err = regmap_write(map, key_regs->csd, button->charge_delay); in qt1050_apply_fw_data()
338 err = regmap_write(map, key_regs->nthr, button->thr_cnt); in qt1050_apply_fw_data()
357 struct qt1050_key button; in qt1050_parse_fw() local
361 &button.keycode)) { in qt1050_parse_fw()
[all …]
/kernel/linux/linux-5.10/drivers/input/misc/
Dcpcap-pwrbutton.c2 * CPCAP Power Button Input Driver
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()
61 if (!button) in cpcap_power_button_probe()
[all …]
/kernel/linux/linux-6.6/drivers/input/misc/
Dcpcap-pwrbutton.c3 * CPCAP Power Button Input Driver
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
56 button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); in cpcap_power_button_probe()
57 if (!button) in cpcap_power_button_probe()
[all …]
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dgpio_keys_polled.c45 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()
68 const struct gpio_keys_button *button, in gpio_keys_polled_check_state() argument
78 gpio_keys_button_event(input, button, state); in gpio_keys_polled_check_state()
146 struct gpio_keys_button *button; in gpio_keys_polled_get_devtree_pdata() local
[all …]
Dgpio_keys.c33 const struct gpio_keys_button *button; member
97 * @type: type of button (%EV_KEY, %EV_SW)
112 * @type: type of button (%EV_KEY, %EV_SW)
126 * gpio_keys_disable_button() - disables given GPIO button
127 * @bdata: button data for button to be disabled
129 * Disables button pointed by @bdata. This is done by masking
130 * IRQ line. After this function is called, button won't generate
156 * gpio_keys_enable_button() - enables given GPIO button
157 * @bdata: button data for button to be disabled
159 * Enables given button pointed by @bdata.
[all …]
Dqt1050.c304 struct qt1050_key *button = &ts->keys[0]; in qt1050_apply_fw_data() local
315 for (i = 0; i < QT1050_MAX_KEYS; i++, button++) { in qt1050_apply_fw_data()
317 if (button->keycode == KEY_RESERVED) in qt1050_apply_fw_data()
320 err = qt1050_set_key(map, button->num, 1); in qt1050_apply_fw_data()
324 key_regs = qt1050_get_key_regs(button->num); in qt1050_apply_fw_data()
327 (button->samples << 4) | (button->scale)); in qt1050_apply_fw_data()
330 err = regmap_write(map, key_regs->csd, button->charge_delay); in qt1050_apply_fw_data()
333 err = regmap_write(map, key_regs->nthr, button->thr_cnt); in qt1050_apply_fw_data()
352 struct qt1050_key button; in qt1050_parse_fw() local
356 &button.keycode)) { in qt1050_parse_fw()
[all …]
/kernel/linux/linux-6.6/drivers/acpi/
Dbutton.c3 * 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");
160 .name = "button",
206 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_notify_state() local
218 button->last_state != !!state) in acpi_lid_notify_state()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dbutton.c3 * 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");
144 .name = "button",
194 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_notify_state() local
[all …]
/kernel/linux/linux-5.10/drivers/platform/x86/
Dsurfacepro3_button.c3 * 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()
105 /* Volume down button press,release handle */ in surface_button_notify()
[all …]
Dxo15-ebook.c4 * (based on generic ACPI button driver)
47 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
56 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
57 input_sync(button->input); in ebook_send_state()
86 struct ebook_switch *button; in ebook_switch_add() local
92 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add()
93 if (!button) in ebook_switch_add()
96 device->driver_data = button; in ebook_switch_add()
98 button->input = input = input_allocate_device(); in ebook_switch_add()
116 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add()
[all …]
/kernel/linux/linux-6.6/drivers/platform/surface/
Dsurfacepro3_button.c3 * 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()
118 input = button->input; in surface_button_notify()
[all …]
/kernel/linux/linux-6.6/drivers/soc/loongson/
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->dev, irq); in loongson2_power_button_init()
117 device_set_wakeup_capable(&button->dev, true); in loongson2_power_button_init()
[all …]
/kernel/linux/linux-6.6/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
109 - 2-Button Pad:
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.
115 - 3-Button Pad:
122 - 4-Button Pad:
[all …]
/kernel/linux/linux-5.10/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
109 - 2-Button Pad:
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.
115 - 3-Button Pad:
122 - 4-Button Pad:
[all …]
/kernel/linux/linux-6.6/Documentation/input/devices/
Dsentelic.rst15 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward
16 page (5th button)
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.
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.
69 Bit2 => Middle Button, 1 is pressed, 0 is not pressed.
[all …]
/kernel/linux/linux-5.10/Documentation/input/devices/
Dsentelic.rst15 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward
16 page (5th button)
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.
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.
69 Bit2 => Middle Button, 1 is pressed, 0 is not pressed.
[all …]
/kernel/linux/linux-5.10/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>;
/kernel/linux/linux-6.6/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>;
/kernel/linux/linux-6.6/drivers/hid/
Dhid-elecom.c28 * 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()
71 * 20: button bit count in elecom_report_fixup()
73 * 22: button report size in elecom_report_fixup()
74 * 14: button usage maximum in elecom_report_fixup()
83 * 12: button bit count in elecom_report_fixup()
85 * 14: button report size in elecom_report_fixup()
86 * 20: button usage maximum in elecom_report_fixup()
96 * 12: button bit count in elecom_report_fixup()
98 * 14: button report size in elecom_report_fixup()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-ixp4xx/
Ddsmg600-setup.c47 #define DSMG600_PB_GPIO 15 /* power button */
48 #define DSMG600_RB_GPIO 3 /* reset button */
176 /* This is used to make sure the power-button pusher is serious. The button
181 /* Must hold the button down for at least this many counts to be processed */
190 * state of the power button. in dsmg600_power_handler()
195 /* IO Pin is 1 (button pushed) */ in dsmg600_power_handler()
201 /* Done on button release, to allow for auto-power-on mods. */ in dsmg600_power_handler()
241 gpio_request(DSMG600_RB_GPIO, "reset button"); in dsmg600_gpio_init()
243 IRQF_TRIGGER_LOW, "DSM-G600 reset button", NULL) < 0) { in dsmg600_gpio_init()
245 printk(KERN_DEBUG "Reset Button IRQ %d not available\n", in dsmg600_gpio_init()
[all …]

12345678910>>...79