Lines Matching full:wd
138 struct find_child_walk_data *wd = data; in check_one_child() local
141 if (!adev->pnp.type.bus_address || acpi_device_adr(adev) != wd->address) in check_one_child()
144 if (!wd->adev) { in check_one_child()
150 wd->adev = adev; in check_one_child()
151 return !(wd->check_sta || wd->check_children); in check_one_child()
162 if (!wd->score) { in check_one_child()
163 score = find_child_checks(wd->adev, wd->check_children); in check_one_child()
167 wd->score = score; in check_one_child()
174 score = find_child_checks(adev, wd->check_children); in check_one_child()
175 if (score > wd->score) { in check_one_child()
176 wd->adev = adev; in check_one_child()
180 wd->score = score; in check_one_child()
191 struct find_child_walk_data wd = { in acpi_find_child() local
200 acpi_dev_for_each_child(parent, check_one_child, &wd); in acpi_find_child()
202 return wd.adev; in acpi_find_child()