Lines Matching refs:dd

98 	struct dock_dependent_device *dd;  in add_dock_dependent_device()  local
100 dd = kzalloc(sizeof(*dd), GFP_KERNEL); in add_dock_dependent_device()
101 if (!dd) in add_dock_dependent_device()
104 dd->adev = adev; in add_dock_dependent_device()
105 INIT_LIST_HEAD(&dd->list); in add_dock_dependent_device()
106 list_add_tail(&dd->list, &ds->dependent_devices); in add_dock_dependent_device()
111 static void dock_hotplug_event(struct dock_dependent_device *dd, u32 event, in dock_hotplug_event() argument
114 struct acpi_device *adev = dd->adev; in dock_hotplug_event()
176 struct dock_dependent_device *dd; in find_dock_dependent_device() local
178 list_for_each_entry(dd, &ds->dependent_devices, list) in find_dock_dependent_device()
179 if (adev == dd->adev) in find_dock_dependent_device()
180 return dd; in find_dock_dependent_device()
250 struct dock_dependent_device *dd; in hot_remove_dock_devices() local
257 list_for_each_entry_reverse(dd, &ds->dependent_devices, list) in hot_remove_dock_devices()
258 dock_hotplug_event(dd, ACPI_NOTIFY_EJECT_REQUEST, false); in hot_remove_dock_devices()
260 list_for_each_entry_reverse(dd, &ds->dependent_devices, list) in hot_remove_dock_devices()
261 acpi_bus_trim(dd->adev); in hot_remove_dock_devices()
276 struct dock_dependent_device *dd; in hotplug_dock_devices() local
279 list_for_each_entry(dd, &ds->dependent_devices, list) in hotplug_dock_devices()
280 dock_hotplug_event(dd, event, DOCK_CALL_FIXUP); in hotplug_dock_devices()
283 list_for_each_entry(dd, &ds->dependent_devices, list) in hotplug_dock_devices()
284 dock_hotplug_event(dd, event, DOCK_CALL_HANDLER); in hotplug_dock_devices()
292 list_for_each_entry(dd, &ds->dependent_devices, list) { in hotplug_dock_devices()
293 struct acpi_device *adev = dd->adev; in hotplug_dock_devices()
308 struct dock_dependent_device *dd; in dock_event() local
322 list_for_each_entry(dd, &ds->dependent_devices, list) in dock_event()
323 dock_hotplug_event(dd, event, DOCK_CALL_UEVENT); in dock_event()
612 struct platform_device *dd; in acpi_dock_add() local
621 dd = platform_device_register_full(&pdevinfo); in acpi_dock_add()
622 if (IS_ERR(dd)) in acpi_dock_add()
625 dock_station = dd->dev.platform_data; in acpi_dock_add()
628 dock_station->dock_device = dd; in acpi_dock_add()
635 dev_set_uevent_suppress(&dd->dev, 0); in acpi_dock_add()
644 ret = sysfs_create_group(&dd->dev.kobj, &dock_attribute_group); in acpi_dock_add()
661 sysfs_remove_group(&dd->dev.kobj, &dock_attribute_group); in acpi_dock_add()
664 platform_device_unregister(dd); in acpi_dock_add()