/linux/drivers/platform/x86/ |
H A D | wireless-hotkey.c | 3 * Airplane mode button for AMD, HP & Xiaomi laptops 17 MODULE_DESCRIPTION("Airplane mode button for AMD, HP & Xiaomi laptops"); 40 struct wl_button *button = acpi_driver_data(device); 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", acpi_device_hid(device)); in wireless_input_setup() 49 button->input_dev->name = "Wireless hotkeys"; in wireless_input_setup() 50 button->input_dev->phys = button in wireless_input_setup() 68 struct wl_button *button = acpi_driver_data(device); wireless_input_destroy() local 76 struct wl_button *button = acpi_driver_data(acpi_dev); wl_notify() local 91 struct wl_button *button; wl_add() local [all...] |
H A D | adv_swbutton.c | 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...] |
H A D | xo15-ebook.c | 4 * (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() 85 struct ebook_switch *button; in ebook_switch_add() local 89 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add() 90 if (!button) in ebook_switch_add() 93 device->driver_data = button; in ebook_switch_add() 95 button->input = input = input_allocate_device(); in ebook_switch_add() 111 snprintf(button in ebook_switch_add() 145 struct ebook_switch *button = acpi_driver_data(device); ebook_switch_remove() local [all...] |
/linux/drivers/input/misc/ |
H A D | cpcap-pwrbutton.c | 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...] |
/linux/drivers/acpi/ |
H A D | button.c | 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" 161 .name = "button", 207 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_notify_state() local 219 button->last_state != !!state) in acpi_lid_notify_state() 224 next_report = ktime_add(button->last_time, in acpi_lid_notify_state() 226 if (button->last_state == !!state && in acpi_lid_notify_state() 268 input_report_switch(button in acpi_lid_notify_state() 301 struct acpi_button *button = acpi_driver_data(device); acpi_button_add_fs() local 360 struct acpi_button *button = acpi_driver_data(device); acpi_button_remove_fs() local 405 struct acpi_button *button = acpi_driver_data(device); acpi_lid_initialize_state() local 425 struct acpi_button *button; acpi_lid_notify() local 443 struct acpi_button *button; acpi_button_notify() local 492 struct acpi_button *button = acpi_driver_data(device); acpi_button_suspend() local 502 struct acpi_button *button = acpi_driver_data(device); acpi_button_resume() local 525 struct acpi_button *button = acpi_driver_data(device); acpi_lid_input_open() local 537 struct acpi_button *button; acpi_button_add() local 670 struct acpi_button *button = acpi_driver_data(device); acpi_button_remove() local [all...] |
/linux/drivers/input/keyboard/ |
H A D | gpio_keys.c | 34 const struct gpio_keys_button *button; member 102 * @type: type of button (%EV_KEY, %EV_SW) 117 * @type: type of button (%EV_KEY, %EV_SW) 143 * gpio_keys_disable_button() - disables given GPIO button 144 * @bdata: button data for button to be disabled 146 * Disables button pointed by @bdata. This is done by masking 147 * IRQ line. After this function is called, button won't generate 168 * gpio_keys_enable_button() - enables given GPIO button 169 * @bdata: button dat 362 const struct gpio_keys_button *button = bdata->button; gpio_keys_gpio_report_event() local 418 const struct gpio_keys_button *button = bdata->button; gpio_keys_gpio_isr() local 499 gpio_keys_setup_key(struct platform_device * pdev,struct input_dev * input,struct gpio_keys_drvdata * ddata,const struct gpio_keys_button * button,int idx,struct fwnode_handle * child) gpio_keys_setup_key() argument 758 struct gpio_keys_button *button; gpio_keys_get_devtree_pdata() local 899 const struct gpio_keys_button *button = &pdata->buttons[i]; gpio_keys_probe() local [all...] |
H A D | qt1050.c | 309 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() 356 struct qt1050_key button; in qt1050_parse_fw() local [all...] |
/linux/drivers/platform/surface/ |
H A D | surfacepro3_button.c | 3 * power/home/volume button support for 16 #include <acpi/button.h> 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 in surface_button_notify() 133 struct surface_button *button = acpi_driver_data(device); surface_button_suspend() local 142 struct surface_button *button = acpi_driver_data(device); surface_button_resume() local 189 struct surface_button *button; surface_button_add() local 244 struct surface_button *button = acpi_driver_data(device); surface_button_remove() local [all...] |
/linux/tools/testing/selftests/hid/tests/ |
H A D | test_tablet.py | 35 """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 D | loongson2_pm.c | 100 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/scripts/kconfig/lxdialog/ |
H A D | yesno.c | 31 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 D | inputbox.c | 35 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 in dialog_inputbox() [all...] |
/linux/drivers/input/rmi4/ |
H A D | rmi_f3a.c | 39 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() [all...] |
H A D | rmi_f30.c | 102 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/drivers/hid/bpf/progs/ |
H A D | Huion__Dial-2.bpf.c | 28 * tablet mode. In firmware mode (out of the box) the tablet sends button events 243 // Byte 5 is the button state 406 // Byte 4 is the button state 491 static __u8 button; in SEC() local 498 /* Nicely enough, this device only supports one button down at a time so in SEC() 508 button &= 0xc0; in SEC() 514 button |= BIT(0); in SEC() 517 button |= BIT(1); in SEC() 520 button |= BIT(2); in SEC() 523 button | in SEC() [all...] |
/linux/arch/arm64/boot/dts/allwinner/ |
H A D | sun50i-h700-anbernic-rg35xx-2024.dts | 37 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 [all...] |
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3566-anbernic-rg-arc.dtsi | 130 * Device uses a non-standard six button layout for a gamepad with X, 135 button-a { 141 button-b { 147 button-c { 153 button-left { 159 button-r1 { 165 button-r2 { 171 button-right { 177 button-x { 183 button [all...] |
/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun8i-v3s-anbernic-rg-nano.dts | 33 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 [all...] |
/linux/Documentation/devicetree/bindings/input/ |
H A D | ti,palmas-pwrbutton.txt | 1 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 D | e3x0-button.txt | 1 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/arch/mips/boot/dts/ingenic/ |
H A D | gcw0.dts | 135 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 { 192 label = "Left shoulder button"; [all...] |
/linux/Documentation/input/devices/ |
H A D | sentelic.rst | 15 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 i [all...] |
/linux/Documentation/input/ |
H A D | gamepad.rst | 11 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 Pa [all...] |
/linux/arch/arm/boot/dts/samsung/ |
H A D | s3c6410-mini6410.dts | 67 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/broadcom/ |
H A D | bcm4709-buffalo-wxr-1900dhp.dts | 81 button-power { 87 button-restart { 93 button-aoss { 100 button-mode { 107 button-sw-ap { 113 button-eject {
|