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()
138 struct dock_dependent_device *dd; in find_dock_dependent_device() local
140 list_for_each_entry(dd, &ds->dependent_devices, list) in find_dock_dependent_device()
141 if (adev == dd->adev) in find_dock_dependent_device()
142 return dd; in find_dock_dependent_device()
212 struct dock_dependent_device *dd; in hot_remove_dock_devices() local
219 list_for_each_entry_reverse(dd, &ds->dependent_devices, list) in hot_remove_dock_devices()
220 dock_hotplug_event(dd, ACPI_NOTIFY_EJECT_REQUEST, in hot_remove_dock_devices()
223 list_for_each_entry_reverse(dd, &ds->dependent_devices, list) in hot_remove_dock_devices()
224 acpi_bus_trim(dd->adev); in hot_remove_dock_devices()
239 struct dock_dependent_device *dd; in hotplug_dock_devices() local
242 list_for_each_entry(dd, &ds->dependent_devices, list) in hotplug_dock_devices()
243 dock_hotplug_event(dd, event, DOCK_CALL_FIXUP); in hotplug_dock_devices()
246 list_for_each_entry(dd, &ds->dependent_devices, list) in hotplug_dock_devices()
247 dock_hotplug_event(dd, event, DOCK_CALL_HANDLER); in hotplug_dock_devices()
255 list_for_each_entry(dd, &ds->dependent_devices, list) { in hotplug_dock_devices()
256 struct acpi_device *adev = dd->adev; in hotplug_dock_devices()
272 struct dock_dependent_device *dd; in dock_event() local
286 list_for_each_entry(dd, &ds->dependent_devices, list) in dock_event()
287 dock_hotplug_event(dd, event, DOCK_CALL_UEVENT); in dock_event()
580 struct platform_device *dd; in acpi_dock_add() local
589 dd = platform_device_register_full(&pdevinfo); in acpi_dock_add()
590 if (IS_ERR(dd)) in acpi_dock_add()
593 dock_station = dd->dev.platform_data; in acpi_dock_add()
596 dock_station->dock_device = dd; in acpi_dock_add()
603 dev_set_uevent_suppress(&dd->dev, 0); in acpi_dock_add()
612 ret = sysfs_create_group(&dd->dev.kobj, &dock_attribute_group); in acpi_dock_add()
629 sysfs_remove_group(&dd->dev.kobj, &dock_attribute_group); in acpi_dock_add()
632 platform_device_unregister(dd); in acpi_dock_add()