Lines Matching refs:buckets
122 struct flex_array *buckets; in alloc_buckets() local
125 buckets = flex_array_alloc(sizeof(struct hlist_head), in alloc_buckets()
127 if (!buckets) in alloc_buckets()
130 err = flex_array_prealloc(buckets, 0, n_buckets, GFP_KERNEL); in alloc_buckets()
132 flex_array_free(buckets); in alloc_buckets()
138 flex_array_get(buckets, i)); in alloc_buckets()
140 return buckets; in alloc_buckets()
176 static void free_buckets(struct flex_array *buckets) in free_buckets() argument
178 flex_array_free(buckets); in free_buckets()
184 free_buckets(ti->buckets); in __table_instance_destroy()
195 ti->buckets = alloc_buckets(new_size); in table_instance_alloc()
197 if (!ti->buckets) { in table_instance_alloc()
257 struct hlist_head *head = flex_array_get(ti->buckets, i); in table_instance_destroy()
302 head = flex_array_get(ti->buckets, *bucket); in ovs_flow_tbl_dump_next()
321 return flex_array_get(ti->buckets, in find_bucket()
357 head = flex_array_get(old->buckets, i); in flow_table_copy_flows()