Lines Matching refs:dep
1836 struct acpi_dep_data *dep; in acpi_scan_dep_init() local
1838 list_for_each_entry(dep, &acpi_dep_list, node) { in acpi_scan_dep_init()
1839 if (dep->consumer == adev->handle) { in acpi_scan_dep_init()
1840 if (dep->honor_dep) in acpi_scan_dep_init()
1843 if (!dep->met) in acpi_scan_dep_init()
2016 struct acpi_dep_data *dep; in acpi_scan_add_dep() local
2033 dep = kzalloc(sizeof(*dep), GFP_KERNEL); in acpi_scan_add_dep()
2034 if (!dep) in acpi_scan_add_dep()
2039 dep->supplier = dep_devices->handles[i]; in acpi_scan_add_dep()
2040 dep->consumer = handle; in acpi_scan_add_dep()
2041 dep->honor_dep = honor_dep; in acpi_scan_add_dep()
2044 list_add_tail(&dep->node, &acpi_dep_list); in acpi_scan_add_dep()
2329 static int acpi_dev_get_next_consumer_dev_cb(struct acpi_dep_data *dep, void *data) in acpi_dev_get_next_consumer_dev_cb() argument
2340 if (dep->consumer == adev->handle) in acpi_dev_get_next_consumer_dev_cb()
2346 adev = acpi_get_acpi_dev(dep->consumer); in acpi_dev_get_next_consumer_dev_cb()
2397 static void acpi_scan_delete_dep_data(struct acpi_dep_data *dep) in acpi_scan_delete_dep_data() argument
2399 list_del(&dep->node); in acpi_scan_delete_dep_data()
2400 kfree(dep); in acpi_scan_delete_dep_data()
2403 static int acpi_scan_clear_dep(struct acpi_dep_data *dep, void *data) in acpi_scan_clear_dep() argument
2405 struct acpi_device *adev = acpi_get_acpi_dev(dep->consumer); in acpi_scan_clear_dep()
2413 if (dep->free_when_met) in acpi_scan_clear_dep()
2414 acpi_scan_delete_dep_data(dep); in acpi_scan_clear_dep()
2416 dep->met = true; in acpi_scan_clear_dep()
2437 struct acpi_dep_data *dep, *tmp; in acpi_walk_dep_device_list() local
2441 list_for_each_entry_safe(dep, tmp, &acpi_dep_list, node) { in acpi_walk_dep_device_list()
2442 if (dep->supplier == handle) { in acpi_walk_dep_device_list()
2443 ret = callback(dep, data); in acpi_walk_dep_device_list()
2531 struct acpi_dep_data *dep, *tmp; in acpi_scan_postponed() local
2535 list_for_each_entry_safe(dep, tmp, &acpi_dep_list, node) { in acpi_scan_postponed()
2536 acpi_handle handle = dep->consumer; in acpi_scan_postponed()
2557 if (dep->met) in acpi_scan_postponed()
2558 acpi_scan_delete_dep_data(dep); in acpi_scan_postponed()
2560 dep->free_when_met = true; in acpi_scan_postponed()