Lines Matching defs:device
28 struct acpi_device *device;
63 status = acpi_evaluate_integer(topstar->device->handle,
76 status = acpi_execute_simple_method(topstar->device->handle,
158 pr_err("Unable to setup input device keymap\n");
164 pr_err("Unable to register input device\n");
221 static int topstar_acpi_fncx_switch(struct acpi_device *device, bool state)
226 status = acpi_execute_simple_method(device->handle, "FNCX", arg);
235 static void topstar_acpi_notify(struct acpi_device *device, u32 event)
237 struct topstar_laptop *topstar = acpi_driver_data(device);
256 return topstar_acpi_fncx_switch(topstar->device, true);
261 topstar_acpi_fncx_switch(topstar->device, false);
288 static int topstar_acpi_add(struct acpi_device *device)
299 strcpy(acpi_device_name(device), "Topstar TPSACPI");
300 strcpy(acpi_device_class(device), TOPSTAR_LAPTOP_CLASS);
301 device->driver_data = topstar;
302 topstar->device = device;
335 static void topstar_acpi_remove(struct acpi_device *device)
337 struct topstar_laptop *topstar = acpi_driver_data(device);