• Home
  • Raw
  • Download

Lines Matching refs:node

15 static long __init parse_acpi_path(const struct efi_dev_path *node,  in parse_acpi_path()  argument
24 if (node->header.length != 12) in parse_acpi_path()
28 'A' + ((node->acpi.hid >> 10) & 0x1f) - 1, in parse_acpi_path()
29 'A' + ((node->acpi.hid >> 5) & 0x1f) - 1, in parse_acpi_path()
30 'A' + ((node->acpi.hid >> 0) & 0x1f) - 1, in parse_acpi_path()
31 node->acpi.hid >> 16); in parse_acpi_path()
35 if (ret == 0 && node->acpi.uid == uid) in parse_acpi_path()
37 if (ret == -ENODATA && node->acpi.uid == 0) in parse_acpi_path()
60 static long __init parse_pci_path(const struct efi_dev_path *node, in parse_pci_path() argument
65 if (node->header.length != 6) in parse_pci_path()
70 devfn = PCI_DEVFN(node->pci.dev, node->pci.fn); in parse_pci_path()
96 static long __init parse_end_path(const struct efi_dev_path *node, in parse_end_path() argument
99 if (node->header.length != 4) in parse_end_path()
101 if (node->header.sub_type != EFI_DEV_END_INSTANCE && in parse_end_path()
102 node->header.sub_type != EFI_DEV_END_ENTIRE) in parse_end_path()
108 return node->header.sub_type; in parse_end_path()
147 struct device * __init efi_get_device_by_path(const struct efi_dev_path **node, in efi_get_device_by_path() argument
157 if (*len < 4 || *len < (*node)->header.length) in efi_get_device_by_path()
159 else if ((*node)->header.type == EFI_DEV_ACPI && in efi_get_device_by_path()
160 (*node)->header.sub_type == EFI_DEV_BASIC_ACPI) in efi_get_device_by_path()
161 ret = parse_acpi_path(*node, parent, &child); in efi_get_device_by_path()
162 else if ((*node)->header.type == EFI_DEV_HW && in efi_get_device_by_path()
163 (*node)->header.sub_type == EFI_DEV_PCI) in efi_get_device_by_path()
164 ret = parse_pci_path(*node, parent, &child); in efi_get_device_by_path()
165 else if (((*node)->header.type == EFI_DEV_END_PATH || in efi_get_device_by_path()
166 (*node)->header.type == EFI_DEV_END_PATH2)) in efi_get_device_by_path()
167 ret = parse_end_path(*node, parent, &child); in efi_get_device_by_path()
176 *node = (void *)*node + (*node)->header.length; in efi_get_device_by_path()
177 *len -= (*node)->header.length; in efi_get_device_by_path()