Lines Matching refs:cur
165 * @cur: struct hashmap_entry * used as a loop cursor
168 #define hashmap__for_each_entry(map, cur, bkt) \
170 for (cur = (map)->buckets[bkt]; cur; cur = cur->next)
176 * @cur: struct hashmap_entry * used as a loop cursor
180 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \
182 for (cur = (map)->buckets[bkt]; \
183 cur && ({tmp = cur->next; true; }); \
184 cur = tmp)
189 * @cur: struct hashmap_entry * used as a loop cursor
192 #define hashmap__for_each_key_entry(map, cur, _key) \
193 for (cur = (map)->buckets \
196 cur; \
197 cur = cur->next) \
198 if ((map)->equal_fn(cur->key, (_key), (map)->ctx))
200 #define hashmap__for_each_key_entry_safe(map, cur, tmp, _key) \
201 for (cur = (map)->buckets \
204 cur && ({ tmp = cur->next; true; }); \
205 cur = tmp) \
206 if ((map)->equal_fn(cur->key, (_key), (map)->ctx))