Lines Matching refs:LHASH_ITEM

82   LHASH_ITEM **buckets;
103 ret->buckets = OPENSSL_malloc(sizeof(LHASH_ITEM *) * ret->num_buckets); in lh_new()
108 OPENSSL_memset(ret->buckets, 0, sizeof(LHASH_ITEM *) * ret->num_buckets); in lh_new()
121 LHASH_ITEM *next; in lh_free()
122 for (LHASH_ITEM *n = lh->buckets[i]; n != NULL; n = next) { in lh_free()
141 static LHASH_ITEM **get_next_ptr_and_hash(const _LHASH *lh, uint32_t *out_hash, in get_next_ptr_and_hash()
150 LHASH_ITEM **ret = &lh->buckets[hash % lh->num_buckets]; in get_next_ptr_and_hash()
151 for (LHASH_ITEM *cur = *ret; cur != NULL; cur = *ret) { in get_next_ptr_and_hash()
163 static LHASH_ITEM **get_next_ptr_by_key(const _LHASH *lh, const void *key, in get_next_ptr_by_key()
167 LHASH_ITEM **ret = &lh->buckets[key_hash % lh->num_buckets]; in get_next_ptr_by_key()
168 for (LHASH_ITEM *cur = *ret; cur != NULL; cur = *ret) { in get_next_ptr_by_key()
181 LHASH_ITEM **next_ptr = in lh_retrieve()
188 LHASH_ITEM **next_ptr = get_next_ptr_by_key(lh, key, key_hash, cmp_key); in lh_retrieve_key()
196 LHASH_ITEM **new_buckets, *cur, *next; in lh_rebucket()
199 alloc_size = sizeof(LHASH_ITEM *) * new_num_buckets; in lh_rebucket()
200 if (alloc_size / sizeof(LHASH_ITEM*) != new_num_buckets) { in lh_rebucket()
259 LHASH_ITEM **next_ptr, *item; in lh_insert()
275 item = OPENSSL_malloc(sizeof(LHASH_ITEM)); in lh_insert()
293 LHASH_ITEM **next_ptr, *item, *ret; in lh_delete()
325 LHASH_ITEM *next; in lh_doall_arg()
326 for (LHASH_ITEM *cur = lh->buckets[i]; cur != NULL; cur = next) { in lh_doall_arg()