Lines Matching refs:n_buckets
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
372 new_ti = table_instance_alloc(n_buckets); in table_instance_rehash()
583 return table_instance_rehash(ti, ti->n_buckets * 2, ufid); in table_instance_expand()
696 if (table->count > ti->n_buckets) in flow_key_insert()
699 new_ti = table_instance_rehash(ti, ti->n_buckets, false); in flow_key_insert()
719 if (table->ufid_count > ti->n_buckets) { in flow_ufid_insert()