Lines Matching full:pdn

596 	struct pci_dn *pdn = pci_get_pdn(dev);  in pnv_ioda_get_pe()  local
598 if (!pdn) in pnv_ioda_get_pe()
600 if (pdn->pe_number == IODA_INVALID_PE) in pnv_ioda_get_pe()
602 return &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_get_pe()
693 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_ioda_set_peltv() local
696 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_set_peltv()
697 parent = &phb->ioda.pe_array[pdn->pe_number]; in pnv_ioda_set_peltv()
716 struct pci_dn *pdn = pci_get_pdn(parent); in pnv_ioda_unset_peltv() local
718 if (pdn && pdn->pe_number != IODA_INVALID_PE) { in pnv_ioda_unset_peltv()
719 rc = opal_pci_set_peltv(phb->opal_id, pdn->pe_number, in pnv_ioda_unset_peltv()
877 struct pci_dn *pdn = pci_get_pdn(dev); in pnv_ioda_setup_dev_PE() local
880 if (!pdn) { in pnv_ioda_setup_dev_PE()
885 if (pdn->pe_number != IODA_INVALID_PE) in pnv_ioda_setup_dev_PE()
899 * At some point we want to remove the PDN completely anyways in pnv_ioda_setup_dev_PE()
901 pdn->pe_number = pe->pe_number; in pnv_ioda_setup_dev_PE()
906 pe->rid = dev->bus->number << 8 | pdn->devfn; in pnv_ioda_setup_dev_PE()
914 pdn->pe_number = IODA_INVALID_PE; in pnv_ioda_setup_dev_PE()
996 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_pci_ioda_dma_dev_setup() local
1036 if (pdn) in pnv_pci_ioda_dma_dev_setup()
1037 pdn->pe_number = pe->pe_number; in pnv_pci_ioda_dma_dev_setup()
1122 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_pci_ioda_iommu_bypass_supported() local
1125 if (WARN_ON(!pdn || pdn->pe_number == IODA_INVALID_PE)) in pnv_pci_ioda_iommu_bypass_supported()
1128 pe = &phb->ioda.pe_array[pdn->pe_number]; in pnv_pci_ioda_iommu_bypass_supported()
2329 struct pci_dn *pdn; in pnv_pci_enable_device_hook() local
2331 pdn = pci_get_pdn(dev); in pnv_pci_enable_device_hook()
2332 if (!pdn || pdn->pe_number == IODA_INVALID_PE) { in pnv_pci_enable_device_hook()
2342 struct pci_dn *pdn; in pnv_ocapi_enable_device_hook() local
2345 pdn = pci_get_pdn(dev); in pnv_ocapi_enable_device_hook()
2346 if (!pdn) in pnv_ocapi_enable_device_hook()
2349 if (pdn->pe_number == IODA_INVALID_PE) { in pnv_ocapi_enable_device_hook()
2458 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_pci_release_device() local
2465 if (!pdn || pdn->pe_number == IODA_INVALID_PE) in pnv_pci_release_device()
2479 * PCI hotplug can happen as part of EEH error recovery. The @pdn in pnv_pci_release_device()
2481 * set the PE number in @pdn to an invalid one. Otherwise, the PE's in pnv_pci_release_device()
2486 pe = &phb->ioda.pe_array[pdn->pe_number]; in pnv_pci_release_device()
2487 pdn->pe_number = IODA_INVALID_PE; in pnv_pci_release_device()