Lines Matching refs:buckets
121 struct flex_array *buckets; in alloc_buckets() local
124 buckets = flex_array_alloc(sizeof(struct hlist_head), in alloc_buckets()
126 if (!buckets) in alloc_buckets()
129 err = flex_array_prealloc(buckets, 0, n_buckets, GFP_KERNEL); in alloc_buckets()
131 flex_array_free(buckets); in alloc_buckets()
137 flex_array_get(buckets, i)); in alloc_buckets()
139 return buckets; in alloc_buckets()
174 static void free_buckets(struct flex_array *buckets) in free_buckets() argument
176 flex_array_free(buckets); in free_buckets()
182 free_buckets(ti->buckets); in __table_instance_destroy()
193 ti->buckets = alloc_buckets(new_size); in table_instance_alloc()
195 if (!ti->buckets) { in table_instance_alloc()
255 struct hlist_head *head = flex_array_get(ti->buckets, i); in table_instance_destroy()
300 head = flex_array_get(ti->buckets, *bucket); in ovs_flow_tbl_dump_next()
319 return flex_array_get(ti->buckets, in find_bucket()
355 head = flex_array_get(old->buckets, i); in flow_table_copy_flows()