Lines Matching refs:size_index
125 ht->size_index = 0; in _mesa_set_init()
126 ht->size = hash_sizes[ht->size_index].size; in _mesa_set_init()
127 ht->rehash = hash_sizes[ht->size_index].rehash; in _mesa_set_init()
128 ht->size_magic = hash_sizes[ht->size_index].size_magic; in _mesa_set_init()
129 ht->rehash_magic = hash_sizes[ht->size_index].rehash_magic; in _mesa_set_init()
130 ht->max_entries = hash_sizes[ht->size_index].max_entries; in _mesa_set_init()
227 memset(ht->table, 0, sizeof(struct set_entry) * hash_sizes[ht->size_index].size); in set_clear_fast()
336 if (ht->size_index == new_size_index && ht->deleted_entries == ht->max_entries) { in set_rehash()
353 ht->size_index = new_size_index; in set_rehash()
354 ht->size = hash_sizes[ht->size_index].size; in set_rehash()
355 ht->rehash = hash_sizes[ht->size_index].rehash; in set_rehash()
356 ht->size_magic = hash_sizes[ht->size_index].size_magic; in set_rehash()
357 ht->rehash_magic = hash_sizes[ht->size_index].rehash_magic; in set_rehash()
358 ht->max_entries = hash_sizes[ht->size_index].max_entries; in set_rehash()
378 unsigned size_index = 0; in _mesa_set_resize() local
379 while (hash_sizes[size_index].max_entries < entries) in _mesa_set_resize()
380 size_index++; in _mesa_set_resize()
382 set_rehash(set, size_index); in _mesa_set_resize()
400 set_rehash(ht, ht->size_index + 1); in set_search_or_add()
402 set_rehash(ht, ht->size_index); in set_search_or_add()