Lines Matching refs:npe

98 static struct pnv_ioda_pe *get_gpu_pci_dev_and_pe(struct pnv_ioda_pe *npe,  in get_gpu_pci_dev_and_pe()  argument
107 pdev = pnv_pci_get_gpu_dev(npe->pdev); in get_gpu_pci_dev_and_pe()
131 struct pnv_ioda_pe *npe = container_of(table_group, struct pnv_ioda_pe, in pnv_npu_set_window() local
133 struct pnv_phb *phb = npe->phb; in pnv_npu_set_window()
142 if (npe->table_group.tables[num2]) in pnv_npu_set_window()
143 pnv_npu_unset_window(&npe->table_group, num2); in pnv_npu_set_window()
145 pe_info(npe, "Setting up window %llx..%llx pg=%lx\n", in pnv_npu_set_window()
150 npe->pe_number, in pnv_npu_set_window()
151 npe->pe_number, in pnv_npu_set_window()
157 pe_err(npe, "Failed to configure TCE table, err %lld\n", rc); in pnv_npu_set_window()
164 tbl, &npe->table_group); in pnv_npu_set_window()
171 struct pnv_ioda_pe *npe = container_of(table_group, struct pnv_ioda_pe, in pnv_npu_unset_window() local
173 struct pnv_phb *phb = npe->phb; in pnv_npu_unset_window()
176 if (!npe->table_group.tables[num]) in pnv_npu_unset_window()
179 pe_info(npe, "Removing DMA window\n"); in pnv_npu_unset_window()
181 rc = opal_pci_map_pe_dma_window(phb->opal_id, npe->pe_number, in pnv_npu_unset_window()
182 npe->pe_number, in pnv_npu_unset_window()
186 pe_err(npe, "Unmapping failed, ret = %lld\n", rc); in pnv_npu_unset_window()
191 pnv_pci_unlink_table_and_group(npe->table_group.tables[num], in pnv_npu_unset_window()
192 &npe->table_group); in pnv_npu_unset_window()
200 struct pnv_ioda_pe *npe = container_of(table_group, struct pnv_ioda_pe, in pnv_npu_take_ownership() local
202 struct pnv_phb *phb = npe->phb; in pnv_npu_take_ownership()
212 if (npe->table_group.tables[0]) { in pnv_npu_take_ownership()
213 pnv_npu_unset_window(&npe->table_group, 0); in pnv_npu_take_ownership()
219 npe->pe_number, npe->pe_number, in pnv_npu_take_ownership()
222 pe_err(npe, "Failed to disable bypass, err %lld\n", rc); in pnv_npu_take_ownership()
225 pnv_pci_ioda2_tce_invalidate_entire(npe->phb, false); in pnv_npu_take_ownership()
227 get_gpu_pci_dev_and_pe(npe, &gpdev); in pnv_npu_take_ownership()
234 struct pnv_ioda_pe *npe = container_of(table_group, struct pnv_ioda_pe, in pnv_npu_release_ownership() local
238 get_gpu_pci_dev_and_pe(npe, &gpdev); in pnv_npu_release_ownership()