Home
last modified time | relevance | path

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

/openbmc/qemu/util/
H A Diova-tree.c28 const DMAMap *prev;
31 const DMAMap *this;
41 const DMAMap *needle;
42 const DMAMap *result;
84 const DMAMap *iova_tree_find(const IOVATree *tree, const DMAMap *map) in iova_tree_find()
94 const DMAMap *needle; in iova_tree_find_address_iterator()
108 const DMAMap *iova_tree_find_iova(const IOVATree *tree, const DMAMap *map) in iova_tree_find_iova()
133 DMAMap *new; in iova_tree_insert()
155 DMAMap *map = key; in iova_tree_traverse()
169 const DMAMap *overlap; in iova_tree_remove()
[all …]
/openbmc/qemu/include/qemu/
H A Diova-tree.h35 typedef struct DMAMap { struct
40 } QEMU_PACKED DMAMap; typedef
41 typedef gboolean (*iova_tree_iterator)(DMAMap *map);
63 int iova_tree_insert(IOVATree *tree, const DMAMap *map);
76 void iova_tree_remove(IOVATree *tree, DMAMap map);
94 const DMAMap *iova_tree_find(const IOVATree *tree, const DMAMap *map);
112 const DMAMap *iova_tree_find_iova(const IOVATree *tree, const DMAMap *map);
125 const DMAMap *iova_tree_find_address(const IOVATree *tree, hwaddr iova);
153 int iova_tree_alloc_map(IOVATree *tree, DMAMap *map, hwaddr iova_begin,
/openbmc/qemu/hw/virtio/
H A Dvhost-iova-tree.h22 const DMAMap *vhost_iova_tree_find_iova(const VhostIOVATree *iova_tree,
23 const DMAMap *map);
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 Dvhost-iova-tree.c67 const DMAMap *vhost_iova_tree_find_iova(const VhostIOVATree *tree, in vhost_iova_tree_find_iova()
68 const DMAMap *map) in vhost_iova_tree_find_iova()
86 int vhost_iova_tree_map_alloc(VhostIOVATree *tree, DMAMap *map) in vhost_iova_tree_map_alloc()
107 void vhost_iova_tree_remove(VhostIOVATree *iova_tree, DMAMap map) in vhost_iova_tree_remove()
H A Dvhost-vdpa.c317 DMAMap mem_region = {}; in vhost_vdpa_listener_region_add()
442 const DMAMap *result; in vhost_vdpa_listener_region_del()
446 DMAMap mem_region = { in vhost_vdpa_listener_region_del()
1103 const DMAMap needle = { in vhost_vdpa_svq_unmap_ring()
1106 const DMAMap *result = vhost_iova_tree_find_iova(v->shared->iova_tree, in vhost_vdpa_svq_unmap_ring()
1147 static bool vhost_vdpa_svq_map_ring(struct vhost_vdpa *v, DMAMap *needle, in vhost_vdpa_svq_map_ring()
1184 DMAMap device_region, driver_region; in vhost_vdpa_svq_map_rings()
1194 driver_region = (DMAMap) { in vhost_vdpa_svq_map_rings()
1208 device_region = (DMAMap) { in vhost_vdpa_svq_map_rings()
H A Dvhost-shadow-virtqueue.c91 DMAMap needle = { in vhost_svq_translate_addr()
98 const DMAMap *map = vhost_iova_tree_find_iova(svq->iova_tree, &needle); in vhost_svq_translate_addr()
/openbmc/qemu/net/
H A Dvhost-vdpa.c485 DMAMap needle = { in vhost_vdpa_cvq_unmap_buf()
492 const DMAMap *map = vhost_iova_tree_find_iova(tree, &needle); in vhost_vdpa_cvq_unmap_buf()
513 DMAMap map = {}; in vhost_vdpa_cvq_map_buf()
/openbmc/qemu/hw/i386/
H A Dintel_iommu.c1225 DMAMap target = { in vtd_page_walk_one()
1231 const DMAMap *mapped = iova_tree_find(as->iova_tree, &target); in vtd_page_walk_one()
3939 DMAMap map; in vtd_address_space_unmap()
4021 DMAMap map = { .iova = 0, .size = HWADDR_MAX }; in vtd_iommu_replay()