Lines Matching refs:entry
80 void (*delete_function)(struct hash_entry *entry));
82 void (*delete_function)(struct hash_entry *entry));
102 struct hash_entry *entry);
107 struct hash_entry *entry);
109 struct hash_entry *entry);
112 bool (*predicate)(struct hash_entry *entry));
137 * an entry's data with the deleted marker), but not against insertion
138 * (which may rehash the table, making entry a dangling pointer).
140 #define hash_table_foreach(ht, entry) \
141 for (struct hash_entry *entry = _mesa_hash_table_next_entry(ht, NULL); \
142 entry != NULL; \
143 entry = _mesa_hash_table_next_entry(ht, entry))
148 #define hash_table_foreach_remove(ht, entry) \
149 for (struct hash_entry *entry = _mesa_hash_table_next_entry_unsafe(ht, NULL); \
151 entry->hash = 0, entry->key = (void*)NULL, entry->data = NULL, \
152 (ht)->entries--, entry = _mesa_hash_table_next_entry_unsafe(ht, entry))
161 hash_table_foreach(ht, entry)
162 callback(entry->key, entry->data, closure);