Lines Matching refs:it
75 BucketPtr it, tmp; in ht_destroy() local
78 xorg_list_for_each_entry_safe(it, tmp, &ht->buckets[c], l) { in ht_destroy()
79 xorg_list_del(&it->l); in ht_destroy()
80 free(it->key); in ht_destroy()
81 free(it->data); in ht_destroy()
82 free(it); in ht_destroy()
105 BucketPtr it, tmp; in double_size() local
106 xorg_list_for_each_entry_safe(it, tmp, &ht->buckets[c], l) { in double_size()
108 &newBuckets[ht->hash(ht->cdata, it->key, newBucketBits)]; in double_size()
109 xorg_list_del(&it->l); in double_size()
110 xorg_list_add(&it->l, newBucket); in double_size()
174 BucketPtr it; in ht_remove() local
176 xorg_list_for_each_entry(it, bucket, l) { in ht_remove()
177 if (ht->compare(ht->cdata, key, it->key) == 0) { in ht_remove()
178 xorg_list_del(&it->l); in ht_remove()
180 free(it->key); in ht_remove()
181 free(it->data); in ht_remove()
182 free(it); in ht_remove()
193 BucketPtr it; in ht_find() local
195 xorg_list_for_each_entry(it, bucket, l) { in ht_find()
196 if (ht->compare(ht->cdata, key, it->key) == 0) { in ht_find()
197 return it->data ? it->data : ((char*) it->key + ht->keySize); in ht_find()
210 BucketPtr it; in ht_dump_distribution() local
213 xorg_list_for_each_entry(it, &ht->buckets[c], l) { in ht_dump_distribution()
283 BucketPtr it; in ht_dump_contents() local
287 xorg_list_for_each_entry(it, &ht->buckets[c], l) { in ht_dump_contents()
291 print_key(opaque, it->key); in ht_dump_contents()
293 print_value(opaque, it->data); in ht_dump_contents()