Home
last modified time | relevance | path

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

/openbmc/qemu/util/
H A Dvfio-helpers.c57 struct vfio_region_info config_region_info, bar_region_info[6]; member
137 assert(index >= 0 && index < ARRAY_SIZE(s->bar_region_info)); in assert_bar_index_valid()
144 s->bar_region_info[index] = (struct vfio_region_info) { in qemu_vfio_pci_init_bar()
153 trace_qemu_vfio_region_info(barname, s->bar_region_info[index].offset, in qemu_vfio_pci_init_bar()
154 s->bar_region_info[index].size, in qemu_vfio_pci_init_bar()
155 s->bar_region_info[index].cap_offset); in qemu_vfio_pci_init_bar()
170 p = mmap(NULL, MIN(size, s->bar_region_info[index].size - offset), in qemu_vfio_pci_map_bar()
172 s->device, s->bar_region_info[index].offset + offset); in qemu_vfio_pci_map_bar()
173 trace_qemu_vfio_pci_map_bar(index, s->bar_region_info[index].offset , in qemu_vfio_pci_map_bar()
189 munmap(bar, MIN(size, s->bar_region_info[index].size - offset)); in qemu_vfio_pci_unmap_bar()
[all …]