Lines Matching refs:hash_key
119 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_has_key() local
120 list_t *hash_bucket_list = hash_map->bucket[hash_key].list; in hash_map_has_key()
131 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_set() local
133 if (hash_map->bucket[hash_key].list == NULL) { in hash_map_set()
134 hash_map->bucket[hash_key].list = list_new_internal(bucket_free_); in hash_map_set()
135 if (hash_map->bucket[hash_key].list == NULL) { in hash_map_set()
139 list_t *hash_bucket_list = hash_map->bucket[hash_key].list; in hash_map_set()
167 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_erase() local
168 list_t *hash_bucket_list = hash_map->bucket[hash_key].list; in hash_map_erase()
177 if(list_is_empty(hash_map->bucket[hash_key].list)) { in hash_map_erase()
178 list_free(hash_map->bucket[hash_key].list); in hash_map_erase()
179 hash_map->bucket[hash_key].list = NULL; in hash_map_erase()
189 hash_index_t hash_key = hash_map->hash_fn(key) % hash_map->num_bucket; in hash_map_get() local
190 list_t *hash_bucket_list = hash_map->bucket[hash_key].list; in hash_map_get()