Lines Matching refs:handler

87 int acpi_scan_add_handler(struct acpi_scan_handler *handler)
89 if (!handler)
92 list_add_tail(&handler->list_node, &acpi_scan_handlers_list);
96 int acpi_scan_add_handler_with_hotplug(struct acpi_scan_handler *handler,
101 error = acpi_scan_add_handler(handler);
105 acpi_sysfs_add_hotplug_profile(&handler->hotplug, hotplug_profile_name);
145 if (device->handler && !device->handler->hotplug.enabled) {
249 struct acpi_scan_handler *handler = adev->handler;
270 if (handler) {
271 if (handler->detach)
272 handler->detach(adev);
274 adev->handler = NULL;
300 if (device->handler && device->handler->hotplug.demand_offline) {
341 struct acpi_scan_handler *handler = adev->handler;
344 if (handler && handler->hotplug.scan_dependent)
345 ret = handler->hotplug.scan_dependent(adev);
366 * scan handlers exist. The only situation in which the scan handler
371 if (adev->handler) {
399 if (adev->handler && !adev->handler->hotplug.enabled) {
1968 static bool acpi_scan_handler_matching(struct acpi_scan_handler *handler,
1974 if (handler->match)
1975 return handler->match(idstr, matchid);
1977 for (devid = handler->ids; devid->id[0]; devid++)
1991 struct acpi_scan_handler *handler;
1993 list_for_each_entry(handler, &acpi_scan_handlers_list, list_node)
1994 if (acpi_scan_handler_matching(handler, idstr, matchid))
1995 return handler;
2021 struct acpi_scan_handler *handler;
2023 handler = acpi_scan_match_handler(hwid->id, NULL);
2024 if (handler) {
2227 struct acpi_scan_handler *handler;
2229 handler = acpi_scan_match_handler(hwid->id, &devid);
2230 if (handler) {
2231 if (!handler->attach) {
2235 device->handler = handler;
2236 ret = handler->attach(device, devid);
2240 device->handler = NULL;
2269 if (device->handler)
2305 if (!skip && device->handler && device->handler->hotplug.notify_online)
2306 device->handler->hotplug.notify_online(device);