Lines Matching refs:n_buckets
32 BUILD_ASSERT(offsetof(struct sys_hashmap_oa_lp_data, n_buckets) ==
33 offsetof(struct sys_hashmap_data, n_buckets));
41 const size_t n_buckets = map->data->n_buckets; in sys_hashmap_oa_lp_find() local
45 for (size_t i = 0, j = hash; i < n_buckets; ++i, ++j) { in sys_hashmap_oa_lp_find()
46 j &= (n_buckets - 1); in sys_hashmap_oa_lp_find()
47 __ASSERT_NO_MSG(j < n_buckets); in sys_hashmap_oa_lp_find()
133 old_n_buckets = data->n_buckets; in sys_hashmap_oa_lp_rehash()
148 data->n_buckets = new_n_buckets; in sys_hashmap_oa_lp_rehash()
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()
216 for (size_t i = 0, j = 0; cb != NULL && i < data->n_buckets && j < data->size; ++i) { in sys_hashmap_oa_lp_clear()
229 data->n_buckets = 0; in sys_hashmap_oa_lp_clear()