Lines Matching refs:map
157 * a chance to clean up or reset the map to the desired
900 struct vhost_iotlb_map *map, u32 asid)
905 ops->dma_unmap(vdpa, asid, map->start, map->size);
907 iommu_unmap(v->domain, map->start, map->size);
915 struct vhost_iotlb_map *map;
919 while ((map = vhost_iotlb_itree_first(iotlb, start, last)) != NULL) {
920 pinned = PFN_DOWN(map->size);
921 for (pfn = PFN_DOWN(map->addr);
924 if (map->perm & VHOST_ACCESS_WO)
928 atomic64_sub(PFN_DOWN(map->size), &dev->mm->pinned_vm);
929 vhost_vdpa_general_unmap(v, map, asid);
930 vhost_iotlb_map_free(iotlb, map);
937 struct vhost_iotlb_map *map;
940 while ((map = vhost_iotlb_itree_first(iotlb, start, last)) != NULL) {
941 map_file = (struct vdpa_map_file *)map->opaque;
944 vhost_vdpa_general_unmap(v, map, asid);
945 vhost_iotlb_map_free(iotlb, map);