Lines Matching refs:acpi_dev
970 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_bus_match() local
973 return acpi_dev->flags.match_driver in acpi_bus_match()
974 && !acpi_match_device_ids(acpi_dev, acpi_drv->ids); in acpi_bus_match()
984 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_probe() local
988 if (acpi_dev->handler && !acpi_is_pnp_device(acpi_dev)) in acpi_device_probe()
994 ret = acpi_drv->ops.add(acpi_dev); in acpi_device_probe()
998 acpi_dev->driver = acpi_drv; in acpi_device_probe()
1001 acpi_drv->name, acpi_dev->pnp.bus_id); in acpi_device_probe()
1004 ret = acpi_device_install_notify_handler(acpi_dev); in acpi_device_probe()
1007 acpi_drv->ops.remove(acpi_dev); in acpi_device_probe()
1009 acpi_dev->driver = NULL; in acpi_device_probe()
1010 acpi_dev->driver_data = NULL; in acpi_device_probe()
1016 acpi_dev->pnp.bus_id); in acpi_device_probe()
1024 struct acpi_device *acpi_dev = to_acpi_device(dev); in acpi_device_remove() local
1025 struct acpi_driver *acpi_drv = acpi_dev->driver; in acpi_device_remove()
1029 acpi_device_remove_notify_handler(acpi_dev); in acpi_device_remove()
1031 acpi_drv->ops.remove(acpi_dev); in acpi_device_remove()
1033 acpi_dev->driver = NULL; in acpi_device_remove()
1034 acpi_dev->driver_data = NULL; in acpi_device_remove()