Lines Matching refs:n_buckets
30 u32 n_buckets;
31 struct stack_map_bucket *buckets[] __counted_by(n_buckets);
74 u64 cost, n_buckets;
100 n_buckets = roundup_pow_of_two(attr->max_entries);
102 cost = n_buckets * sizeof(struct stack_map_bucket *) + sizeof(*smap);
108 smap->n_buckets = n_buckets;
232 id = hash & (smap->n_buckets - 1);
584 if (unlikely(id >= smap->n_buckets))
614 if (id >= smap->n_buckets || !smap->buckets[id])
620 while (id < smap->n_buckets && !smap->buckets[id])
623 if (id >= smap->n_buckets)
643 if (unlikely(id >= smap->n_buckets))
670 u64 n_buckets = smap->n_buckets;
674 usage += n_buckets * sizeof(struct stack_map_bucket *);