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