Lines Matching defs:adev

44 	struct acpi_device *adev;
67 * @adev: Dependent ACPI device object.
72 struct acpi_device *adev)
80 dd->adev = adev;
90 struct acpi_device *adev = dd->adev;
94 if (!adev->hp)
100 fixup = adev->hp->fixup;
103 fixup(adev);
109 uevent = adev->hp->uevent;
112 uevent(adev, event);
118 notify = adev->hp->notify;
121 notify(adev, event);
144 * @adev: ACPI device object to find.
150 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev)
155 if (adev == dd->adev)
161 void register_dock_dependent_device(struct acpi_device *adev,
166 if (ds && !find_dock_dependent_device(ds, adev))
167 add_dock_dependent_device(ds, adev);
176 * @adev: ACPI device object to check.
182 int is_dock_device(struct acpi_device *adev)
189 if (acpi_dock_match(adev->handle))
193 if (find_dock_dependent_device(dock_station, adev))
238 acpi_bus_trim(dd->adev);
270 struct acpi_device *adev = dd->adev;
272 if (!acpi_device_enumerated(adev)) {
273 int ret = acpi_bus_scan(adev->handle);
275 dev_dbg(&adev->dev, "scan error %d\n", -ret);
414 * @adev: Dock station's ACPI device object.
421 int dock_notify(struct acpi_device *adev, u32 event)
423 acpi_handle handle = adev->handle;
450 if (!dock_in_progress(ds) && !acpi_device_enumerated(adev)) {
491 struct acpi_device *adev = NULL;
493 acpi_bus_get_device(dock_station->handle, &adev);
494 return snprintf(buf, PAGE_SIZE, "%u\n", acpi_device_enumerated(adev));
581 * @adev: Dock station ACPI device object.
585 void acpi_dock_add(struct acpi_device *adev)
589 acpi_handle handle = adev->handle;
596 pdevinfo.fwnode = acpi_fwnode_handle(adev);
619 if (acpi_device_is_battery(adev))
627 ret = add_dock_dependent_device(dock_station, adev);
633 adev->flags.is_dock_station = true;
634 dev_info(&adev->dev, "ACPI dock station (docks/bays count: %d)\n",