Lines Matching defs:map
39 "Maximum number of memory regions in memory map. (default: 64)");
1029 struct vhost_iotlb_map *map;
1034 list_for_each_entry(map, &umem->list, link) {
1035 unsigned long a = map->addr;
1037 if (vhost_overflow(map->addr, map->size))
1041 if (!access_ok((void __user *)a, map->size))
1044 map->start,
1045 map->size))
1055 const struct vhost_iotlb_map *map = vq->meta_iotlb[type];
1057 if (!map)
1060 return (void __user *)(uintptr_t)(map->addr + addr - map->start);
1608 const struct vhost_iotlb_map *map,
1614 if (likely(map->perm & access))
1615 vq->meta_iotlb[type] = map;
1621 const struct vhost_iotlb_map *map;
1629 map = vhost_iotlb_itree_first(umem, addr, last);
1630 if (map == NULL || map->start > addr) {
1633 } else if (!(map->perm & access)) {
1640 size = map->size - addr + map->start;
1643 vhost_vq_meta_update(vq, map, type);
2335 const struct vhost_iotlb_map *map;
2349 map = vhost_iotlb_itree_first(umem, addr, last);
2350 if (map == NULL || map->start > addr) {
2357 } else if (!(map->perm & access)) {
2363 size = map->size - addr + map->start;
2366 (map->addr + addr - map->start);