Searched refs:n_buckets (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/net/openvswitch/ |
D | flow_table.c | 114 static struct flex_array *alloc_buckets(unsigned int n_buckets) in alloc_buckets() argument 120 n_buckets, GFP_KERNEL); in alloc_buckets() 124 err = flex_array_prealloc(buckets, 0, n_buckets, GFP_KERNEL); in alloc_buckets() 130 for (i = 0; i < n_buckets; i++) in alloc_buckets() 196 ti->n_buckets = new_size; in table_instance_alloc() 250 for (i = 0; i < ti->n_buckets; i++) { in table_instance_destroy() 295 while (*bucket < ti->n_buckets) { in ovs_flow_tbl_dump_next() 317 (hash & (ti->n_buckets - 1))); in find_bucket() 348 for (i = 0; i < old->n_buckets; i++) { in flow_table_copy_flows() 368 int n_buckets, bool ufid) in table_instance_rehash() argument [all …]
|
D | flow_table.h | 41 unsigned int n_buckets; member
|
/Linux-v4.19/kernel/bpf/ |
D | stackmap.c | 32 u32 n_buckets; member 92 u64 cost, n_buckets; in stack_map_alloc() local 116 n_buckets = roundup_pow_of_two(attr->max_entries); in stack_map_alloc() 118 cost = n_buckets * sizeof(struct stack_map_bucket *) + sizeof(*smap); in stack_map_alloc() 127 cost += n_buckets * (value_size + sizeof(struct stack_map_bucket)); in stack_map_alloc() 133 smap->n_buckets = n_buckets; in stack_map_alloc() 378 id = hash & (smap->n_buckets - 1); in BPF_CALL_3() 518 if (unlikely(id >= smap->n_buckets)) in bpf_stackmap_copy() 548 if (id >= smap->n_buckets || !smap->buckets[id]) in stack_map_get_next_key() 554 while (id < smap->n_buckets && !smap->buckets[id]) in stack_map_get_next_key() [all …]
|
D | hashtab.c | 43 u32 n_buckets; /* number of hash buckets */ member 334 htab->n_buckets = roundup_pow_of_two(htab->map.max_entries); in htab_map_alloc() 345 if (htab->n_buckets == 0 || in htab_map_alloc() 346 htab->n_buckets > U32_MAX / sizeof(struct bucket)) in htab_map_alloc() 349 cost = (u64) htab->n_buckets * sizeof(struct bucket) + in htab_map_alloc() 370 htab->buckets = bpf_map_area_alloc(htab->n_buckets * in htab_map_alloc() 377 for (i = 0; i < htab->n_buckets; i++) { in htab_map_alloc() 415 return &htab->buckets[hash & (htab->n_buckets - 1)]; in __select_bucket() 443 u32 key_size, u32 n_buckets) in lookup_nulls_elem_raw() argument 453 if (unlikely(get_nulls_value(n) != (hash & (n_buckets - 1)))) in lookup_nulls_elem_raw() [all …]
|
D | sockmap.c | 73 u32 n_buckets; member 283 return &htab->buckets[hash & (htab->n_buckets - 1)]; in __select_bucket() 2202 htab->n_buckets = roundup_pow_of_two(htab->map.max_entries); in sock_hash_alloc() 2206 if (htab->n_buckets == 0 || in sock_hash_alloc() 2207 htab->n_buckets > U32_MAX / sizeof(struct bucket)) in sock_hash_alloc() 2210 cost = (u64) htab->n_buckets * sizeof(struct bucket) + in sock_hash_alloc() 2223 htab->n_buckets * sizeof(struct bucket), in sock_hash_alloc() 2228 for (i = 0; i < htab->n_buckets; i++) { in sock_hash_alloc() 2263 for (i = 0; i < htab->n_buckets; i++) { in sock_hash_free() 2354 i = hash & (htab->n_buckets - 1); in sock_hash_get_next_key() [all …]
|
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | pno.c | 401 int err, n_buckets; in brcmf_pno_config_sched_scans() local 404 n_buckets = brcmf_pno_prep_fwconfig(pi, &pno_cfg, &buckets, in brcmf_pno_config_sched_scans() 406 if (n_buckets < 0) in brcmf_pno_config_sched_scans() 407 return n_buckets; in brcmf_pno_config_sched_scans() 409 gsz = sizeof(*gscan_cfg) + (n_buckets - 1) * sizeof(*buckets); in brcmf_pno_config_sched_scans() 437 gscan_cfg->count_of_channel_buckets = n_buckets; in brcmf_pno_config_sched_scans() 439 n_buckets * sizeof(*buckets)); in brcmf_pno_config_sched_scans()
|