Lines Matching refs:hashmap_entry
69 map->table = calloc(size, sizeof(struct hashmap_entry *)); in alloc_table()
86 const struct hashmap_entry *e1, in entry_equals()
87 const struct hashmap_entry *e2, in entry_equals()
94 const struct hashmap_entry *key) in bucket()
102 struct hashmap_entry **oldtable = map->table; in rehash()
106 struct hashmap_entry *e = oldtable[i]; in rehash()
109 struct hashmap_entry *next = e->next; in rehash()
120 static inline struct hashmap_entry **find_entry_ptr(const struct hashmap *map, in find_entry_ptr()
121 const struct hashmap_entry *key, in find_entry_ptr()
124 struct hashmap_entry **e = &map->table[bucket(map, key)]; in find_entry_ptr()
156 struct hashmap_entry *e; in hashmap_free()
176 struct hashmap_entry *e = ((struct hashmap_entry *)entry)->next; in hashmap_get_next()
189 ((struct hashmap_entry *)entry)->next = map->table[b]; in hashmap_add()
200 struct hashmap_entry *old; in hashmap_remove()
201 struct hashmap_entry **e = &map->table[bucket(map, entry)]; in hashmap_remove()
230 struct hashmap_entry *current = iter->next; in hashmap_iter_next()
246 struct hashmap_entry ent;