Lines Matching refs:ht
69 _mesa_hash_table_init(struct hash_table *ht,
80 void _mesa_hash_table_destroy(struct hash_table *ht,
82 void _mesa_hash_table_clear(struct hash_table *ht,
84 void _mesa_hash_table_set_deleted_key(struct hash_table *ht,
87 static inline uint32_t _mesa_hash_table_num_entries(struct hash_table *ht)
89 return ht->entries;
93 _mesa_hash_table_insert(struct hash_table *ht, const void *key, void *data);
95 _mesa_hash_table_insert_pre_hashed(struct hash_table *ht, uint32_t hash,
98 _mesa_hash_table_search(struct hash_table *ht, const void *key);
100 _mesa_hash_table_search_pre_hashed(struct hash_table *ht, uint32_t hash,
102 void _mesa_hash_table_remove(struct hash_table *ht,
104 void _mesa_hash_table_remove_key(struct hash_table *ht,
107 struct hash_entry *_mesa_hash_table_next_entry(struct hash_table *ht,
109 struct hash_entry *_mesa_hash_table_next_entry_unsafe(const struct hash_table *ht,
112 _mesa_hash_table_random_entry(struct hash_table *ht,
134 _mesa_hash_table_reserve(struct hash_table *ht, unsigned size);
140 #define hash_table_foreach(ht, entry) \
141 for (struct hash_entry *entry = _mesa_hash_table_next_entry(ht, 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); \
150 (ht)->entries; \
152 (ht)->entries--, entry = _mesa_hash_table_next_entry_unsafe(ht, entry))
155 hash_table_call_foreach(struct hash_table *ht,
161 hash_table_foreach(ht, entry)
178 _mesa_hash_table_u64_destroy(struct hash_table_u64 *ht);
181 _mesa_hash_table_u64_insert(struct hash_table_u64 *ht, uint64_t key,
185 _mesa_hash_table_u64_search(struct hash_table_u64 *ht, uint64_t key);
188 _mesa_hash_table_u64_remove(struct hash_table_u64 *ht, uint64_t key);
191 _mesa_hash_table_u64_clear(struct hash_table_u64 *ht);