Home
last modified time | relevance | path

Searched refs:VFIO_PCI_NUM_REGIONS (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/i915/gvt/
Dkvmgt.c403 VFIO_PCI_NUM_REGIONS; in intel_vgpu_reg_rw_opregion()
504 VFIO_PCI_NUM_REGIONS; in intel_vgpu_reg_rw_edid()
799 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) { in intel_vgpu_rw()
828 if (index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) in intel_vgpu_rw()
831 index -= VFIO_PCI_NUM_REGIONS; in intel_vgpu_rw()
1156 info.num_regions = VFIO_PCI_NUM_REGIONS + in intel_vgpu_ioctl()
1247 if (info.index >= VFIO_PCI_NUM_REGIONS + in intel_vgpu_ioctl()
1252 VFIO_PCI_NUM_REGIONS + in intel_vgpu_ioctl()
1255 i = info.index - VFIO_PCI_NUM_REGIONS; in intel_vgpu_ioctl()
/linux-6.6.21/drivers/vfio/pci/
Dvfio_pci_igd.c68 unsigned int i = VFIO_PCI_OFFSET_TO_INDEX(*ppos) - VFIO_PCI_NUM_REGIONS; in vfio_pci_igd_rw()
285 unsigned int i = VFIO_PCI_OFFSET_TO_INDEX(*ppos) - VFIO_PCI_NUM_REGIONS; in vfio_pci_igd_cfg_rw()
Dvfio_pci_core.c978 info.num_regions = VFIO_PCI_NUM_REGIONS + vdev->num_regions; in vfio_pci_ioctl_get_info()
1107 if (info.index >= VFIO_PCI_NUM_REGIONS + vdev->num_regions) in vfio_pci_ioctl_get_region_info()
1110 info.index, VFIO_PCI_NUM_REGIONS + vdev->num_regions); in vfio_pci_ioctl_get_region_info()
1112 i = info.index - VFIO_PCI_NUM_REGIONS; in vfio_pci_ioctl_get_region_info()
1523 if (index >= VFIO_PCI_NUM_REGIONS + vdev->num_regions) in vfio_pci_rw()
1554 index -= VFIO_PCI_NUM_REGIONS; in vfio_pci_rw()
1812 if (index >= VFIO_PCI_NUM_REGIONS + vdev->num_regions) in vfio_pci_core_mmap()
1818 if (index >= VFIO_PCI_NUM_REGIONS) { in vfio_pci_core_mmap()
1819 int regnum = index - VFIO_PCI_NUM_REGIONS; in vfio_pci_core_mmap()
/linux-6.6.21/samples/vfio-mdev/
Dmtty.c136 struct mdev_region_info region_info[VFIO_PCI_NUM_REGIONS];
137 u32 bar_mask[VFIO_PCI_NUM_REGIONS];
1141 if (bar_index >= VFIO_PCI_NUM_REGIONS) in mtty_get_region_info()
1195 dev_info->num_regions = VFIO_PCI_NUM_REGIONS; in mtty_get_device_info()
Dmdpy.c439 if (region_info->index >= VFIO_PCI_NUM_REGIONS && in mdpy_get_region_info()
476 dev_info->num_regions = VFIO_PCI_NUM_REGIONS; in mdpy_get_device_info()
Dmbochs.c73 #define MBOCHS_EDID_REGION_INDEX VFIO_PCI_NUM_REGIONS
/linux-6.6.21/include/uapi/linux/
Dvfio.h637 VFIO_PCI_NUM_REGIONS = 9 /* Fixed user ABI, region indexes >=9 use */ enumerator