Lines Matching refs:button
76 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local
118 input = button->input; 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()
162 if (!button) in surface_button_add()
165 device->driver_data = button; in surface_button_add()
166 button->input = input = input_allocate_device(); in surface_button_add()
174 snprintf(button->phys, sizeof(button->phys), "%s/buttons", hid); in surface_button_add()
177 input->phys = button->phys; in surface_button_add()
195 kfree(button); in surface_button_add()
201 struct surface_button *button = acpi_driver_data(device); in surface_button_remove() local
203 input_unregister_device(button->input); in surface_button_remove()
204 kfree(button); in surface_button_remove()