Lines Matching defs:root
449 * If the first device on host's root bus is either devfn 00.0 or a PCIe
467 struct pci_dev *root;
469 root = list_first_entry_or_null(&host->bus->devices,
472 if (!root)
475 if (root->devfn == PCI_DEVFN(0, 0))
476 return root;
478 if (pci_pcie_type(root) == PCI_EXP_TYPE_ROOT_PORT)
479 return root;
487 struct pci_dev *root = pci_host_bridge_dev(host);
491 if (!root)
494 vendor = root->vendor;
495 device = root->device;
507 pci_warn(root, "Host bridge not in P2PDMA whitelist: %04x:%04x\n",
514 * If we can't find a common upstream bridge take a look at the root
683 * the same PCI root port or the host bridges connected to each of the devices