Lines Matching refs:dep
1844 struct acpi_dep_data *dep; in acpi_scan_dep_init() local
1846 list_for_each_entry(dep, &acpi_dep_list, node) { in acpi_scan_dep_init()
1847 if (dep->consumer == adev->handle) { in acpi_scan_dep_init()
1848 if (dep->honor_dep) in acpi_scan_dep_init()
1851 if (!dep->met) in acpi_scan_dep_init()
2024 struct acpi_dep_data *dep; in acpi_scan_add_dep() local
2041 dep = kzalloc(sizeof(*dep), GFP_KERNEL); in acpi_scan_add_dep()
2042 if (!dep) in acpi_scan_add_dep()
2047 dep->supplier = dep_devices->handles[i]; in acpi_scan_add_dep()
2048 dep->consumer = handle; in acpi_scan_add_dep()
2049 dep->honor_dep = honor_dep; in acpi_scan_add_dep()
2052 list_add_tail(&dep->node, &acpi_dep_list); in acpi_scan_add_dep()
2337 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
2348 if (dep->consumer == adev->handle) in acpi_dev_get_next_consumer_dev_cb()
2354 adev = acpi_get_acpi_dev(dep->consumer); in acpi_dev_get_next_consumer_dev_cb()
2405 static void acpi_scan_delete_dep_data(struct acpi_dep_data *dep) in acpi_scan_delete_dep_data() argument
2407 list_del(&dep->node); in acpi_scan_delete_dep_data()
2408 kfree(dep); in acpi_scan_delete_dep_data()
2411 static int acpi_scan_clear_dep(struct acpi_dep_data *dep, void *data) in acpi_scan_clear_dep() argument
2413 struct acpi_device *adev = acpi_get_acpi_dev(dep->consumer); in acpi_scan_clear_dep()
2421 if (dep->free_when_met) in acpi_scan_clear_dep()
2422 acpi_scan_delete_dep_data(dep); in acpi_scan_clear_dep()
2424 dep->met = true; in acpi_scan_clear_dep()
2445 struct acpi_dep_data *dep, *tmp; in acpi_walk_dep_device_list() local
2449 list_for_each_entry_safe(dep, tmp, &acpi_dep_list, node) { in acpi_walk_dep_device_list()
2450 if (dep->supplier == handle) { in acpi_walk_dep_device_list()
2451 ret = callback(dep, data); in acpi_walk_dep_device_list()
2539 struct acpi_dep_data *dep, *tmp; in acpi_scan_postponed() local
2543 list_for_each_entry_safe(dep, tmp, &acpi_dep_list, node) { in acpi_scan_postponed()
2544 acpi_handle handle = dep->consumer; in acpi_scan_postponed()
2565 if (dep->met) in acpi_scan_postponed()
2566 acpi_scan_delete_dep_data(dep); in acpi_scan_postponed()
2568 dep->free_when_met = true; in acpi_scan_postponed()