Lines Matching refs:buckets
21 struct xorg_list *buckets; /* array of bucket list heads */ member
57 ht->buckets = xallocarray(numBuckets, sizeof(*ht->buckets)); in ht_create()
60 if (ht->buckets) { in ht_create()
62 xorg_list_init(&ht->buckets[c]); in ht_create()
78 xorg_list_for_each_entry_safe(it, tmp, &ht->buckets[c], l) { in ht_destroy()
85 free(ht->buckets); in ht_destroy()
98 newBuckets = xallocarray(newNumBuckets, sizeof(*ht->buckets)); in double_size()
106 xorg_list_for_each_entry_safe(it, tmp, &ht->buckets[c], l) { in double_size()
113 free(ht->buckets); in double_size()
115 ht->buckets = newBuckets; in double_size()
127 struct xorg_list *bucket = &ht->buckets[index]; in ht_add()
173 struct xorg_list *bucket = &ht->buckets[index]; in ht_remove()
192 struct xorg_list *bucket = &ht->buckets[index]; in ht_find()
213 xorg_list_for_each_entry(it, &ht->buckets[c], l) { in ht_dump_distribution()
287 xorg_list_for_each_entry(it, &ht->buckets[c], l) { in ht_dump_contents()