Lines Matching defs:map
3 * Stupid implementation of pointer -> pointer map.
49 struct ptrmap *map;
53 if ((map = head)) {
54 struct ptrmap *next = map->next;
56 map = next;
57 if ((nr = map->nr) < MAP_NR)
69 map = newmap;
73 pair = &map->pairs[nr];
76 map->nr = ++nr;
79 void *__ptrmap_lookup(struct ptrmap *map, void *key)
81 for (; map; map = map->next) {
82 int i, n = map->nr;
84 struct ptrpair *pair = &map->pairs[i];
94 struct ptrmap *map = *mapp;
96 for (; map; map = map->next) {
97 int i, n = map->nr;
99 struct ptrpair *pair = &map->pairs[i];