Lines Matching refs:n_buckets
30 u32 n_buckets; member
31 struct stack_map_bucket *buckets[] __counted_by(n_buckets);
74 u64 cost, n_buckets; in stack_map_alloc() local
100 n_buckets = roundup_pow_of_two(attr->max_entries); in stack_map_alloc()
102 cost = n_buckets * sizeof(struct stack_map_bucket *) + sizeof(*smap); in stack_map_alloc()
108 smap->n_buckets = n_buckets; in stack_map_alloc()
246 id = hash & (smap->n_buckets - 1); in __bpf_get_stackid()
655 if (unlikely(id >= smap->n_buckets)) in bpf_stackmap_copy()
685 if (id >= smap->n_buckets || !smap->buckets[id]) in stack_map_get_next_key()
691 while (id < smap->n_buckets && !smap->buckets[id]) in stack_map_get_next_key()
694 if (id >= smap->n_buckets) in stack_map_get_next_key()
714 if (unlikely(id >= smap->n_buckets)) in stack_map_delete_elem()
741 u64 n_buckets = smap->n_buckets; in stack_map_mem_usage() local
745 usage += n_buckets * sizeof(struct stack_map_bucket *); in stack_map_mem_usage()