Home
last modified time | relevance | path

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

12345678910>>...23

/linux-6.3-rc2/drivers/platform/x86/
A Dwireless-hotkey.c41 if (!button->input_dev) in wireless_input_setup()
44 snprintf(button->phys, sizeof(button->phys), "%s/input0", acpi_device_hid(device)); in wireless_input_setup()
47 button->input_dev->phys = button->phys; in wireless_input_setup()
59 input_free_device(button->input_dev); in wireless_input_setup()
68 kfree(button); in wireless_input_destroy()
81 input_sync(button->input_dev); in wl_notify()
83 input_sync(button->input_dev); in wl_notify()
88 struct wl_button *button; in wl_add() local
92 if (!button) in wl_add()
95 device->driver_data = button; in wl_add()
[all …]
A Dadv_swbutton.c35 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()
65 button->input = input; in adv_swbutton_probe()
66 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", ACPI_BUTTON_HID_SWBTN); in adv_swbutton_probe()
[all …]
A Dxo15-ebook.c45 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
55 input_sync(button->input); in ebook_send_state()
84 struct ebook_switch *button; in ebook_switch_add() local
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()
117 input->phys = button->phys; in ebook_switch_add()
142 kfree(button); in ebook_switch_add()
150 input_unregister_device(button->input); in ebook_switch_remove()
[all …]
/linux-6.3-rc2/drivers/input/keyboard/
A Dgpio_keys_polled.c53 input_event(input, type, button->code, button->value); in gpio_keys_button_event()
58 input_event(input, type, button->code, button->value); in gpio_keys_button_event()
185 button->value = 1; in gpio_keys_polled_get_devtree_pdata()
187 button->wakeup = in gpio_keys_polled_get_devtree_pdata()
196 button++; in gpio_keys_polled_get_devtree_pdata()
210 if (button->type != EV_ABS || button->code != code) in gpio_keys_polled_set_abs_params()
214 min = button->value; in gpio_keys_polled_set_abs_params()
216 max = button->value; in gpio_keys_polled_set_abs_params()
284 if (button->wakeup) { in gpio_keys_polled_probe()
333 button->gpio); in gpio_keys_polled_probe()
[all …]
A Dqt1050.c327 (button->samples << 4) | (button->scale)); in qt1050_apply_fw_data()
362 button.keycode); in qt1050_parse_fw()
371 if (button.num < 0 || button.num > QT1050_MAX_KEYS - 1) in qt1050_parse_fw()
391 button.samples = 0; in qt1050_parse_fw()
394 button.samples = ilog2(button.samples); in qt1050_parse_fw()
396 button.samples = 0; in qt1050_parse_fw()
401 button.scale = 0; in qt1050_parse_fw()
404 button.scale = ilog2(button.scale); in qt1050_parse_fw()
406 button.scale = 0; in qt1050_parse_fw()
412 button.thr_cnt = 20; in qt1050_parse_fw()
[all …]
A Dgpio_keys.c368 const struct gpio_keys_button *button = bdata->button; in gpio_keys_gpio_report_event() local
384 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event()
424 const struct gpio_keys_button *button = bdata->button; in gpio_keys_gpio_isr() local
428 (button->type == 0 || button->type == EV_KEY)) { in gpio_keys_gpio_isr()
509 const char *desc = button->desc ? button->desc : "gpio_keys"; in gpio_keys_setup_key()
518 bdata->button = button; in gpio_keys_setup_key()
581 if (button->irq) { in gpio_keys_setup_key()
629 if (button->type && button->type != EV_KEY) { in gpio_keys_setup_key()
757 button->irq = in gpio_keys_get_devtree_pdata()
773 button->wakeup = in gpio_keys_get_devtree_pdata()
[all …]
/linux-6.3-rc2/drivers/input/misc/
A Dcpcap-pwrbutton.c38 struct cpcap_power_button *button = _button; in powerbutton_irq() local
47 pm_wakeup_event(button->dev, 0); in powerbutton_irq()
49 input_sync(button->idev); in powerbutton_irq()
56 struct cpcap_power_button *button; in cpcap_power_button_probe() local
64 button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); in cpcap_power_button_probe()
65 if (!button) in cpcap_power_button_probe()
69 if (!button->idev) in cpcap_power_button_probe()
73 if (!button->regmap) in cpcap_power_button_probe()
76 button->dev = &pdev->dev; in cpcap_power_button_probe()
78 button->idev->name = "cpcap-pwrbutton"; in cpcap_power_button_probe()
[all …]
/linux-6.3-rc2/drivers/acpi/
A Dbutton.c260 input_sync(button->input); in acpi_lid_notify_state()
413 input = button->input; in acpi_button_notify()
421 if (button->suspended) in acpi_button_notify()
450 button->suspended = true; in acpi_button_suspend()
459 button->suspended = false; in acpi_button_resume()
483 struct acpi_button *button; in acpi_button_add() local
494 if (!button) in acpi_button_add()
536 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in acpi_button_add()
544 switch (button->type) { in acpi_button_add()
579 kfree(button); in acpi_button_add()
[all …]
/linux-6.3-rc2/drivers/platform/surface/
A Dsurfacepro3_button.c118 input = button->input; in surface_button_notify()
123 if (button->suspended) in surface_button_notify()
135 button->suspended = true; in surface_button_suspend()
144 button->suspended = false; in surface_button_resume()
189 struct surface_button *button; in surface_button_add() local
203 if (!button) in surface_button_add()
206 device->driver_data = button; in surface_button_add()
215 snprintf(button->phys, sizeof(button->phys), "%s/buttons", hid); in surface_button_add()
218 input->phys = button->phys; in surface_button_add()
238 kfree(button); in surface_button_add()
[all …]
/linux-6.3-rc2/Documentation/devicetree/bindings/input/
A 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>;
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
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";
A Dgpio-keys.yaml26 …"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switc…
48 value is sent for events this button generates when pressed.
52 as a signed 32 bit value, e.g. to make a button generate a
85 Indicates that button is connected to dedicated (not shared) interrupt
86 which can be disabled to suppress events from the button.
/linux-6.3-rc2/scripts/kconfig/lxdialog/
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()
A Dinputbox.c35 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local
109 if (button == -1) { /* Input box selected */ in dialog_inputbox()
232 switch (button) { in dialog_inputbox()
234 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
238 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
244 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
252 switch (button) { in dialog_inputbox()
254 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
258 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
262 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
[all …]
/linux-6.3-rc2/drivers/input/rmi4/
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
152 f3a->gpio_key_map[i] = button; in rmi_f3a_map_gpios()
153 input_set_capability(input, EV_KEY, button++); in rmi_f3a_map_gpios()
[all …]
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()
212 int byte_position = button >> 3; in rmi_f30_is_valid_button()
213 int bit_position = button & 0x07; in rmi_f30_is_valid_button()
229 unsigned int button = BTN_LEFT; in rmi_f30_map_gpios() local
252 f30->gpioled_key_map[i] = button; in rmi_f30_map_gpios()
[all …]
/linux-6.3-rc2/arch/mips/boot/dts/ingenic/
A Dgcw0.dts135 button-0 {
142 button-1 {
149 button-2 {
156 button-3 {
163 button-4 {
170 button-5 {
177 button-6 {
184 button-7 {
191 button-8 {
198 button-9 {
[all …]
/linux-6.3-rc2/Documentation/input/devices/
A Dsentelic.rst16 page (5th button)
217 1: left button is generated by the external button
230 Bit4 => scroll up button
269 Bit5 => scroll up button
296 Bit5 => scroll up button
314 1: left button is generated by the external button
326 Bit5 => scroll up button
356 1: The LEFT button is generated by external button
384 1: The LEFT button is generated by external button
389 button is pressed.
[all …]
/linux-6.3-rc2/Documentation/input/
A 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.
177 - 1-button Pad:
181 - 2-button Pad:
183 Left button mapped as BTN_SELECT, right button mapped as BTN_START
[all …]
/linux-6.3-rc2/arch/arm/boot/dts/
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 {
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-6.3-rc2/arch/arm64/boot/dts/amlogic/
A Dmeson-gxbb-p200.dts30 button-home {
36 button-esc {
42 button-up {
48 button-down {
54 button-menu {
A Dmeson-g12b-odroid-go-ultra.dts97 dpad-up-button {
117 a-button {
122 b-button {
127 y-button {
132 x-button {
137 f1-button {
142 f2-button {
147 f3-button {
152 f4-button {
157 f5-button {
[all …]
/linux-6.3-rc2/drivers/media/usb/em28xx/
A Dem28xx-input.c516 const struct em28xx_button *button; in em28xx_query_buttons() local
518 button = &dev->board.buttons[j]; in em28xx_query_buttons()
526 is_pressed = regval & button->mask; in em28xx_query_buttons()
528 & button->mask; in em28xx_query_buttons()
529 if (button->inverted) { in em28xx_query_buttons()
534 if (is_pressed && button->reg_clearing) in em28xx_query_buttons()
535 em28xx_write_reg(dev, button->reg_clearing, in em28xx_query_buttons()
536 (~regval & button->mask) in em28xx_query_buttons()
537 | (regval & ~button->mask)); in em28xx_query_buttons()
543 switch (button->role) { in em28xx_query_buttons()
[all …]

Completed in 39 milliseconds

12345678910>>...23