Lines Matching refs:item
151 struct keymap_item *item; in hash_table_find_iter() local
155 item = (struct keymap_item *) cso_hash_iter_data(iter); in hash_table_find_iter()
156 if (!memcmp(item->key, key, map->key_size)) in hash_table_find_iter()
192 struct keymap_item *item; in util_keymap_insert() local
201 item = hash_table_find_item(map, key, key_hash); in util_keymap_insert()
202 if (item) { in util_keymap_insert()
204 map->delete_func(map, item->key, item->value, user); in util_keymap_insert()
205 item->value = (void *) data; in util_keymap_insert()
209 item = MALLOC_STRUCT(keymap_item); in util_keymap_insert()
210 if (!item) in util_keymap_insert()
213 item->key = mem_dup(key, map->key_size); in util_keymap_insert()
214 item->value = (void *) data; in util_keymap_insert()
216 iter = cso_hash_insert(map->cso, key_hash, item); in util_keymap_insert()
218 FREE(item); in util_keymap_insert()
235 struct keymap_item *item; in util_keymap_lookup() local
243 item = hash_table_find_item(map, key, key_hash); in util_keymap_lookup()
244 if (!item) in util_keymap_lookup()
247 return item->value; in util_keymap_lookup()
261 struct keymap_item *item; in util_keymap_remove() local
273 item = hash_table_item(iter); in util_keymap_remove()
274 assert(item); in util_keymap_remove()
275 if (!item) in util_keymap_remove()
277 map->delete_func(map, item->key, item->value, user); in util_keymap_remove()
278 FREE(item->key); in util_keymap_remove()
279 FREE(item); in util_keymap_remove()
295 struct keymap_item *item; in util_keymap_remove_all() local
303 item = (struct keymap_item *) in util_keymap_remove_all()
305 map->delete_func(map, item->key, item->value, user); in util_keymap_remove_all()
306 FREE(item->key); in util_keymap_remove_all()
307 FREE(item); in util_keymap_remove_all()