Lines Matching refs:button
72 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local
111 input = button->input; in surface_button_notify()
116 if (button->suspended) in surface_button_notify()
126 struct surface_button *button = acpi_driver_data(device); in surface_button_suspend() local
128 button->suspended = true; in surface_button_suspend()
135 struct surface_button *button = acpi_driver_data(device); in surface_button_resume() local
137 button->suspended = false; in surface_button_resume()
144 struct surface_button *button; in surface_button_add() local
154 button = kzalloc(sizeof(struct surface_button), GFP_KERNEL); in surface_button_add()
155 if (!button) in surface_button_add()
158 device->driver_data = button; in surface_button_add()
159 button->input = input = input_allocate_device(); in surface_button_add()
167 snprintf(button->phys, sizeof(button->phys), "%s/buttons", hid); in surface_button_add()
170 input->phys = button->phys; in surface_button_add()
188 kfree(button); in surface_button_add()
194 struct surface_button *button = acpi_driver_data(device); in surface_button_remove() local
196 input_unregister_device(button->input); in surface_button_remove()
197 kfree(button); in surface_button_remove()