Home
last modified time | relevance | path

Searched refs:barmap (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/
H A Dvfio_pci_core.h102 void __iomem *barmap[PCI_STD_NUM_BARS]; member
254 if (WARN_ON_ONCE(!vdev->barmap[bar])) in vfio_pci_core_get_iomap()
257 return vdev->barmap[bar]; in vfio_pci_core_get_iomap()
/linux/drivers/vfio/pci/
H A Dvfio_pci_core.c556 vdev->barmap[bar] = IOMEM_ERR_PTR(-ENODEV); in vfio_pci_core_map_bars()
566 vdev->barmap[bar] = IOMEM_ERR_PTR(-EBUSY); in vfio_pci_core_map_bars()
570 vdev->barmap[bar] = pci_iomap(pdev, bar, 0); in vfio_pci_core_map_bars()
571 if (!vdev->barmap[bar]) { in vfio_pci_core_map_bars()
574 vdev->barmap[bar] = IOMEM_ERR_PTR(-ENOMEM); in vfio_pci_core_map_bars()
746 if (IS_ERR_OR_NULL(vdev->barmap[bar])) in vfio_pci_core_disable()
748 pci_iounmap(pdev, vdev->barmap[bar]); in vfio_pci_core_disable()
750 vdev->barmap[bar] = NULL; in vfio_pci_core_disable()