Lines Matching refs:pe
229 struct pnv_ioda_pe *pe = pnv_ioda_get_pe(pdev); in pnv_pci_ioda_fixup_iov() local
236 pe->pdev = pdev; in pnv_pci_ioda_fixup_iov()
237 WARN_ON(!(pe->flags & PNV_IODA_PE_VF)); in pnv_pci_ioda_fixup_iov()
478 struct pnv_ioda_pe *pe, *pe_n; in pnv_ioda_release_vf_PE() local
486 list_for_each_entry_safe(pe, pe_n, &phb->ioda.pe_list, list) { in pnv_ioda_release_vf_PE()
487 if (pe->parent_dev != pdev) in pnv_ioda_release_vf_PE()
490 pnv_pci_ioda2_release_pe_dma(pe); in pnv_ioda_release_vf_PE()
494 list_del(&pe->list); in pnv_ioda_release_vf_PE()
497 pnv_ioda_deconfigure_pe(phb, pe); in pnv_ioda_release_vf_PE()
499 pnv_ioda_free_pe(pe); in pnv_ioda_release_vf_PE()
617 struct pnv_ioda_pe *pe; in pnv_ioda_setup_vf_PE() local
636 pe = &iov->vf_pe_arr[vf_index]; in pnv_ioda_setup_vf_PE()
637 pe->phb = phb; in pnv_ioda_setup_vf_PE()
638 pe->flags = PNV_IODA_PE_VF; in pnv_ioda_setup_vf_PE()
639 pe->pbus = NULL; in pnv_ioda_setup_vf_PE()
640 pe->parent_dev = pdev; in pnv_ioda_setup_vf_PE()
641 pe->mve_number = -1; in pnv_ioda_setup_vf_PE()
642 pe->rid = (vf_bus << 8) | vf_devfn; in pnv_ioda_setup_vf_PE()
644 pe_num = pe->pe_number; in pnv_ioda_setup_vf_PE()
645 pe_info(pe, "VF %04d:%02d:%02d.%d associated with PE#%x\n", in pnv_ioda_setup_vf_PE()
649 if (pnv_ioda_configure_pe(phb, pe)) { in pnv_ioda_setup_vf_PE()
651 pnv_ioda_free_pe(pe); in pnv_ioda_setup_vf_PE()
652 pe->pdev = NULL; in pnv_ioda_setup_vf_PE()
658 list_add_tail(&pe->list, &phb->ioda.pe_list); in pnv_ioda_setup_vf_PE()
670 pnv_pci_ioda2_setup_dma_pe(phb, pe); in pnv_ioda_setup_vf_PE()