Lines Matching full:entry

40 	struct oalp_entry *entry = NULL;  in sys_hashmap_oa_lp_find()  local
49 entry = &buckets[j]; in sys_hashmap_oa_lp_find()
51 switch (entry->state) { in sys_hashmap_oa_lp_find()
53 if (used_ok && entry->key == key) { in sys_hashmap_oa_lp_find()
54 return entry; in sys_hashmap_oa_lp_find()
59 return entry; in sys_hashmap_oa_lp_find()
64 return entry; in sys_hashmap_oa_lp_find()
68 __ASSERT(false, "Invalid entry state. Memory has been corrupted"); in sys_hashmap_oa_lp_find()
80 struct oalp_entry *entry = NULL; in sys_hashmap_oa_lp_insert_no_rehash() local
83 entry = sys_hashmap_oa_lp_find(map, key, true, true, true); in sys_hashmap_oa_lp_insert_no_rehash()
84 __ASSERT_NO_MSG(entry != NULL); in sys_hashmap_oa_lp_insert_no_rehash()
86 switch (entry->state) { in sys_hashmap_oa_lp_insert_no_rehash()
103 *old_value = entry->value; in sys_hashmap_oa_lp_insert_no_rehash()
106 entry->state = USED; in sys_hashmap_oa_lp_insert_no_rehash()
107 entry->key = key; in sys_hashmap_oa_lp_insert_no_rehash()
108 entry->value = value; in sys_hashmap_oa_lp_insert_no_rehash()
118 struct oalp_entry *entry; in sys_hashmap_oa_lp_rehash() local
136 new_buckets = (struct oalp_entry *)map->alloc_func(NULL, new_n_buckets * sizeof(*entry)); in sys_hashmap_oa_lp_rehash()
152 entry = &old_buckets[i]; in sys_hashmap_oa_lp_rehash()
154 if (entry->state == USED) { in sys_hashmap_oa_lp_rehash()
155 sys_hashmap_oa_lp_insert_no_rehash(map, entry->key, entry->value, NULL); in sys_hashmap_oa_lp_rehash()
169 struct oalp_entry *entry; in sys_hashmap_oa_lp_iter_next() local
184 entry = &buckets[i]; in sys_hashmap_oa_lp_iter_next()
185 if (entry->state == USED) { in sys_hashmap_oa_lp_iter_next()
187 it->key = entry->key; in sys_hashmap_oa_lp_iter_next()
188 it->value = entry->value; in sys_hashmap_oa_lp_iter_next()
194 __ASSERT(false, "Entire Hashmap traversed and no entry was found"); in sys_hashmap_oa_lp_iter_next()
212 struct oalp_entry *entry; in sys_hashmap_oa_lp_clear() local
217 entry = &buckets[i]; in sys_hashmap_oa_lp_clear()
218 if (entry->state == USED) { in sys_hashmap_oa_lp_clear()
219 cb(entry->key, entry->value, cookie); in sys_hashmap_oa_lp_clear()
249 struct oalp_entry *entry; in sys_hashmap_oa_lp_remove() local
252 entry = sys_hashmap_oa_lp_find(map, key, true, true, false); in sys_hashmap_oa_lp_remove()
253 if (entry == NULL || entry->state == UNUSED) { in sys_hashmap_oa_lp_remove()
258 *value = entry->value; in sys_hashmap_oa_lp_remove()
261 entry->state = TOMBSTONE; in sys_hashmap_oa_lp_remove()
273 struct oalp_entry *entry; in sys_hashmap_oa_lp_get() local
275 entry = sys_hashmap_oa_lp_find(map, key, true, true, false); in sys_hashmap_oa_lp_get()
276 if (entry == NULL || entry->state == UNUSED) { in sys_hashmap_oa_lp_get()
281 *value = entry->value; in sys_hashmap_oa_lp_get()