Lines Matching refs:n_buckets

186     size_t n_buckets;  member
232 for (i = 0; i < map->n_buckets; i++) { in qht_map_debug__all_locked()
308 return &map->buckets[hash & (map->n_buckets - 1)]; in qht_map_to_bucket()
316 for (i = 0; i < map->n_buckets; i++) { in qht_map_lock_buckets()
327 for (i = 0; i < map->n_buckets; i++) { in qht_map_unlock_buckets()
433 for (i = 0; i < map->n_buckets; i++) { in qht_map_destroy()
440 static struct qht_map *qht_map_create(size_t n_buckets) in qht_map_create() argument
446 map->n_buckets = n_buckets; in qht_map_create()
449 map->n_added_buckets_threshold = n_buckets / in qht_map_create()
458 sizeof(*map->buckets) * n_buckets); in qht_map_create()
459 for (i = 0; i < n_buckets; i++) { in qht_map_create()
469 size_t n_buckets = qht_elems_to_buckets(n_elems); in qht_init() local
475 map = qht_map_create(n_buckets); in qht_init()
511 for (i = 0; i < map->n_buckets; i++) { in qht_map_reset__all_locked()
540 size_t n_buckets; in qht_reset_size() local
542 n_buckets = qht_elems_to_buckets(n_elems); in qht_reset_size()
546 if (n_buckets != map->n_buckets) { in qht_reset_size()
547 new = qht_map_create(n_buckets); in qht_reset_size()
688 struct qht_map *new = qht_map_create(map->n_buckets * 2); in qht_grow_maybe()
865 for (i = 0; i < map->n_buckets; i++) { in qht_map_iter__all_locked()
942 g_assert(new->n_buckets != old->n_buckets); in qht_do_resize_reset()
955 size_t n_buckets = qht_elems_to_buckets(n_elems); in qht_resize() local
959 if (n_buckets != ht->map->n_buckets) { in qht_resize()
962 new = qht_map_create(n_buckets); in qht_resize()
988 stats->head_buckets = map->n_buckets; in qht_statistics_init()
990 for (i = 0; i < map->n_buckets; i++) { in qht_statistics_init()