Lines Matching refs:dd
103 struct dock_dependent_device *dd; in alloc_dock_dependent_device() local
105 dd = kzalloc(sizeof(*dd), GFP_KERNEL); in alloc_dock_dependent_device()
106 if (dd) { in alloc_dock_dependent_device()
107 dd->handle = handle; in alloc_dock_dependent_device()
108 INIT_LIST_HEAD(&dd->list); in alloc_dock_dependent_device()
109 INIT_LIST_HEAD(&dd->hotplug_list); in alloc_dock_dependent_device()
111 return dd; in alloc_dock_dependent_device()
123 struct dock_dependent_device *dd) in add_dock_dependent_device() argument
126 list_add_tail(&dd->list, &ds->dependent_devices); in add_dock_dependent_device()
139 struct dock_dependent_device *dd) in dock_add_hotplug_device() argument
142 list_add_tail(&dd->hotplug_list, &ds->hotplug_devices); in dock_add_hotplug_device()
155 struct dock_dependent_device *dd) in dock_del_hotplug_device() argument
158 list_del(&dd->hotplug_list); in dock_del_hotplug_device()
173 struct dock_dependent_device *dd; in find_dock_dependent_device() local
176 list_for_each_entry(dd, &ds->dependent_devices, list) { in find_dock_dependent_device()
177 if (handle == dd->handle) { in find_dock_dependent_device()
179 return dd; in find_dock_dependent_device()
380 struct dock_dependent_device *dd; in hotplug_dock_devices() local
387 list_for_each_entry(dd, &ds->hotplug_devices, hotplug_list) { in hotplug_dock_devices()
388 if (dd->ops && dd->ops->handler) in hotplug_dock_devices()
389 dd->ops->handler(dd->handle, event, dd->context); in hotplug_dock_devices()
398 list_for_each_entry(dd, &ds->dependent_devices, list) { in hotplug_dock_devices()
400 dock_remove_acpi_device(dd->handle); in hotplug_dock_devices()
402 dock_create_acpi_device(dd->handle); in hotplug_dock_devices()
412 struct dock_dependent_device *dd; in dock_event() local
426 list_for_each_entry(dd, &ds->hotplug_devices, hotplug_list) in dock_event()
427 if (dd->ops && dd->ops->uevent) in dock_event()
428 dd->ops->uevent(dd->handle, event, dd->context); in dock_event()
611 struct dock_dependent_device *dd; in register_hotplug_dock_device() local
628 dd = find_dock_dependent_device(dock_station, handle); in register_hotplug_dock_device()
629 if (dd) { in register_hotplug_dock_device()
630 dd->ops = ops; in register_hotplug_dock_device()
631 dd->context = context; in register_hotplug_dock_device()
632 dock_add_hotplug_device(dock_station, dd); in register_hotplug_dock_device()
648 struct dock_dependent_device *dd; in unregister_hotplug_dock_device() local
655 dd = find_dock_dependent_device(dock_station, handle); in unregister_hotplug_dock_device()
656 if (dd) in unregister_hotplug_dock_device()
657 dock_del_hotplug_device(dock_station, dd); in unregister_hotplug_dock_device()
829 struct dock_dependent_device *dd; in find_dock_devices() local
844 dd = alloc_dock_dependent_device(handle); in find_dock_devices()
845 if (dd) in find_dock_devices()
846 add_dock_dependent_device(ds, dd); in find_dock_devices()
949 struct dock_dependent_device *dd; in dock_add() local
1037 dd = alloc_dock_dependent_device(handle); in dock_add()
1038 if (!dd) { in dock_add()
1044 add_dock_dependent_device(dock_station, dd); in dock_add()
1067 struct dock_dependent_device *dd, *tmp; in dock_remove() local
1074 list_for_each_entry_safe(dd, tmp, &dock_station->dependent_devices, in dock_remove()
1076 kfree(dd); in dock_remove()