Lines Matching refs:ht
68 _mesa_hash_table_init(struct hash_table *ht,
79 void _mesa_hash_table_destroy(struct hash_table *ht,
81 void _mesa_hash_table_clear(struct hash_table *ht,
83 void _mesa_hash_table_set_deleted_key(struct hash_table *ht,
86 static inline uint32_t _mesa_hash_table_num_entries(struct hash_table *ht)
88 return ht->entries;
92 _mesa_hash_table_insert(struct hash_table *ht, const void *key, void *data);
94 _mesa_hash_table_insert_pre_hashed(struct hash_table *ht, uint32_t hash,
97 _mesa_hash_table_search(struct hash_table *ht, const void *key);
99 _mesa_hash_table_search_pre_hashed(struct hash_table *ht, uint32_t hash,
101 void _mesa_hash_table_remove(struct hash_table *ht,
103 void _mesa_hash_table_remove_key(struct hash_table *ht,
106 struct hash_entry *_mesa_hash_table_next_entry(struct hash_table *ht,
108 struct hash_entry *_mesa_hash_table_next_entry_unsafe(const struct hash_table *ht,
111 _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);