Lines Matching refs:acpi_drv
525 struct acpi_driver *acpi_drv = to_acpi_driver(device->dev.driver); in acpi_notify_device() local
527 acpi_drv->ops.notify(device, event); in acpi_notify_device()
545 struct acpi_driver *acpi_drv) in acpi_device_install_notify_handler() argument
560 u32 type = acpi_drv->flags & ACPI_DRIVER_ALL_NOTIFY_EVENTS ? in acpi_device_install_notify_handler()
574 struct acpi_driver *acpi_drv) in acpi_device_remove_notify_handler() argument
583 u32 type = acpi_drv->flags & ACPI_DRIVER_ALL_NOTIFY_EVENTS ? in acpi_device_remove_notify_handler()
1000 struct acpi_driver *acpi_drv = to_acpi_driver(drv); in acpi_bus_match() local
1003 && !acpi_match_device_ids(acpi_dev, acpi_drv->ids); in acpi_bus_match()
1014 struct acpi_driver *acpi_drv = to_acpi_driver(dev->driver); in acpi_device_probe() local
1020 if (!acpi_drv->ops.add) in acpi_device_probe()
1023 ret = acpi_drv->ops.add(acpi_dev); in acpi_device_probe()
1028 acpi_drv->name, acpi_dev->pnp.bus_id); in acpi_device_probe()
1030 if (acpi_drv->ops.notify) { in acpi_device_probe()
1031 ret = acpi_device_install_notify_handler(acpi_dev, acpi_drv); in acpi_device_probe()
1033 if (acpi_drv->ops.remove) in acpi_device_probe()
1034 acpi_drv->ops.remove(acpi_dev); in acpi_device_probe()
1041 pr_debug("Found driver [%s] for device [%s]\n", acpi_drv->name, in acpi_device_probe()
1051 struct acpi_driver *acpi_drv = to_acpi_driver(dev->driver); in acpi_device_remove() local
1053 if (acpi_drv->ops.notify) in acpi_device_remove()
1054 acpi_device_remove_notify_handler(acpi_dev, acpi_drv); in acpi_device_remove()
1056 if (acpi_drv->ops.remove) in acpi_device_remove()
1057 acpi_drv->ops.remove(acpi_dev); in acpi_device_remove()