gpdev 124 arch/powerpc/include/asm/pci.h extern struct pci_dev *pnv_pci_get_npu_dev(struct pci_dev *gpdev, int index); gpdev 126 arch/powerpc/include/asm/pci.h extern int pnv_npu2_map_lpar_dev(struct pci_dev *gpdev, unsigned int lparid, gpdev 128 arch/powerpc/include/asm/pci.h extern int pnv_npu2_unmap_lpar_dev(struct pci_dev *gpdev); gpdev 47 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev *gpdev; gpdev 60 arch/powerpc/platforms/powernv/npu-dma.c gpdev = get_pci_dev(dn); gpdev 63 arch/powerpc/platforms/powernv/npu-dma.c return gpdev; gpdev 68 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev *pnv_pci_get_npu_dev(struct pci_dev *gpdev, int index) gpdev 73 arch/powerpc/platforms/powernv/npu-dma.c if (WARN_ON(!gpdev)) gpdev 77 arch/powerpc/platforms/powernv/npu-dma.c if (!gpdev->dev.of_node) gpdev 81 arch/powerpc/platforms/powernv/npu-dma.c dn = of_parse_phandle(gpdev->dev.of_node, "ibm,npu", index); gpdev 98 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev **gpdev) gpdev 118 arch/powerpc/platforms/powernv/npu-dma.c if (gpdev) gpdev 119 arch/powerpc/platforms/powernv/npu-dma.c *gpdev = pdev; gpdev 203 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev *gpdev = NULL; gpdev 226 arch/powerpc/platforms/powernv/npu-dma.c get_gpu_pci_dev_and_pe(npe, &gpdev); gpdev 227 arch/powerpc/platforms/powernv/npu-dma.c if (gpdev) gpdev 228 arch/powerpc/platforms/powernv/npu-dma.c pnv_npu2_unmap_lpar_dev(gpdev); gpdev 235 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev *gpdev = NULL; gpdev 237 arch/powerpc/platforms/powernv/npu-dma.c get_gpu_pci_dev_and_pe(npe, &gpdev); gpdev 238 arch/powerpc/platforms/powernv/npu-dma.c if (gpdev) gpdev 239 arch/powerpc/platforms/powernv/npu-dma.c pnv_npu2_map_lpar_dev(gpdev, 0, MSR_DR | MSR_PR | MSR_HV); gpdev 432 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev *gpdev = NULL; gpdev 436 arch/powerpc/platforms/powernv/npu-dma.c list_for_each_entry(gpdev, &pe->pbus->devices, bus_list) { gpdev 437 arch/powerpc/platforms/powernv/npu-dma.c npdev = pnv_pci_get_npu_dev(gpdev, 0); gpdev 485 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev *gpdev = NULL; gpdev 487 arch/powerpc/platforms/powernv/npu-dma.c struct pnv_ioda_pe *gpe = get_gpu_pci_dev_and_pe(pe, &gpdev); gpdev 502 arch/powerpc/platforms/powernv/npu-dma.c iommu_group_get(&gpdev->dev)); gpdev 516 arch/powerpc/platforms/powernv/npu-dma.c if (gpdevtmp != gpdev) gpdev 551 arch/powerpc/platforms/powernv/npu-dma.c int pnv_npu2_map_lpar_dev(struct pci_dev *gpdev, unsigned int lparid, gpdev 555 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev *npdev = pnv_pci_get_npu_dev(gpdev, 0); gpdev 565 arch/powerpc/platforms/powernv/npu-dma.c dev_dbg(&gpdev->dev, "Map LPAR opalid=%llu lparid=%u\n", gpdev 571 arch/powerpc/platforms/powernv/npu-dma.c ret = opal_npu_map_lpar(nphb->opal_id, pci_dev_id(gpdev), lparid, gpdev 574 arch/powerpc/platforms/powernv/npu-dma.c dev_err(&gpdev->dev, "Error %d mapping device to LPAR\n", ret); gpdev 578 arch/powerpc/platforms/powernv/npu-dma.c dev_dbg(&gpdev->dev, "init context opalid=%llu msr=%lx\n", gpdev 581 arch/powerpc/platforms/powernv/npu-dma.c pci_dev_id(gpdev)); gpdev 583 arch/powerpc/platforms/powernv/npu-dma.c dev_err(&gpdev->dev, "Failed to init context: %d\n", ret); gpdev 593 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev *gpdev; gpdev 595 arch/powerpc/platforms/powernv/npu-dma.c list_for_each_entry(gpdev, &gpe->pbus->devices, bus_list) gpdev 596 arch/powerpc/platforms/powernv/npu-dma.c pnv_npu2_map_lpar_dev(gpdev, 0, msr); gpdev 599 arch/powerpc/platforms/powernv/npu-dma.c int pnv_npu2_unmap_lpar_dev(struct pci_dev *gpdev) gpdev 602 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dev *npdev = pnv_pci_get_npu_dev(gpdev, 0); gpdev 612 arch/powerpc/platforms/powernv/npu-dma.c dev_dbg(&gpdev->dev, "destroy context opalid=%llu\n", gpdev 615 arch/powerpc/platforms/powernv/npu-dma.c pci_dev_id(gpdev)); gpdev 617 arch/powerpc/platforms/powernv/npu-dma.c dev_err(&gpdev->dev, "Failed to destroy context: %d\n", ret); gpdev 622 arch/powerpc/platforms/powernv/npu-dma.c dev_dbg(&gpdev->dev, "Map LPAR opalid=%llu lparid=0\n", nphb->opal_id); gpdev 623 arch/powerpc/platforms/powernv/npu-dma.c ret = opal_npu_map_lpar(nphb->opal_id, pci_dev_id(gpdev), 0 /*LPID*/, gpdev 626 arch/powerpc/platforms/powernv/npu-dma.c dev_err(&gpdev->dev, "Error %d mapping device to LPAR\n", ret); gpdev 213 arch/powerpc/platforms/powernv/pci.h extern void pnv_npu_try_dma_set_bypass(struct pci_dev *gpdev, bool bypass); gpdev 38 drivers/vfio/pci/vfio_pci_nvlink2.c struct pci_dev *gpdev; gpdev 108 drivers/vfio/pci/vfio_pci_nvlink2.c vfio_unregister_notifier(&data->gpdev->dev, VFIO_GROUP_NOTIFY, gpdev 111 drivers/vfio/pci/vfio_pci_nvlink2.c pnv_npu2_unmap_lpar_dev(data->gpdev); gpdev 129 drivers/vfio/pci/vfio_pci_nvlink2.c trace_vfio_pci_nvgpu_mmap_fault(data->gpdev, pfn << PAGE_SHIFT, gpdev 203 drivers/vfio/pci/vfio_pci_nvlink2.c pnv_npu2_map_lpar_dev(data->gpdev, gpdev 261 drivers/vfio/pci/vfio_pci_nvlink2.c data->gpdev = vdev->pdev; gpdev 264 drivers/vfio/pci/vfio_pci_nvlink2.c ret = vfio_register_notifier(&data->gpdev->dev, VFIO_GROUP_NOTIFY, gpdev 275 drivers/vfio/pci/vfio_pci_nvlink2.c vfio_unregister_notifier(&data->gpdev->dev, VFIO_GROUP_NOTIFY,