PCI_EXP_TYPE_ROOT_PORT
if (pcie_flags == PCI_EXP_TYPE_ROOT_PORT)
if (pcie_flags == PCI_EXP_TYPE_ROOT_PORT)
data |= PCI_EXP_TYPE_ROOT_PORT << 20;
if (type != PCI_EXP_TYPE_DOWNSTREAM && type != PCI_EXP_TYPE_ROOT_PORT)
type = PCI_EXP_TYPE_ROOT_PORT;
if (port_type == PCI_EXP_TYPE_ROOT_PORT ||
info.is_port = pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT;
pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT);
if (pci_pcie_type(bridge) == PCI_EXP_TYPE_ROOT_PORT)
while (bdev && (pci_pcie_type(bdev) != PCI_EXP_TYPE_ROOT_PORT))
if (pci_pcie_type(bridge) != PCI_EXP_TYPE_ROOT_PORT) {
PCI_EXP_TYPE_ROOT_PORT);
if (pci_pcie_type(root) != PCI_EXP_TYPE_ROOT_PORT)
type == PCI_EXP_TYPE_ROOT_PORT ||
return type == PCI_EXP_TYPE_ROOT_PORT ||
mode = PCI_EXP_TYPE_ROOT_PORT;
val |= FIELD_PREP(DEVICE_TYPE_MASK, PCI_EXP_TYPE_ROOT_PORT);
if (pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT)
*val = (PCI_EXP_TYPE_ROOT_PORT << 4 | 2) << 16 |
PCI_EXP_FLAGS_TYPE, PCI_EXP_TYPE_ROOT_PORT << 4);
case PCI_EXP_TYPE_ROOT_PORT: {
if (pci_pcie_type(root) == PCI_EXP_TYPE_ROOT_PORT)
if (pci_pcie_type(dev) != PCI_EXP_TYPE_ROOT_PORT)
[PCI_EXP_TYPE_ROOT_PORT] = HPX_TYPE_ROOT_PORT,
bridge->pcie_conf.cap |= cpu_to_le16(PCI_EXP_TYPE_ROOT_PORT << 4);
(pci_pcie_type(pci_dev) == PCI_EXP_TYPE_ROOT_PORT ||
case PCI_EXP_TYPE_ROOT_PORT:
case PCI_EXP_TYPE_ROOT_PORT:
case PCI_EXP_TYPE_ROOT_PORT:
return type == PCI_EXP_TYPE_ROOT_PORT ||
} else if (type == PCI_EXP_TYPE_ROOT_PORT ||
(pci_pcie_type(port) != PCI_EXP_TYPE_ROOT_PORT))
if (port_type == PCI_EXP_TYPE_ROOT_PORT ||
((pci_pcie_type(pdev) != PCI_EXP_TYPE_ROOT_PORT) &&
if (pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT ||
if (pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT &&
if (pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT) {
if (pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT) {
if (type == PCI_EXP_TYPE_ROOT_PORT ||
type != PCI_EXP_TYPE_ROOT_PORT)
(pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT ||
if ((pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT ||
if ((pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT ||
pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT) {
((type != PCI_EXP_TYPE_ROOT_PORT) &&
case PCI_EXP_TYPE_ROOT_PORT:
if (pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT ||
(pci_pcie_type(bridge) == PCI_EXP_TYPE_ROOT_PORT ||
if (type == PCI_EXP_TYPE_ROOT_PORT)
if (mpss < p_mps && pci_pcie_type(bridge) == PCI_EXP_TYPE_ROOT_PORT) {
if (pcie_type == PCI_EXP_TYPE_ROOT_PORT ||
pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT ||
pci_pcie_type(dev) != PCI_EXP_TYPE_ROOT_PORT)
if (pci_pcie_type(dev) != PCI_EXP_TYPE_ROOT_PORT &&
if (!pci_is_pcie(dev) || pci_pcie_type(dev) != PCI_EXP_TYPE_ROOT_PORT)
((pci_pcie_type(dev) != PCI_EXP_TYPE_ROOT_PORT) &&
if (!pci_is_pcie(dev) || pci_pcie_type(dev) != PCI_EXP_TYPE_ROOT_PORT)
if (pci_pcie_type(dev) != PCI_EXP_TYPE_ROOT_PORT)
if (!pci_is_pcie(dev) || pci_pcie_type(dev) != PCI_EXP_TYPE_ROOT_PORT)
if (pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT)
case PCI_EXP_TYPE_ROOT_PORT:
if (!pci_is_pcie(pdev) || !(pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT))
val = FIELD_PREP(HSIO_DEVICE_TYPE_MASK, PCI_EXP_TYPE_ROOT_PORT);
(pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT ||
pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT)