Lines Matching refs:iter

66 util_hash_table_item(struct util_hash_iter iter)  in util_hash_table_item()  argument
68 return (struct util_hash_table_item *)util_hash_iter_data(iter); in util_hash_table_item()
97 struct util_hash_iter iter; in util_hash_table_find_iter() local
100 iter = util_hash_find(ht->head, key_hash); in util_hash_table_find_iter()
101 while (!util_hash_iter_is_null(iter)) { in util_hash_table_find_iter()
102 item = (struct util_hash_table_item *)util_hash_iter_data(iter); in util_hash_table_find_iter()
105 iter = util_hash_iter_next(iter); in util_hash_table_find_iter()
108 return iter; in util_hash_table_find_iter()
115 struct util_hash_iter iter; in util_hash_table_find_item() local
118 iter = util_hash_find(ht->head, key_hash); in util_hash_table_find_item()
119 while (!util_hash_iter_is_null(iter)) { in util_hash_table_find_item()
120 item = (struct util_hash_table_item *)util_hash_iter_data(iter); in util_hash_table_find_item()
123 iter = util_hash_iter_next(iter); in util_hash_table_find_item()
134 struct util_hash_iter iter; in util_hash_table_set() local
156 iter = util_hash_insert(ht->head, key_hash, item); in util_hash_table_set()
157 if(util_hash_iter_is_null(iter)) { in util_hash_table_set()
184 struct util_hash_iter iter; in util_hash_table_remove() local
193 iter = util_hash_table_find_iter(ht, key, key_hash); in util_hash_table_remove()
194 if(util_hash_iter_is_null(iter)) in util_hash_table_remove()
197 item = util_hash_table_item(iter); in util_hash_table_remove()
201 util_hash_erase(ht->head, iter); in util_hash_table_remove()
206 struct util_hash_iter iter; in util_hash_table_clear() local
213 iter = util_hash_first_node(ht->head); in util_hash_table_clear()
214 while (!util_hash_iter_is_null(iter)) { in util_hash_table_clear()
215 item = (struct util_hash_table_item *)util_hash_take(ht->head, util_hash_iter_key(iter)); in util_hash_table_clear()
217 iter = util_hash_first_node(ht->head); in util_hash_table_clear()
225 struct util_hash_iter iter; in util_hash_table_foreach() local
232 iter = util_hash_first_node(ht->head); in util_hash_table_foreach()
233 while (!util_hash_iter_is_null(iter)) { in util_hash_table_foreach()
234 item = (struct util_hash_table_item *)util_hash_iter_data(iter); in util_hash_table_foreach()
236 iter = util_hash_iter_next(iter); in util_hash_table_foreach()
242 struct util_hash_iter iter; in util_hash_table_destroy() local
249 iter = util_hash_first_node(ht->head); in util_hash_table_destroy()
250 while (!util_hash_iter_is_null(iter)) { in util_hash_table_destroy()
251 item = (struct util_hash_table_item *)util_hash_iter_data(iter); in util_hash_table_destroy()
253 iter = util_hash_iter_next(iter); in util_hash_table_destroy()