Lines Matching defs:map
797 struct vhost_iotlb_map *map, u32 asid)
802 ops->dma_unmap(vdpa, asid, map->start, map->size);
804 iommu_unmap(v->domain, map->start, map->size);
812 struct vhost_iotlb_map *map;
816 while ((map = vhost_iotlb_itree_first(iotlb, start, last)) != NULL) {
817 pinned = PFN_DOWN(map->size);
818 for (pfn = PFN_DOWN(map->addr);
821 if (map->perm & VHOST_ACCESS_WO)
825 atomic64_sub(PFN_DOWN(map->size), &dev->mm->pinned_vm);
826 vhost_vdpa_general_unmap(v, map, asid);
827 vhost_iotlb_map_free(iotlb, map);
834 struct vhost_iotlb_map *map;
837 while ((map = vhost_iotlb_itree_first(iotlb, start, last)) != NULL) {
838 map_file = (struct vdpa_map_file *)map->opaque;
841 vhost_vdpa_general_unmap(v, map, asid);
842 vhost_iotlb_map_free(iotlb, map);