Lines Matching refs:data
41 const size_t n_buckets = map->data->n_buckets; in sys_hashmap_oa_lp_find()
43 struct oalp_entry *const buckets = map->data->buckets; in sys_hashmap_oa_lp_find()
81 struct sys_hashmap_oa_lp_data *data = (struct sys_hashmap_oa_lp_data *)map->data; in sys_hashmap_oa_lp_insert_no_rehash() local
88 ++data->size; in sys_hashmap_oa_lp_insert_no_rehash()
92 --data->n_tombstones; in sys_hashmap_oa_lp_insert_no_rehash()
93 ++data->size; in sys_hashmap_oa_lp_insert_no_rehash()
121 struct sys_hashmap_oa_lp_data *data = (struct sys_hashmap_oa_lp_data *)map->data; in sys_hashmap_oa_lp_rehash() local
123 if (!sys_hashmap_should_rehash(map, grow, data->n_tombstones, &new_n_buckets)) { in sys_hashmap_oa_lp_rehash()
127 if (map->data->size != SIZE_MAX && map->data->size == map->config->max_size) { in sys_hashmap_oa_lp_rehash()
132 old_size = data->size; in sys_hashmap_oa_lp_rehash()
133 old_n_buckets = data->n_buckets; in sys_hashmap_oa_lp_rehash()
134 old_buckets = (struct oalp_entry *)data->buckets; in sys_hashmap_oa_lp_rehash()
146 data->size = 0; in sys_hashmap_oa_lp_rehash()
147 data->buckets = new_buckets; in sys_hashmap_oa_lp_rehash()
148 data->n_buckets = new_n_buckets; in sys_hashmap_oa_lp_rehash()
171 struct oalp_entry *buckets = map->data->buckets; in sys_hashmap_oa_lp_iter_next()
173 __ASSERT(it->size == map->data->size, "Concurrent modification!"); in sys_hashmap_oa_lp_iter_next()
181 __ASSERT(i < map->data->n_buckets, "Invalid iterator state %p", it->state); in sys_hashmap_oa_lp_iter_next()
183 for (; i < map->data->n_buckets; ++i) { in sys_hashmap_oa_lp_iter_next()
206 *((size_t *)&it->size) = map->data->size; in sys_hashmap_oa_lp_iter()
213 struct sys_hashmap_oa_lp_data *data = (struct sys_hashmap_oa_lp_data *)map->data; in sys_hashmap_oa_lp_clear() local
214 struct oalp_entry *buckets = data->buckets; in sys_hashmap_oa_lp_clear()
216 for (size_t i = 0, j = 0; cb != NULL && i < data->n_buckets && j < data->size; ++i) { in sys_hashmap_oa_lp_clear()
224 if (data->buckets != NULL) { in sys_hashmap_oa_lp_clear()
225 map->alloc_func(data->buckets, 0); in sys_hashmap_oa_lp_clear()
226 data->buckets = NULL; in sys_hashmap_oa_lp_clear()
229 data->n_buckets = 0; in sys_hashmap_oa_lp_clear()
230 data->size = 0; in sys_hashmap_oa_lp_clear()
231 data->n_tombstones = 0; in sys_hashmap_oa_lp_clear()
250 struct sys_hashmap_oa_lp_data *data = (struct sys_hashmap_oa_lp_data *)map->data; in sys_hashmap_oa_lp_remove() local
262 --data->size; in sys_hashmap_oa_lp_remove()
263 ++data->n_tombstones; in sys_hashmap_oa_lp_remove()