Lines Matching refs: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()
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()
2327 struct pci_dn *pdn; in pnv_pci_enable_device_hook() local
2329 pdn = pci_get_pdn(dev); in pnv_pci_enable_device_hook()
2330 if (!pdn || pdn->pe_number == IODA_INVALID_PE) { in pnv_pci_enable_device_hook()
2340 struct pci_dn *pdn; in pnv_ocapi_enable_device_hook() local
2343 pdn = pci_get_pdn(dev); in pnv_ocapi_enable_device_hook()
2344 if (!pdn) in pnv_ocapi_enable_device_hook()
2347 if (pdn->pe_number == IODA_INVALID_PE) { in pnv_ocapi_enable_device_hook()
2456 struct pci_dn *pdn = pci_get_pdn(pdev); in pnv_pci_release_device() local
2463 if (!pdn || pdn->pe_number == IODA_INVALID_PE) in pnv_pci_release_device()
2484 pe = &phb->ioda.pe_array[pdn->pe_number]; in pnv_pci_release_device()
2485 pdn->pe_number = IODA_INVALID_PE; in pnv_pci_release_device()