Lines Matching refs:buckets
116 struct flex_array *buckets; in alloc_buckets() local
119 buckets = flex_array_alloc(sizeof(struct hlist_head), in alloc_buckets()
121 if (!buckets) in alloc_buckets()
124 err = flex_array_prealloc(buckets, 0, n_buckets, GFP_KERNEL); in alloc_buckets()
126 flex_array_free(buckets); in alloc_buckets()
132 flex_array_get(buckets, i)); in alloc_buckets()
134 return buckets; in alloc_buckets()
171 static void free_buckets(struct flex_array *buckets) in free_buckets() argument
173 flex_array_free(buckets); in free_buckets()
179 free_buckets(ti->buckets); in __table_instance_destroy()
190 ti->buckets = alloc_buckets(new_size); in table_instance_alloc()
192 if (!ti->buckets) { in table_instance_alloc()
252 struct hlist_head *head = flex_array_get(ti->buckets, i); in table_instance_destroy()
297 head = flex_array_get(ti->buckets, *bucket); in ovs_flow_tbl_dump_next()
316 return flex_array_get(ti->buckets, in find_bucket()
352 head = flex_array_get(old->buckets, i); in flow_table_copy_flows()