Home
last modified time | relevance | path

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

/openbmc/qemu/include/hw/virtio/
H A Dvirtio-iommu.h44 GList *resv_regions; member
/openbmc/qemu/hw/virtio/
H A Dvirtio-iommu.c400 sdev->resv_regions = resv_region_list_insert(sdev->resv_regions, reg); in add_prop_resv_regions()
512 g_list_free_full(sdev->resv_regions, g_free); in rebuild_resv_regions()
513 sdev->resv_regions = NULL; in rebuild_resv_regions()
522 sdev->resv_regions = resv_region_list_insert(sdev->resv_regions, reg); in rebuild_resv_regions()
585 g_list_free_full(sdev->resv_regions, g_free); in virtio_iommu_unset_host_iova_ranges()
587 sdev->resv_regions = NULL; in virtio_iommu_unset_host_iova_ranges()
900 total = size * g_list_length(sdev->resv_regions); in virtio_iommu_fill_resv_mem_prop()
905 for (l = sdev->resv_regions; l; l = l->next) { in virtio_iommu_fill_resv_mem_prop()
1190 for (l = sdev->resv_regions; l; l = l->next) { in virtio_iommu_translate()
/openbmc/linux/drivers/iommu/
H A Dvirtio-iommu.c80 struct list_head resv_regions; member
394 list_for_each_entry(resv, &vdev->resv_regions, list) { in viommu_domain_map_identity()
506 list_for_each_entry(next, &vdev->resv_regions, list) { in viommu_add_resv_mem()
921 list_for_each_entry(entry, &vdev->resv_regions, list) { in viommu_get_resv_regions()
985 INIT_LIST_HEAD(&vdev->resv_regions); in viommu_probe_device()
998 iommu_put_resv_regions(dev, &vdev->resv_regions); in viommu_probe_device()
1018 iommu_put_resv_regions(dev, &vdev->resv_regions); in viommu_release_device()
H A Ddma-iommu.c487 LIST_HEAD(resv_regions); in iova_reserve_iommu_regions()
496 iommu_get_resv_regions(dev, &resv_regions); in iova_reserve_iommu_regions()
497 list_for_each_entry(region, &resv_regions, list) { in iova_reserve_iommu_regions()
514 iommu_put_resv_regions(dev, &resv_regions); in iova_reserve_iommu_regions()
/openbmc/linux/drivers/vfio/
H A Dvfio_iommu_type1.c2026 struct list_head *resv_regions) in vfio_iommu_resv_conflict() argument
2031 list_for_each_entry(region, resv_regions, list) { in vfio_iommu_resv_conflict()
2047 struct list_head *resv_regions) in vfio_iommu_resv_exclude() argument
2052 list_for_each_entry(resv, resv_regions, list) { in vfio_iommu_resv_exclude()
2094 static void vfio_iommu_resv_free(struct list_head *resv_regions) in vfio_iommu_resv_free() argument
2098 list_for_each_entry_safe(n, next, resv_regions, list) { in vfio_iommu_resv_free()
2427 LIST_HEAD(resv_regions); in vfio_iommu_resv_refresh()
2436 &resv_regions); in vfio_iommu_resv_refresh()
2455 ret = vfio_iommu_resv_exclude(iova_copy, &resv_regions); in vfio_iommu_resv_refresh()
2457 vfio_iommu_resv_free(&resv_regions); in vfio_iommu_resv_refresh()
/openbmc/linux/drivers/iommu/iommufd/
H A Dio_pagetable.c1203 LIST_HEAD(resv_regions); in iopt_table_enforce_dev_resv_regions()
1213 iommu_get_resv_regions(dev, &resv_regions); in iopt_table_enforce_dev_resv_regions()
1215 list_for_each_entry(resv, &resv_regions, list) { in iopt_table_enforce_dev_resv_regions()
1244 iommu_put_resv_regions(dev, &resv_regions); in iopt_table_enforce_dev_resv_regions()