Lines Matching refs:adev
68 struct acpi_device *adev; member
96 struct acpi_device *adev) in add_dock_dependent_device() argument
104 dd->adev = adev; in add_dock_dependent_device()
114 struct acpi_device *adev = dd->adev; in dock_hotplug_event() local
118 if (!adev->hp) in dock_hotplug_event()
124 fixup = adev->hp->fixup; in dock_hotplug_event()
127 fixup(adev); in dock_hotplug_event()
133 uevent = adev->hp->uevent; in dock_hotplug_event()
136 uevent(adev, event); in dock_hotplug_event()
142 notify = adev->hp->notify; in dock_hotplug_event()
145 notify(adev, event); in dock_hotplug_event()
174 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device() argument
179 if (adev == dd->adev) in find_dock_dependent_device()
185 void register_dock_dependent_device(struct acpi_device *adev, in register_dock_dependent_device() argument
190 if (ds && !find_dock_dependent_device(ds, adev)) in register_dock_dependent_device()
191 add_dock_dependent_device(ds, adev); in register_dock_dependent_device()
206 int is_dock_device(struct acpi_device *adev) in is_dock_device() argument
213 if (acpi_dock_match(adev->handle)) in is_dock_device()
217 if (find_dock_dependent_device(dock_station, adev)) in is_dock_device()
261 acpi_bus_trim(dd->adev); in hot_remove_dock_devices()
293 struct acpi_device *adev = dd->adev; in hotplug_dock_devices() local
295 if (!acpi_device_enumerated(adev)) { in hotplug_dock_devices()
296 int ret = acpi_bus_scan(adev->handle); in hotplug_dock_devices()
298 dev_dbg(&adev->dev, "scan error %d\n", -ret); in hotplug_dock_devices()
444 int dock_notify(struct acpi_device *adev, u32 event) in dock_notify() argument
446 acpi_handle handle = adev->handle; in dock_notify()
473 if (!dock_in_progress(ds) && !acpi_device_enumerated(adev)) { in dock_notify()
513 struct acpi_device *adev = NULL; in show_docked() local
515 acpi_bus_get_device(dock_station->handle, &adev); in show_docked()
516 return snprintf(buf, PAGE_SIZE, "%u\n", acpi_device_enumerated(adev)); in show_docked()
607 void acpi_dock_add(struct acpi_device *adev) in acpi_dock_add() argument
611 acpi_handle handle = adev->handle; in acpi_dock_add()
618 pdevinfo.fwnode = acpi_fwnode_handle(adev); in acpi_dock_add()
641 if (acpi_device_is_battery(adev)) in acpi_dock_add()
649 ret = add_dock_dependent_device(dock_station, adev); in acpi_dock_add()
655 adev->flags.is_dock_station = true; in acpi_dock_add()
656 dev_info(&adev->dev, "ACPI dock station (docks/bays count: %d)\n", in acpi_dock_add()