Searched refs:iova_tree (Results 1 – 10 of 10) sorted by relevance
/openbmc/qemu/hw/virtio/ |
H A D | vhost-iova-tree.c | 53 void vhost_iova_tree_delete(VhostIOVATree *iova_tree) in vhost_iova_tree_delete() argument 55 iova_tree_destroy(iova_tree->iova_taddr_map); in vhost_iova_tree_delete() 56 g_free(iova_tree); in vhost_iova_tree_delete() 107 void vhost_iova_tree_remove(VhostIOVATree *iova_tree, DMAMap map) in vhost_iova_tree_remove() argument 109 iova_tree_remove(iova_tree->iova_taddr_map, map); in vhost_iova_tree_remove()
|
H A D | vhost-iova-tree.h | 19 void vhost_iova_tree_delete(VhostIOVATree *iova_tree); 22 const DMAMap *vhost_iova_tree_find_iova(const VhostIOVATree *iova_tree, 24 int vhost_iova_tree_map_alloc(VhostIOVATree *iova_tree, DMAMap *map); 25 void vhost_iova_tree_remove(VhostIOVATree *iova_tree, DMAMap map);
|
H A D | vhost-shadow-virtqueue.h | 79 VhostIOVATree *iova_tree; member 133 VirtQueue *vq, VhostIOVATree *iova_tree);
|
H A D | vhost-vdpa.c | 368 r = vhost_iova_tree_map_alloc(s->iova_tree, &mem_region); in vhost_vdpa_listener_region_add() 389 vhost_iova_tree_remove(s->iova_tree, mem_region); in vhost_vdpa_listener_region_add() 451 result = vhost_iova_tree_find_iova(s->iova_tree, &mem_region); in vhost_vdpa_listener_region_del() 457 vhost_iova_tree_remove(s->iova_tree, *result); in vhost_vdpa_listener_region_del() 1106 const DMAMap *result = vhost_iova_tree_find_iova(v->shared->iova_tree, in vhost_vdpa_svq_unmap_ring() 1124 vhost_iova_tree_remove(v->shared->iova_tree, *result); in vhost_vdpa_svq_unmap_ring() 1152 r = vhost_iova_tree_map_alloc(v->shared->iova_tree, needle); in vhost_vdpa_svq_map_ring() 1164 vhost_iova_tree_remove(v->shared->iova_tree, *needle); in vhost_vdpa_svq_map_ring() 1265 vhost_svq_start(svq, dev->vdev, vq, v->shared->iova_tree); in vhost_vdpa_svqs_start()
|
H A D | vhost-shadow-virtqueue.c | 98 const DMAMap *map = vhost_iova_tree_find_iova(svq->iova_tree, &needle); in vhost_svq_translate_addr() 660 VirtQueue *vq, VhostIOVATree *iova_tree) in vhost_svq_start() argument 671 svq->iova_tree = iova_tree; in vhost_svq_start()
|
/openbmc/qemu/util/ |
H A D | iova-tree.c | 76 IOVATree *iova_tree = g_new0(IOVATree, 1); in iova_tree_new() local 79 iova_tree->tree = g_tree_new_full(iova_tree_compare, NULL, g_free, NULL); in iova_tree_new() 81 return iova_tree; in iova_tree_new()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | vhost-vdpa.h | 47 VhostIOVATree *iova_tree; member
|
/openbmc/qemu/net/ |
H A D | vhost-vdpa.c | 366 v->shared->iova_tree = vhost_iova_tree_new(v->shared->iova_range.first, in vhost_vdpa_net_data_start_first() 425 g_clear_pointer(&s->vhost_vdpa.shared->iova_tree, in vhost_vdpa_net_client_stop() 483 VhostIOVATree *tree = v->shared->iova_tree; in vhost_vdpa_cvq_unmap_buf() 518 r = vhost_iova_tree_map_alloc(v->shared->iova_tree, &map); in vhost_vdpa_cvq_map_buf() 533 vhost_iova_tree_remove(v->shared->iova_tree, map); in vhost_vdpa_cvq_map_buf() 605 if (!v->shared->iova_tree) { in vhost_vdpa_net_cvq_start() 606 v->shared->iova_tree = vhost_iova_tree_new(v->shared->iova_range.first, in vhost_vdpa_net_cvq_start()
|
/openbmc/qemu/include/hw/i386/ |
H A D | intel_iommu.h | 148 IOVATree *iova_tree; member
|
/openbmc/qemu/hw/i386/ |
H A D | intel_iommu.c | 1231 const DMAMap *mapped = iova_tree_find(as->iova_tree, &target); in vtd_page_walk_one() 1279 iova_tree_remove(as->iova_tree, target); in vtd_page_walk_one() 1285 iova_tree_insert(as->iova_tree, &target); in vtd_page_walk_one() 1292 iova_tree_remove(as->iova_tree, target); in vtd_page_walk_one() 3823 vtd_dev_as->iova_tree = iova_tree_new(); in vtd_find_add_as() 4034 iova_tree_remove(as->iova_tree, map); in vtd_address_space_unmap() 4070 iova_tree_remove(vtd_as->iova_tree, map); in vtd_iommu_replay()
|