Lines Matching refs:n_entries
86 CK_HT_TYPE n_entries; member
100 st->n_entries = map->n_entries; in ck_ht_stat()
143 uint32_t n_entries; in ck_ht_map_create() local
145 n_entries = ck_internal_power_2(entries); in ck_ht_map_create()
146 if (n_entries < CK_HT_BUCKET_LENGTH) in ck_ht_map_create()
147 n_entries = CK_HT_BUCKET_LENGTH; in ck_ht_map_create()
150 (sizeof(struct ck_ht_entry) * n_entries + CK_MD_CACHELINE - 1); in ck_ht_map_create()
153 prefix = sizeof(CK_HT_WORD) * n_entries; in ck_ht_map_create()
165 map->probe_limit = ck_internal_max_64(n_entries >> in ck_ht_map_create()
170 map->capacity = n_entries; in ck_ht_map_create()
173 map->n_entries = 0; in ck_ht_map_create()
184 memset(map->entries, 0, sizeof(struct ck_ht_entry) * n_entries); in ck_ht_map_create()
390 if (map->n_entries == 0) { in ck_ht_gc()
605 return CK_HT_TYPE_LOAD(&map->n_entries); in ck_ht_count()
714 update->n_entries++; in ck_ht_grow_spmc()
771 CK_HT_TYPE_STORE(&map->n_entries, map->n_entries - 1); in ck_ht_remove_spmc()
937 CK_HT_TYPE_STORE(&map->n_entries, map->n_entries + 1); in ck_ht_set_spmc()
943 if (map->n_entries * 2 > map->capacity) in ck_ht_set_spmc()
1018 CK_HT_TYPE_STORE(&map->n_entries, map->n_entries + 1); in ck_ht_put_spmc()
1021 if (map->n_entries * 2 > map->capacity) in ck_ht_put_spmc()