Lines Matching refs:n_buckets
22 u32 n_buckets; /* number of hash buckets */ member
58 htab->n_buckets = roundup_pow_of_two(htab->map.max_entries); in htab_map_alloc()
81 if (htab->n_buckets == 0 || in htab_map_alloc()
82 htab->n_buckets > U32_MAX / sizeof(struct hlist_head)) in htab_map_alloc()
85 if ((u64) htab->n_buckets * sizeof(struct hlist_head) + in htab_map_alloc()
91 htab->map.pages = round_up(htab->n_buckets * sizeof(struct hlist_head) + in htab_map_alloc()
96 htab->buckets = kmalloc_array(htab->n_buckets, sizeof(struct hlist_head), in htab_map_alloc()
100 htab->buckets = vmalloc(htab->n_buckets * sizeof(struct hlist_head)); in htab_map_alloc()
105 for (i = 0; i < htab->n_buckets; i++) in htab_map_alloc()
125 return &htab->buckets[hash & (htab->n_buckets - 1)]; in select_bucket()
201 i = hash & (htab->n_buckets - 1); in htab_map_get_next_key()
206 for (; i < htab->n_buckets; i++) { in htab_map_get_next_key()
335 for (i = 0; i < htab->n_buckets; i++) { in delete_all_elements()