Lines Matching refs:buckets
35 sys_dlist_t *buckets = map->data->buckets; in sys_hashmap_sc_insert_entry() local
38 sys_dlist_append(&buckets[hash % map->data->n_buckets], &entry->node); in sys_hashmap_sc_insert_entry()
57 sys_dlist_t *buckets = map->data->buckets; in sys_hashmap_sc_to_list() local
62 bucket = &buckets[i]; in sys_hashmap_sc_to_list()
86 new_buckets = (sys_dlist_t *)map->alloc_func(map->data->buckets, in sys_hashmap_sc_rehash()
96 map->data->buckets = new_buckets; in sys_hashmap_sc_rehash()
99 bucket = &((sys_dlist_t *)(map->data->buckets))[i]; in sys_hashmap_sc_rehash()
113 sys_dlist_t *buckets; in sys_hashmap_sc_find() local
123 buckets = (sys_dlist_t *)map->data->buckets; in sys_hashmap_sc_find()
124 bucket = &buckets[hash % map->data->n_buckets]; in sys_hashmap_sc_find()
141 sys_dlist_t *buckets = map->data->buckets; in sys_hashmap_sc_iter_next() local
148 it->state = buckets; in sys_hashmap_sc_iter_next()
152 for (bucket = it->state; bucket < &buckets[map->data->n_buckets]; ++bucket) { in sys_hashmap_sc_iter_next()
184 it->state = map->data->buckets; in sys_hashmap_sc_iter()
199 if (map->data->buckets != NULL) { in sys_hashmap_sc_clear()
200 map->alloc_func(map->data->buckets, 0); in sys_hashmap_sc_clear()
201 map->data->buckets = NULL; in sys_hashmap_sc_clear()