Lines Matching defs:map
16 #define START(map) ((map)->start)
17 #define LAST(map) ((map)->last)
24 * vhost_iotlb_map_free - remove a map node and free it
26 * @map: the map that want to be remove and freed
29 struct vhost_iotlb_map *map)
31 vhost_iotlb_itree_remove(map, &iotlb->root);
32 list_del(&map->link);
33 kfree(map);
55 struct vhost_iotlb_map *map;
78 map = list_first_entry(&iotlb->list, typeof(*map), link);
79 vhost_iotlb_map_free(iotlb, map);
82 map = kmalloc(sizeof(*map), GFP_ATOMIC);
83 if (!map)
86 map->start = start;
87 map->size = last - start + 1;
88 map->last = last;
89 map->addr = addr;
90 map->perm = perm;
91 map->opaque = opaque;
94 vhost_iotlb_itree_insert(map, &iotlb->root);
96 INIT_LIST_HEAD(&map->link);
97 list_add_tail(&map->link, &iotlb->list);
120 struct vhost_iotlb_map *map;
122 while ((map = vhost_iotlb_itree_iter_first(&iotlb->root,
124 vhost_iotlb_map_free(iotlb, map);
203 * @map: the starting map node
208 vhost_iotlb_itree_next(struct vhost_iotlb_map *map, u64 start, u64 last)
210 return vhost_iotlb_itree_iter_next(map, start, last);