Lines Matching refs:cur
65 struct hashmap_entry *cur, *tmp; in hashmap__clear() local
68 hashmap__for_each_entry_safe(map, cur, tmp, bkt) { in hashmap__clear()
69 free(cur); in hashmap__clear()
104 struct hashmap_entry *cur, *tmp; in hashmap_grow() local
117 hashmap__for_each_entry_safe(map, cur, tmp, bkt) { in hashmap_grow()
118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow()
119 hashmap_add_entry(&new_buckets[h], cur); in hashmap_grow()
135 struct hashmap_entry *cur, **prev_ptr; in hashmap_find_entry() local
140 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry()
141 cur; in hashmap_find_entry()
142 prev_ptr = &cur->next, cur = cur->next) { in hashmap_find_entry()
143 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry()
146 *entry = cur; in hashmap_find_entry()