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);
53 struct vhost_iotlb_map *map;
61 map = list_first_entry(&iotlb->list, typeof(*map), link);
62 vhost_iotlb_map_free(iotlb, map);
65 map = kmalloc(sizeof(*map), GFP_ATOMIC);
66 if (!map)
69 map->start = start;
70 map->size = last - start + 1;
71 map->last = last;
72 map->addr = addr;
73 map->perm = perm;
76 vhost_iotlb_itree_insert(map, &iotlb->root);
78 INIT_LIST_HEAD(&map->link);
79 list_add_tail(&map->link, &iotlb->list);
93 struct vhost_iotlb_map *map;
95 while ((map = vhost_iotlb_itree_iter_first(&iotlb->root,
97 vhost_iotlb_map_free(iotlb, map);
163 * @map: the starting map node
168 vhost_iotlb_itree_next(struct vhost_iotlb_map *map, u64 start, u64 last)
170 return vhost_iotlb_itree_iter_next(map, start, last);