Lines Matching refs:child
42 struct device *parent, struct device **child) in parse_acpi_path() argument
57 *child = bus_find_device(&acpi_bus_type, NULL, &hid_uid, in parse_acpi_path()
59 if (!*child) in parse_acpi_path()
62 phys_dev = acpi_get_first_physical_node(to_acpi_device(*child)); in parse_acpi_path()
65 put_device(*child); in parse_acpi_path()
66 *child = phys_dev; in parse_acpi_path()
80 struct device *parent, struct device **child) in parse_pci_path() argument
91 *child = device_find_child(parent, &devfn, match_pci_dev); in parse_pci_path()
92 if (!*child) in parse_pci_path()
116 struct device *parent, struct device **child) in parse_end_path() argument
126 *child = get_device(parent); in parse_end_path()
169 struct device *parent = NULL, *child; in efi_get_device_by_path() local
180 ret = parse_acpi_path(*node, parent, &child); in efi_get_device_by_path()
183 ret = parse_pci_path(*node, parent, &child); in efi_get_device_by_path()
186 ret = parse_end_path(*node, parent, &child); in efi_get_device_by_path()
194 parent = child; in efi_get_device_by_path()
202 return child; in efi_get_device_by_path()