Lines Matching refs:n_buckets
119 static struct flex_array *alloc_buckets(unsigned int n_buckets) in alloc_buckets() argument
125 n_buckets, GFP_KERNEL); in alloc_buckets()
129 err = flex_array_prealloc(buckets, 0, n_buckets, GFP_KERNEL); in alloc_buckets()
135 for (i = 0; i < n_buckets; i++) in alloc_buckets()
199 ti->n_buckets = new_size; in table_instance_alloc()
253 for (i = 0; i < ti->n_buckets; i++) { in table_instance_destroy()
298 while (*bucket < ti->n_buckets) { in ovs_flow_tbl_dump_next()
320 (hash & (ti->n_buckets - 1))); in find_bucket()
351 for (i = 0; i < old->n_buckets; i++) { in flow_table_copy_flows()
371 int n_buckets, bool ufid) in table_instance_rehash() argument
375 new_ti = table_instance_alloc(n_buckets); in table_instance_rehash()
586 return table_instance_rehash(ti, ti->n_buckets * 2, ufid); in table_instance_expand()
699 if (table->count > ti->n_buckets) in flow_key_insert()
702 new_ti = table_instance_rehash(ti, ti->n_buckets, false); in flow_key_insert()
722 if (table->ufid_count > ti->n_buckets) { in flow_ufid_insert()