Home
last modified time | relevance | path

Searched refs:sys_hashmap (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.5.0/include/zephyr/sys/
Dhash_map.h50 struct sys_hashmap _name = { \
78 static struct sys_hashmap _name = { \
124 struct sys_hashmap { struct
144 static inline void sys_hashmap_foreach(const struct sys_hashmap *map, sys_hashmap_callback_t cb, in sys_hashmap_foreach()
164 static inline void sys_hashmap_clear(struct sys_hashmap *map, sys_hashmap_callback_t cb, in sys_hashmap_clear()
185 static inline int sys_hashmap_insert(struct sys_hashmap *map, uint64_t key, uint64_t value, in sys_hashmap_insert()
203 static inline bool sys_hashmap_remove(struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_remove()
220 static inline bool sys_hashmap_get(const struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_get()
234 static inline bool sys_hashmap_contains_key(const struct sys_hashmap *map, uint64_t key) in sys_hashmap_contains_key()
246 static inline size_t sys_hashmap_size(const struct sys_hashmap *map) in sys_hashmap_size()
[all …]
Dhash_map_api.h46 const struct sys_hashmap *map;
94 typedef void (*sys_hashmap_iterator_t)(const struct sys_hashmap *map,
117 typedef void (*sys_hashmap_clear_t)(struct sys_hashmap *map, sys_hashmap_callback_t cb,
134 typedef int (*sys_hashmap_insert_t)(struct sys_hashmap *map, uint64_t key, uint64_t value,
149 typedef bool (*sys_hashmap_remove_t)(struct sys_hashmap *map, uint64_t key, uint64_t *value);
163 typedef bool (*sys_hashmap_get_t)(const struct sys_hashmap *map, uint64_t key, uint64_t *value);
/Zephyr-Core-3.5.0/tests/lib/hash_map/src/
D_main.h15 extern struct sys_hashmap map;
16 extern struct sys_hashmap custom_load_factor_map;
Dload_factor.c38 struct sys_hashmap *const hmap = &custom_load_factor_map; in ZTEST()
/Zephyr-Core-3.5.0/lib/hash/
Dhash_map_sc.c33 static void sys_hashmap_sc_insert_entry(struct sys_hashmap *map, struct sys_hashmap_sc_entry *entry) in sys_hashmap_sc_insert_entry()
42 static void sys_hashmap_sc_insert_all(struct sys_hashmap *map, sys_dlist_t *list) in sys_hashmap_sc_insert_all()
53 static void sys_hashmap_sc_to_list(struct sys_hashmap *map, sys_dlist_t *list) in sys_hashmap_sc_to_list()
71 static int sys_hashmap_sc_rehash(struct sys_hashmap *map, bool grow) in sys_hashmap_sc_rehash()
109 static struct sys_hashmap_sc_entry *sys_hashmap_sc_find(const struct sys_hashmap *map, uint64_t key) in sys_hashmap_sc_find()
140 const struct sys_hashmap *map = it->map; in sys_hashmap_sc_iter_next()
180 static void sys_hashmap_sc_iter(const struct sys_hashmap *map, struct sys_hashmap_iterator *it) in sys_hashmap_sc_iter()
191 static void sys_hashmap_sc_clear(struct sys_hashmap *map, sys_hashmap_callback_t cb, void *cookie) in sys_hashmap_sc_clear()
220 static int sys_hashmap_sc_insert(struct sys_hashmap *map, uint64_t key, uint64_t value, in sys_hashmap_sc_insert()
253 static bool sys_hashmap_sc_remove(struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_sc_remove()
[all …]
Dhash_map_oa_lp.c37 static struct oalp_entry *sys_hashmap_oa_lp_find(const struct sys_hashmap *map, uint64_t key, in sys_hashmap_oa_lp_find()
76 static int sys_hashmap_oa_lp_insert_no_rehash(struct sys_hashmap *map, uint64_t key, uint64_t value, in sys_hashmap_oa_lp_insert_no_rehash()
113 static int sys_hashmap_oa_lp_rehash(struct sys_hashmap *map, bool grow) in sys_hashmap_oa_lp_rehash()
170 const struct sys_hashmap *map = (const struct sys_hashmap *)it->map; in sys_hashmap_oa_lp_iter_next()
201 static void sys_hashmap_oa_lp_iter(const struct sys_hashmap *map, struct sys_hashmap_iterator *it) in sys_hashmap_oa_lp_iter()
209 static void sys_hashmap_oa_lp_clear(struct sys_hashmap *map, sys_hashmap_callback_t cb, in sys_hashmap_oa_lp_clear()
234 static inline int sys_hashmap_oa_lp_insert(struct sys_hashmap *map, uint64_t key, uint64_t value, in sys_hashmap_oa_lp_insert()
247 static bool sys_hashmap_oa_lp_remove(struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_oa_lp_remove()
271 static bool sys_hashmap_oa_lp_get(const struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_oa_lp_get()
Dhash_map_cxx.cpp37 static void sys_hashmap_cxx_iter(const struct sys_hashmap *map, struct sys_hashmap_iterator *it) in sys_hashmap_cxx_iter()
48 static void sys_hashmap_cxx_clear(struct sys_hashmap *map, sys_hashmap_callback_t cb, void *cookie) in sys_hashmap_cxx_clear()
69 static int sys_hashmap_cxx_insert(struct sys_hashmap *map, uint64_t key, uint64_t value, in sys_hashmap_cxx_insert()
99 static bool sys_hashmap_cxx_remove(struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_cxx_remove()
129 static bool sys_hashmap_cxx_get(const struct sys_hashmap *map, uint64_t key, uint64_t *value) in sys_hashmap_cxx_get()