Lines Matching refs:buckets
185 struct qht_bucket *buckets; member
233 qht_bucket_debug__locked(&map->buckets[i]); in qht_map_debug__all_locked()
262 unsigned long bucket_idx = b - map->buckets; in qht_do_if_first_in_stripe()
278 unsigned long bucket_idx = b - map->buckets; in qht_bucket_lock_do()
308 return &map->buckets[hash & (map->n_buckets - 1)]; in qht_map_to_bucket()
317 struct qht_bucket *b = &map->buckets[i]; in qht_map_lock_buckets()
328 struct qht_bucket *b = &map->buckets[i]; in qht_map_unlock_buckets()
433 qht_chain_destroy(map, &map->buckets[i]); in qht_map_destroy()
435 qemu_vfree(map->buckets); in qht_map_destroy()
456 map->buckets = qemu_memalign(QHT_BUCKET_ALIGN, in qht_map_create()
457 sizeof(*map->buckets) * n_buckets); in qht_map_create()
459 qht_head_init(map, &map->buckets[i]); in qht_map_create()
511 qht_bucket_reset__locked(&map->buckets[i]); in qht_map_reset__all_locked()
865 qht_bucket_iter(&map->buckets[i], iter, userp); in qht_map_iter__all_locked()
990 const struct qht_bucket *head = &map->buckets[i]; in qht_statistics_init()
993 size_t buckets; in qht_statistics_init() local
999 buckets = 0; in qht_statistics_init()
1009 buckets++; in qht_statistics_init()
1015 qdist_inc(&stats->chain, buckets); in qht_statistics_init()
1017 (double)entries / QHT_BUCKET_ENTRIES / buckets); in qht_statistics_init()