Lines Matching full:pdn
594 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_get_pe() local
596 if (!pdn) in pnv_ioda_get_pe()
598 if (pdn->pe_number == IODA_INVALID_PE) in pnv_ioda_get_pe()
600 return &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_get_pe()
691 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_ioda_set_peltv() local
694 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_set_peltv()
695 parent = &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_set_peltv()
714 struct pci_dn *pdn = pci_get_pdn(parent); in pnv_ioda_unset_peltv() local
716 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_unset_peltv()
717 rc = opal_pci_set_peltv(phb->opal_id, pdn->pe_number, in pnv_ioda_unset_peltv()
875 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_setup_dev_PE() local
878 if (!pdn) { in pnv_ioda_setup_dev_PE()
883 if (pdn->pe_number != IODA_INVALID_PE) in pnv_ioda_setup_dev_PE()
897 * At some point we want to remove the PDN completely anyways in pnv_ioda_setup_dev_PE()
899 pdn->pe_number = pe->pe_number; in pnv_ioda_setup_dev_PE()
904 pe->rid = dev->bus->number << 8 | pdn->devfn; in pnv_ioda_setup_dev_PE()
912 pdn->pe_number = IODA_INVALID_PE; in pnv_ioda_setup_dev_PE()
994 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_pci_ioda_dma_dev_setup() local
1034 if (pdn) in pnv_pci_ioda_dma_dev_setup()
1035 pdn->pe_number = pe->pe_number; in pnv_pci_ioda_dma_dev_setup()
1120 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_pci_ioda_iommu_bypass_supported() local
1123 if (WARN_ON(!pdn || pdn->pe_number == IODA_INVALID_PE)) in pnv_pci_ioda_iommu_bypass_supported()
1126 pe = &phb->ioda.pe_array[pdn->pe_number]; in pnv_pci_ioda_iommu_bypass_supported()
2260 struct pci_dn *pdn; in pnv_pci_enable_device_hook() local
2262 pdn = pci_get_pdn(dev); in pnv_pci_enable_device_hook()
2263 if (!pdn || pdn->pe_number == IODA_INVALID_PE) { in pnv_pci_enable_device_hook()
2273 struct pci_dn *pdn; in pnv_ocapi_enable_device_hook() local
2276 pdn = pci_get_pdn(dev); in pnv_ocapi_enable_device_hook()
2277 if (!pdn) in pnv_ocapi_enable_device_hook()
2280 if (pdn->pe_number == IODA_INVALID_PE) { in pnv_ocapi_enable_device_hook()
2389 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_pci_release_device() local
2396 if (!pdn || pdn->pe_number == IODA_INVALID_PE) in pnv_pci_release_device()
2410 * PCI hotplug can happen as part of EEH error recovery. The @pdn in pnv_pci_release_device()
2412 * set the PE number in @pdn to an invalid one. Otherwise, the PE's in pnv_pci_release_device()
2417 pe = &phb->ioda.pe_array[pdn->pe_number]; in pnv_pci_release_device()
2418 pdn->pe_number = IODA_INVALID_PE; in pnv_pci_release_device()