Lines Matching refs:dd

94 	struct dock_dependent_device *dd;  in add_dock_dependent_device()  local
96 dd = kzalloc(sizeof(*dd), GFP_KERNEL); in add_dock_dependent_device()
97 if (!dd) in add_dock_dependent_device()
100 dd->adev = adev; in add_dock_dependent_device()
101 INIT_LIST_HEAD(&dd->list); in add_dock_dependent_device()
102 list_add_tail(&dd->list, &ds->dependent_devices); in add_dock_dependent_device()
107 static void dock_hotplug_event(struct dock_dependent_device *dd, u32 event, in dock_hotplug_event() argument
110 struct acpi_device *adev = dd->adev; in dock_hotplug_event()
172 struct dock_dependent_device *dd; in find_dock_dependent_device() local
174 list_for_each_entry(dd, &ds->dependent_devices, list) in find_dock_dependent_device()
175 if (adev == dd->adev) in find_dock_dependent_device()
176 return dd; in find_dock_dependent_device()
246 struct dock_dependent_device *dd; in hot_remove_dock_devices() local
253 list_for_each_entry_reverse(dd, &ds->dependent_devices, list) in hot_remove_dock_devices()
254 dock_hotplug_event(dd, ACPI_NOTIFY_EJECT_REQUEST, false); in hot_remove_dock_devices()
256 list_for_each_entry_reverse(dd, &ds->dependent_devices, list) in hot_remove_dock_devices()
257 acpi_bus_trim(dd->adev); in hot_remove_dock_devices()
272 struct dock_dependent_device *dd; in hotplug_dock_devices() local
275 list_for_each_entry(dd, &ds->dependent_devices, list) in hotplug_dock_devices()
276 dock_hotplug_event(dd, event, DOCK_CALL_FIXUP); in hotplug_dock_devices()
279 list_for_each_entry(dd, &ds->dependent_devices, list) in hotplug_dock_devices()
280 dock_hotplug_event(dd, event, DOCK_CALL_HANDLER); in hotplug_dock_devices()
288 list_for_each_entry(dd, &ds->dependent_devices, list) { in hotplug_dock_devices()
289 struct acpi_device *adev = dd->adev; in hotplug_dock_devices()
304 struct dock_dependent_device *dd; in dock_event() local
318 list_for_each_entry(dd, &ds->dependent_devices, list) in dock_event()
319 dock_hotplug_event(dd, event, DOCK_CALL_UEVENT); in dock_event()
608 struct platform_device *dd; in acpi_dock_add() local
617 dd = platform_device_register_full(&pdevinfo); in acpi_dock_add()
618 if (IS_ERR(dd)) in acpi_dock_add()
621 dock_station = dd->dev.platform_data; in acpi_dock_add()
624 dock_station->dock_device = dd; in acpi_dock_add()
631 dev_set_uevent_suppress(&dd->dev, 0); in acpi_dock_add()
640 ret = sysfs_create_group(&dd->dev.kobj, &dock_attribute_group); in acpi_dock_add()
657 sysfs_remove_group(&dd->dev.kobj, &dock_attribute_group); in acpi_dock_add()
660 platform_device_unregister(dd); in acpi_dock_add()