Lines Matching defs:driver
349 struct acpi_driver *driver;
401 driver = adev->driver;
402 if (driver && driver->ops.notify &&
403 (driver->flags & ACPI_DRIVER_ALL_NOTIFY_EVENTS))
404 driver->ops.notify(adev, type);
424 device->driver->ops.notify(device, event);
651 /* Now we can look for the driver DT compatible strings */
742 * driver for it.
799 if (!acpi_of_match_device(adev, dev->driver->of_match_table, &match))
809 if (!dev->driver->acpi_match_table)
812 match = acpi_match_device(dev->driver->acpi_match_table, dev);
846 * acpi_bus_register_driver - register a driver with the ACPI bus
847 * @driver: driver being registered
849 * Registers a driver with the ACPI bus. Searches the namespace for all
850 * devices that match the driver's criteria and binds. Returns zero for
853 int acpi_bus_register_driver(struct acpi_driver *driver)
859 driver->drv.name = driver->name;
860 driver->drv.bus = &acpi_bus_type;
861 driver->drv.owner = driver->owner;
863 ret = driver_register(&driver->drv);
870 * acpi_bus_unregister_driver - unregisters a driver with the ACPI bus
871 * @driver: driver to unregister
873 * Unregisters a driver with the ACPI bus. Searches the namespace for all
874 * devices that match the driver's criteria and unbinds.
876 void acpi_bus_unregister_driver(struct acpi_driver *driver)
878 driver_unregister(&driver->drv);
904 struct acpi_driver *acpi_drv = to_acpi_driver(dev->driver);
917 acpi_dev->driver = acpi_drv;
928 acpi_dev->driver = NULL;
934 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found driver [%s] for device [%s]\n",
943 struct acpi_driver *acpi_drv = acpi_dev->driver;
951 acpi_dev->driver = NULL;
1143 * ACPI 2.0 requires the EC driver to be loaded and work before the EC