Lines Matching refs:adev

64 	struct acpi_device *adev;  member
92 struct acpi_device *adev) in add_dock_dependent_device() argument
100 dd->adev = adev; in add_dock_dependent_device()
110 struct acpi_device *adev = dd->adev; in dock_hotplug_event() local
114 if (!adev->hp) in dock_hotplug_event()
120 fixup = adev->hp->fixup; in dock_hotplug_event()
123 fixup(adev); in dock_hotplug_event()
129 uevent = adev->hp->uevent; in dock_hotplug_event()
132 uevent(adev, event); in dock_hotplug_event()
138 notify = adev->hp->notify; in dock_hotplug_event()
141 notify(adev, event); in dock_hotplug_event()
170 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device() argument
175 if (adev == dd->adev) in find_dock_dependent_device()
181 void register_dock_dependent_device(struct acpi_device *adev, in register_dock_dependent_device() argument
186 if (ds && !find_dock_dependent_device(ds, adev)) in register_dock_dependent_device()
187 add_dock_dependent_device(ds, adev); in register_dock_dependent_device()
202 int is_dock_device(struct acpi_device *adev) in is_dock_device() argument
209 if (acpi_dock_match(adev->handle)) in is_dock_device()
213 if (find_dock_dependent_device(dock_station, adev)) in is_dock_device()
257 acpi_bus_trim(dd->adev); in hot_remove_dock_devices()
289 struct acpi_device *adev = dd->adev; in hotplug_dock_devices() local
291 if (!acpi_device_enumerated(adev)) { in hotplug_dock_devices()
292 int ret = acpi_bus_scan(adev->handle); in hotplug_dock_devices()
294 dev_dbg(&adev->dev, "scan error %d\n", -ret); in hotplug_dock_devices()
440 int dock_notify(struct acpi_device *adev, u32 event) in dock_notify() argument
442 acpi_handle handle = adev->handle; in dock_notify()
469 if (!dock_in_progress(ds) && !acpi_device_enumerated(adev)) { in dock_notify()
509 struct acpi_device *adev = NULL; in show_docked() local
511 acpi_bus_get_device(dock_station->handle, &adev); in show_docked()
512 return snprintf(buf, PAGE_SIZE, "%u\n", acpi_device_enumerated(adev)); in show_docked()
603 void acpi_dock_add(struct acpi_device *adev) in acpi_dock_add() argument
607 acpi_handle handle = adev->handle; in acpi_dock_add()
614 pdevinfo.fwnode = acpi_fwnode_handle(adev); in acpi_dock_add()
637 if (acpi_device_is_battery(adev)) in acpi_dock_add()
645 ret = add_dock_dependent_device(dock_station, adev); in acpi_dock_add()
651 adev->flags.is_dock_station = true; in acpi_dock_add()
652 dev_info(&adev->dev, "ACPI dock station (docks/bays count: %d)\n", in acpi_dock_add()