Lines Matching refs:dd

74 	struct dock_dependent_device *dd;  in add_dock_dependent_device()  local
76 dd = kzalloc(sizeof(*dd), GFP_KERNEL); in add_dock_dependent_device()
77 if (!dd) in add_dock_dependent_device()
80 dd->adev = adev; in add_dock_dependent_device()
81 INIT_LIST_HEAD(&dd->list); in add_dock_dependent_device()
82 list_add_tail(&dd->list, &ds->dependent_devices); in add_dock_dependent_device()
87 static void dock_hotplug_event(struct dock_dependent_device *dd, u32 event, in dock_hotplug_event() argument
90 struct acpi_device *adev = dd->adev; in dock_hotplug_event()
152 struct dock_dependent_device *dd; in find_dock_dependent_device() local
154 list_for_each_entry(dd, &ds->dependent_devices, list) in find_dock_dependent_device()
155 if (adev == dd->adev) in find_dock_dependent_device()
156 return dd; in find_dock_dependent_device()
226 struct dock_dependent_device *dd; in hot_remove_dock_devices() local
233 list_for_each_entry_reverse(dd, &ds->dependent_devices, list) in hot_remove_dock_devices()
234 dock_hotplug_event(dd, ACPI_NOTIFY_EJECT_REQUEST, in hot_remove_dock_devices()
237 list_for_each_entry_reverse(dd, &ds->dependent_devices, list) in hot_remove_dock_devices()
238 acpi_bus_trim(dd->adev); in hot_remove_dock_devices()
253 struct dock_dependent_device *dd; in hotplug_dock_devices() local
256 list_for_each_entry(dd, &ds->dependent_devices, list) in hotplug_dock_devices()
257 dock_hotplug_event(dd, event, DOCK_CALL_FIXUP); in hotplug_dock_devices()
260 list_for_each_entry(dd, &ds->dependent_devices, list) in hotplug_dock_devices()
261 dock_hotplug_event(dd, event, DOCK_CALL_HANDLER); in hotplug_dock_devices()
269 list_for_each_entry(dd, &ds->dependent_devices, list) { in hotplug_dock_devices()
270 struct acpi_device *adev = dd->adev; in hotplug_dock_devices()
286 struct dock_dependent_device *dd; in dock_event() local
300 list_for_each_entry(dd, &ds->dependent_devices, list) in dock_event()
301 dock_hotplug_event(dd, event, DOCK_CALL_UEVENT); in dock_event()
592 struct platform_device *dd; in acpi_dock_add() local
601 dd = platform_device_register_full(&pdevinfo); in acpi_dock_add()
602 if (IS_ERR(dd)) in acpi_dock_add()
605 dock_station = dd->dev.platform_data; in acpi_dock_add()
608 dock_station->dock_device = dd; in acpi_dock_add()
615 dev_set_uevent_suppress(&dd->dev, 0); in acpi_dock_add()
624 ret = sysfs_create_group(&dd->dev.kobj, &dock_attribute_group); in acpi_dock_add()
641 sysfs_remove_group(&dd->dev.kobj, &dock_attribute_group); in acpi_dock_add()
644 platform_device_unregister(dd); in acpi_dock_add()