Searched refs:num_buckets (Results 1 – 9 of 9) sorted by relevance
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | bcache.c | 70 unsigned int num_buckets; member 145 new_num_buckets = bcache->num_buckets * 2; in expand_hash_table() 147 if (sizes[i] > bcache->num_buckets) in expand_hash_table() 159 bcache->structure_size -= (bcache->num_buckets in expand_hash_table() 165 for (i = 0; i < bcache->num_buckets; i++) in expand_hash_table() 185 bcache->num_buckets = new_num_buckets; in expand_hash_table() 215 hash_index = full_hash % bcache->num_buckets; in bcache_data() 333 for (b = 0; b < c->num_buckets; b++) in print_bcache_statistics() 345 gdb_assert (b < c->num_buckets); in print_bcache_statistics() 360 if (c->num_buckets > 0) in print_bcache_statistics() [all …]
|
| /freebsd-12.1/sys/contrib/octeon-sdk/ |
| H A D | cvmx-tim.c | 155 cvmx_tim.num_buckets = temp + 1; in cvmx_tim_setup() 158 if ((cvmx_tim.num_buckets < 3) || cvmx_tim.num_buckets > 1048576) in cvmx_tim_setup() 165 cvmx_tim.bucket = cvmx_bootmem_alloc(CVMX_TIM_NUM_TIMERS * cvmx_tim.num_buckets in cvmx_tim_setup() 172 …memset(cvmx_tim.bucket, 0, CVMX_TIM_NUM_TIMERS * cvmx_tim.num_buckets * sizeof(cvmx_tim_bucket_ent… in cvmx_tim_setup() 180 cvmx_tim_bucket_entry_t *bucket = cvmx_tim.bucket + timer_id * cvmx_tim.num_buckets; in cvmx_tim_setup() 197 ring_ctl1.s.bsize = cvmx_tim.num_buckets - 1; in cvmx_tim_setup() 217 config_ring0.s.num_buckets = cvmx_tim.num_buckets - 1; in cvmx_tim_setup() 285 for (bucket=0; bucket<cvmx_tim.num_buckets; bucket++) in cvmx_tim_shutdown() 289 … cvmx_tim_bucket_entry_t *bucket_ptr = cvmx_tim.bucket + timer_id * cvmx_tim.num_buckets + bucket; in cvmx_tim_shutdown()
|
| H A D | cvmx-tim.h | 124 uint32_t num_buckets; /**< How many buckets per wheel */ member 235 …bucket_ptr = cvmx_tim.bucket + core_num * cvmx_tim.num_buckets + (work_bucket & (cvmx_tim.num_buck… in cvmx_tim_add_entry()
|
| H A D | cvmx-tim-defs.h | 853 uint64_t num_buckets : 20; /**< Number of buckets - 1 */ member 857 uint64_t num_buckets : 20;
|
| /freebsd-12.1/contrib/libucl/uthash/ |
| H A D | uthash.h | 100 HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \ 149 (head)->hh.tbl->num_buckets = HASH_INITIAL_NUM_BUCKETS; \ 191 HASH_FCN(keyptr,keylen_in, (head)->hh.tbl->num_buckets, \ 222 (head)->hh.tbl->num_buckets*sizeof(struct UT_hash_bucket) ); \ 244 HASH_TO_BKT( _hd_hh_del->hashv, (head)->hh.tbl->num_buckets, _hd_bkt); \ 287 for( _bkt_i = 0; _bkt_i < (head)->hh.tbl->num_buckets; _bkt_i++) { \ 445 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \ 448 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \ 451 ((tbl->num_items & ((tbl->num_buckets*2)-1)) ? 1 : 0); \ 453 for(_he_bkt_i = 0; _he_bkt_i < tbl->num_buckets; _he_bkt_i++) \ [all …]
|
| /freebsd-12.1/contrib/elftoolchain/common/ |
| H A D | uthash.h | 101 HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \ 149 (head)->hh.tbl->num_buckets = HASH_INITIAL_NUM_BUCKETS; \ 181 HASH_FCN(keyptr,keylen_in, (head)->hh.tbl->num_buckets, \ 212 (head)->hh.tbl->num_buckets*sizeof(struct UT_hash_bucket) ); \ 234 HASH_TO_BKT( _hd_hh_del->hashv, (head)->hh.tbl->num_buckets, _hd_bkt); \ 271 for( _bkt_i = 0; _bkt_i < (head)->hh.tbl->num_buckets; _bkt_i++) { \ 658 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \ 661 2 * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \ 664 ((tbl->num_items & ((tbl->num_buckets*2)-1)) ? 1 : 0); \ 666 for(_he_bkt_i = 0; _he_bkt_i < tbl->num_buckets; _he_bkt_i++) \ [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCRuntimeV1.h | 128 bool NeedsUpdate(uint32_t count, uint32_t num_buckets, in NeedsUpdate() argument 130 return m_count != count || m_num_buckets != num_buckets || in NeedsUpdate() 134 void UpdateSignature(uint32_t count, uint32_t num_buckets, in UpdateSignature() argument 137 m_num_buckets = num_buckets; in UpdateSignature()
|
| H A D | AppleObjCRuntimeV1.cpp | 366 const uint32_t num_buckets = data.GetU32(&offset); in UpdateISAToDescriptorMapIfNeeded() local 368 if (m_hash_signature.NeedsUpdate(count, num_buckets, buckets_ptr)) { in UpdateISAToDescriptorMapIfNeeded() 369 m_hash_signature.UpdateSignature(count, num_buckets, buckets_ptr); in UpdateISAToDescriptorMapIfNeeded() 371 const uint32_t data_size = num_buckets * 2 * sizeof(uint32_t); in UpdateISAToDescriptorMapIfNeeded() 378 for (uint32_t bucket_idx = 0; bucket_idx < num_buckets; in UpdateISAToDescriptorMapIfNeeded()
|
| /freebsd-12.1/contrib/bearssl/test/ |
| H A D | test_x509.c | 202 size_t num_buckets; member 213 ht->num_buckets = 8; in HT_new() 214 ht->buckets = xmalloc(ht->num_buckets * sizeof(ht_elt *)); in HT_new() 215 for (u = 0; u < ht->num_buckets; u ++) { in HT_new() 270 n = ht->num_buckets; in HT_expand() 293 ht->num_buckets = n2; in HT_expand() 304 k = (size_t)(hc & ((uint32_t)ht->num_buckets - 1)); in HT_put() 332 if (ht->size > ht->num_buckets) { in HT_put() 355 k = (size_t)(hc & ((uint32_t)ht->num_buckets - 1)); in HT_get() 369 for (u = 0; u < ht->num_buckets; u ++) { in HT_clear()
|