Searched refs:gpdev (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/arch/powerpc/platforms/powernv/ |
D | npu-dma.c | 48 struct pci_dev *gpdev; in pnv_pci_get_gpu_dev() local 61 gpdev = get_pci_dev(dn); in pnv_pci_get_gpu_dev() 64 return gpdev; in pnv_pci_get_gpu_dev() 69 struct pci_dev *pnv_pci_get_npu_dev(struct pci_dev *gpdev, int index) in pnv_pci_get_npu_dev() argument 74 if (WARN_ON(!gpdev)) in pnv_pci_get_npu_dev() 78 if (!gpdev->dev.of_node) in pnv_pci_get_npu_dev() 82 dn = of_parse_phandle(gpdev->dev.of_node, "ibm,npu", index); in pnv_pci_get_npu_dev() 99 struct pci_dev **gpdev) in get_gpu_pci_dev_and_pe() argument 119 if (gpdev) in get_gpu_pci_dev_and_pe() 120 *gpdev = pdev; in get_gpu_pci_dev_and_pe() [all …]
|
D | pci.h | 319 extern void pnv_npu_try_dma_set_bypass(struct pci_dev *gpdev, bool bypass);
|
/Linux-v5.10/drivers/vfio/pci/ |
D | vfio_pci_nvlink2.c | 38 struct pci_dev *gpdev; member 108 vfio_unregister_notifier(&data->gpdev->dev, VFIO_GROUP_NOTIFY, in vfio_pci_nvgpu_release() 111 pnv_npu2_unmap_lpar_dev(data->gpdev); in vfio_pci_nvgpu_release() 129 trace_vfio_pci_nvgpu_mmap_fault(data->gpdev, pfn << PAGE_SHIFT, in vfio_pci_nvgpu_mmap_fault() 203 pnv_npu2_map_lpar_dev(data->gpdev, in vfio_pci_nvgpu_group_notifier() 261 data->gpdev = vdev->pdev; in vfio_pci_nvdia_v100_nvlink2_init() 264 ret = vfio_register_notifier(&data->gpdev->dev, VFIO_GROUP_NOTIFY, in vfio_pci_nvdia_v100_nvlink2_init() 275 vfio_unregister_notifier(&data->gpdev->dev, VFIO_GROUP_NOTIFY, in vfio_pci_nvdia_v100_nvlink2_init()
|
/Linux-v5.10/arch/powerpc/include/asm/ |
D | pci.h | 123 extern struct pci_dev *pnv_pci_get_npu_dev(struct pci_dev *gpdev, int index); 125 extern int pnv_npu2_map_lpar_dev(struct pci_dev *gpdev, unsigned int lparid, 127 extern int pnv_npu2_unmap_lpar_dev(struct pci_dev *gpdev);
|