Lines Matching defs:h
54 #define BY_HASH(h) ((struct hashmap_entry**) ((uint8_t*) (h) + PA_ALIGN(sizeof(pa_hashmap)))) argument
59 pa_hashmap *h; in pa_hashmap_new_full() local
79 static void remove_entry(pa_hashmap *h, struct hashmap_entry *e) { in remove_entry()
102 BY_HASH(h)[hash] = e->bucket_next; in remove_entry() local
115 void pa_hashmap_free(pa_hashmap *h) { in pa_hashmap_free()
122 static struct hashmap_entry *hash_scan(const pa_hashmap *h, unsigned hash, const void *key) { in hash_scan()
134 int pa_hashmap_put(pa_hashmap *h, void *key, void *value) { in pa_hashmap_put()
154 if (BY_HASH(h)[hash]) in pa_hashmap_put() local
155 BY_HASH(h)[hash]->bucket_previous = e; in pa_hashmap_put() local
156 BY_HASH(h)[hash] = e; in pa_hashmap_put() local
176 void* pa_hashmap_get(const pa_hashmap *h, const void *key) { in pa_hashmap_get()
190 void* pa_hashmap_remove(pa_hashmap *h, const void *key) { in pa_hashmap_remove()
208 int pa_hashmap_remove_and_free(pa_hashmap *h, const void *key) { in pa_hashmap_remove_and_free()
221 void pa_hashmap_remove_all(pa_hashmap *h) { in pa_hashmap_remove_all()
234 void *pa_hashmap_iterate(const pa_hashmap *h, void **state, const void **key) { in pa_hashmap_iterate()
267 void *pa_hashmap_iterate_backwards(const pa_hashmap *h, void **state, const void **key) { in pa_hashmap_iterate_backwards()
300 void* pa_hashmap_first(const pa_hashmap *h) { in pa_hashmap_first()
309 void* pa_hashmap_last(const pa_hashmap *h) { in pa_hashmap_last()
318 void* pa_hashmap_steal_first(pa_hashmap *h) { in pa_hashmap_steal_first()
332 unsigned pa_hashmap_size(const pa_hashmap *h) { in pa_hashmap_size()
338 bool pa_hashmap_isempty(const pa_hashmap *h) { in pa_hashmap_isempty()