Lines Matching full:button
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->phys; in wireless_input_setup()
51 button->input_dev->id.bustype = BUS_HOST; in wireless_input_setup()
52 button->input_dev->evbit[0] = BIT(EV_KEY); in wireless_input_setup()
53 set_bit(KEY_RFKILL, button->input_dev->keybit); in wireless_input_setup()
55 err = input_register_device(button->input_dev); in wireless_input_setup()
62 input_free_device(button->input_dev); in wireless_input_setup()
68 struct wl_button *button = acpi_driver_data(device); in wireless_input_destroy() local
70 input_unregister_device(button->input_dev); in wireless_input_destroy()
71 kfree(button); in wireless_input_destroy()
76 struct wl_button *button = acpi_driver_data(acpi_dev); in wl_notify() local
83 input_report_key(button->input_dev, KEY_RFKILL, 1); in wl_notify()
84 input_sync(button->input_dev); in wl_notify()
85 input_report_key(button->input_dev, KEY_RFKILL, 0); in wl_notify()
86 input_sync(button->input_dev); in wl_notify()
91 struct wl_button *button; in wl_add() local
94 button = kzalloc(sizeof(struct wl_button), GFP_KERNEL); in wl_add()
95 if (!button) in wl_add()
98 device->driver_data = button; in wl_add()
103 kfree(button); in wl_add()