Lines Matching refs:usable_iova_ranges

58     struct IOVARange *usable_iova_ranges;  member
283 s->usable_iova_ranges = in collect_usable_iova_ranges()
284 g_renew(struct IOVARange, s->usable_iova_ranges, in collect_usable_iova_ranges()
289 s->usable_iova_ranges[i].start = cap_iova_range->iova_ranges[i].start; in collect_usable_iova_ranges()
290 s->usable_iova_ranges[i].end = cap_iova_range->iova_ranges[i].end; in collect_usable_iova_ranges()
306 s->usable_iova_ranges = NULL; in qemu_vfio_init_pci()
386 s->usable_iova_ranges = g_new0(struct IOVARange, 1); in qemu_vfio_init_pci()
387 s->usable_iova_ranges[0].start = QEMU_VFIO_IOVA_MIN; in qemu_vfio_init_pci()
388 s->usable_iova_ranges[0].end = QEMU_VFIO_IOVA_MAX - 1; in qemu_vfio_init_pci()
454 g_free(s->usable_iova_ranges); in qemu_vfio_init_pci()
455 s->usable_iova_ranges = NULL; in qemu_vfio_init_pci()
688 if (s->usable_iova_ranges[i].end < s->low_water_mark) { in qemu_vfio_find_fixed_iova()
692 MAX(s->low_water_mark, s->usable_iova_ranges[i].start); in qemu_vfio_find_fixed_iova()
694 if (s->usable_iova_ranges[i].end - s->low_water_mark + 1 >= size || in qemu_vfio_find_fixed_iova()
695 s->usable_iova_ranges[i].end - s->low_water_mark + 1 == 0) { in qemu_vfio_find_fixed_iova()
712 if (s->usable_iova_ranges[i].start > s->high_water_mark) { in qemu_vfio_find_temp_iova()
716 MIN(s->high_water_mark, s->usable_iova_ranges[i].end + 1); in qemu_vfio_find_temp_iova()
718 if (s->high_water_mark - s->usable_iova_ranges[i].start + 1 >= size || in qemu_vfio_find_temp_iova()
719 s->high_water_mark - s->usable_iova_ranges[i].start + 1 == 0) { in qemu_vfio_find_temp_iova()
859 g_free(s->usable_iova_ranges); in qemu_vfio_close()