/illumos-gate/usr/src/lib/libpool/common/ |
H A D | dict.c | 294 dict_bucket_t *bucket; in dict_get() local 297 for (bucket = hdl->dh_buckets[i]; bucket != NULL; in dict_get() 298 bucket = bucket->db_next) in dict_get() 301 return (bucket ? bucket->db_value : NULL); in dict_get() 316 for (bucket = hdl->dh_buckets[i]; bucket != NULL; in dict_put() 317 bucket = bucket->db_next) in dict_put() 320 if (bucket) { in dict_put() 354 free(bucket); in dict_remove() 377 for (bucket = hdl->dh_buckets[i]; bucket != NULL; in dict_map() 378 bucket = bucket->db_next) { in dict_map() [all …]
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | hash.c | 251 hash->bucket = NULL; in _new_HashTable() 259 if(!hash->bucket) { in _new_HashTable() 291 if(hash->bucket) { in _del_HashTable() 293 free(hash->bucket); in _del_HashTable() 379 bucket->head = node; in _new_HashSymbol() 380 bucket->count++; in _new_HashSymbol() 414 bucket->count--; in _del_HashSymbol() 685 HashBucket *bucket = hash->bucket + i; in _clear_HashTable() local 698 bucket->head = NULL; in _clear_HashTable() 699 bucket->count = 0; in _clear_HashTable() [all …]
|
/illumos-gate/usr/src/lib/libbsdmalloc/common/ |
H A D | malloc.bsd43.c | 99 int bucket; in malloc() local 128 bucket = 0; in malloc() 132 bucket++; in malloc() 134 pagebucket = bucket; in malloc() 143 bucket = 0; in malloc() 147 bucket = pagebucket; in malloc() 153 bucket++; in malloc() 160 morecore(bucket); in malloc() 175 morecore(int bucket) in morecore() argument 182 sz = 1UL << (bucket + EXP); in morecore() [all …]
|
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/ |
H A D | LogLinearDistribution.java | 126 int order, bucket = 0; in fillRangeCache() local 141 rangeCache[bucket][0] = Long.MIN_VALUE; in fillRangeCache() 142 rangeCache[bucket][1] = value - 1; in fillRangeCache() 143 bucket++; in fillRangeCache() 149 rangeCache[bucket][0] = value; in fillRangeCache() 150 rangeCache[bucket][1] = value + step - 1; in fillRangeCache() 151 bucket++; in fillRangeCache() 161 rangeCache[bucket][0] = value; in fillRangeCache() 162 rangeCache[bucket][1] = Long.MAX_VALUE; in fillRangeCache() 186 for (Distribution.Bucket bucket : buckets) in getValue() [all …]
|
H A D | Distribution.java | 114 Bucket bucket; in initialize() local 117 bucket = buckets.get(i); in initialize() 118 frequency = bucket.getFrequency(); in initialize() 121 checkBucketRange(i, len, bucket); in initialize() 164 Bucket bucket; in createBuckets() local 174 bucket = new Distribution.Bucket(min, max, frequencies[i]); in createBuckets() 175 buckets.add(bucket); in createBuckets() 196 checkBucketRange(i, bucket, range); in checkBucketRange() 203 checkBucketRange(i, bucket, range); in checkBucketRange() 212 if (bucket.getMin() != min) { in checkBucketRange() [all …]
|
H A D | LinearDistribution.java | 192 Distribution.Bucket bucket; in getValue() local 195 bucket = buckets.get(0); in getValue() 196 total = (double)bucket.getFrequency() * (double)(getBase() - 1); in getValue() 199 bucket = buckets.get(i); in getValue() 200 total += (double)bucket.getFrequency() * (double)bucket.getMin(); in getValue() 203 bucket = buckets.get(len - 1); in getValue() 207 total += (double)bucket.getFrequency() * in getValue() 208 (double)(bucket.getMin() + 1); in getValue()
|
/illumos-gate/usr/src/uts/common/dtrace/ |
H A D | fasttrap.c | 277 fasttrap_bucket_t *bucket; in fasttrap_pid_cleanup_cb() local 504 fasttrap_bucket_t *bucket; in fasttrap_tracepoint_enable() local 606 bucket->ftb_data = new_tp; in fasttrap_tracepoint_enable() 629 mutex_exit(&bucket->ftb_mtx); in fasttrap_tracepoint_enable() 676 fasttrap_bucket_t *bucket; in fasttrap_tracepoint_disable() local 1184 fasttrap_bucket_t *bucket; in fasttrap_proc_lookup() local 1236 bucket->ftb_data = new_fprc; in fasttrap_proc_lookup() 1246 fasttrap_bucket_t *bucket; in fasttrap_proc_release() local 1302 fasttrap_bucket_t *bucket; in fasttrap_provider_lookup() local 1409 bucket->ftb_data = new_fp; in fasttrap_provider_lookup() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_index.cc | 191 unsigned long bucket; in lookup() local 200 bucket = hval % table_size; in lookup() 202 db_index_entry_p fst = tab[bucket ]; in lookup() 229 unsigned long bucket; in remove() local 242 bucket = hval % table_size; in remove() 244 fst = tab[bucket]; in remove() 279 unsigned long bucket; in add() local 280 bucket = hval %table_size; in add() 281 fst = tab[bucket]; in add() 284 recnum, tab[bucket])) == NULL) { in add() [all …]
|
H A D | db_dictionary.cc | 206 db_table_desc* bucket; in delete_dictionary() local 213 if (bucket) in delete_dictionary() 214 delete_bucket(bucket); in delete_dictionary() 465 db_table_desc *bucket; in enumerate_dictionary() local 472 bucket = dd->tables.tables_val[i]; in enumerate_dictionary() 473 if (bucket) { in enumerate_dictionary() 492 unsigned long bucket; in search_dictionary() local 518 unsigned long bucket; in remove_from_dictionary() local 574 unsigned long bucket; in add_to_dictionary() local 880 if (bucket) { in massage_dict() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/java_api/src/ |
H A D | TestBean.java | 207 Distribution.Bucket bucket; in getLogDistribution() local 220 buckets.add(bucket); in getLogDistribution() 222 buckets.add(bucket); in getLogDistribution() 224 buckets.add(bucket); in getLogDistribution() 238 buckets.add(bucket); in getLogDistribution() 249 Distribution.Bucket bucket; in getLinearDistribution() local 254 buckets.add(bucket); in getLinearDistribution() 258 buckets.add(bucket); in getLinearDistribution() 261 buckets.add(bucket); in getLinearDistribution() 285 buckets.add(bucket); in getLogLinearDistribution() [all …]
|
/illumos-gate/usr/src/uts/common/refhash/ |
H A D | refhash.c | 77 uint_t bucket; in refhash_insert() local 80 bucket = hp->rh_hash(obj_to_tag(hp, op)) % hp->rh_bucket_count; in refhash_insert() 85 list_insert_tail(&hp->rh_buckets[bucket], lp); in refhash_insert() 93 uint_t bucket; in refhash_delete() local 95 bucket = hp->rh_hash(obj_to_tag(hp, op)) % hp->rh_bucket_count; in refhash_delete() 96 list_remove(&hp->rh_buckets[bucket], lp); in refhash_delete() 116 uint_t bucket; in refhash_lookup() local 120 bucket = hp->rh_hash(tp) % hp->rh_bucket_count; in refhash_lookup() 121 for (lp = list_head(&hp->rh_buckets[bucket]); lp != NULL; in refhash_lookup() 122 lp = list_next(&hp->rh_buckets[bucket], lp)) { in refhash_lookup()
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | isencrypt.c | 76 int bucket[8]; in isencrypt() local 79 for (i = 0; i < 8; i++) bucket[i] = 0; in isencrypt() 81 for (i = 0; i < 64; i++) bucket[(fbuf[i]>>5)&07] += 1; in isencrypt() 84 for (i = 0; i < 8; i++) cs += (bucket[i]-8)*(bucket[i]-8); in isencrypt()
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | hash.c | 65 long bucket; in get_hash() local 69 tmp = tbl->table[bucket = hash_string(key, tbl->size)]; in get_hash() 71 tmp = tbl->table[bucket = labs((long)key) % tbl->size]; in get_hash() 107 new->next_entry = tbl->table[bucket]; in get_hash() 108 tbl->table[bucket] = new; in get_hash() 139 ulong_t bucket; in del_hash() local 143 bucket = hash_string(key, tbl->size); in del_hash() 145 bucket = labs((long)key) % tbl->size; in del_hash() 148 if ((tmp = tbl->table[bucket]) == NULL) { in del_hash() 184 tbl->table[bucket] = tmp->next_entry; in del_hash()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_sadb.c | 117 ASSERT(MUTEX_HELD(&bucket->isaf_lock)); in ipsec_getassocbyconn() 142 if ((bucket == ipr->ipsr_bucket) && in ipsec_getassocbyconn() 425 ipr->ipsr_bucket = bucket; in ipsec_getassocbyconn() 426 ipr->ipsr_gen = bucket->isaf_gen; in ipsec_getassocbyconn() 572 isaf_t *bucket; in ipsec_outbound_sa() local 615 bucket = OUTBOUND_BUCKET_V4(sp, dst); in ipsec_outbound_sa() 634 mutex_enter(&bucket->isaf_lock); in ipsec_outbound_sa() 637 mutex_exit(&bucket->isaf_lock); in ipsec_outbound_sa() 794 isaf_t *bucket; in ipsec_inbound_esp_sa() local 869 mutex_enter(&bucket->isaf_lock); in ipsec_inbound_esp_sa() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | str_conf.c | 131 uint_t bucket; in i_fmodsw_hash_insert() local 137 bucket = FMODSW_HASH(fp->f_name); in i_fmodsw_hash_insert() 138 for (pp = &(fmodsw_hash[bucket]); (p = *pp) != NULL; in i_fmodsw_hash_insert() 153 uint_t bucket; in i_fmodsw_hash_remove() local 159 bucket = FMODSW_HASH(name); in i_fmodsw_hash_remove() 160 for (pp = &(fmodsw_hash[bucket]); (p = *pp) != NULL; in i_fmodsw_hash_remove() 178 uint_t bucket; in i_fmodsw_hash_find() local 184 bucket = FMODSW_HASH(name); in i_fmodsw_hash_find() 185 for (p = fmodsw_hash[bucket]; p != NULL; p = p->f_next) in i_fmodsw_hash_find()
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | hash.c | 58 int bucket; in get_hash() local 67 bucket = hashval % tbl->t_size; in get_hash() 70 for (ent = tbl->t_entry[bucket]; ent != NULL; in get_hash() 98 ent->e_next = tbl->t_entry[bucket]; in get_hash() 99 tbl->t_entry[bucket] = ent; in get_hash()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | taskq.c | 1201 bucket = tq->tq_buckets; in taskq_dispatch() 1229 bucket = b; in taskq_dispatch() 1265 taskq_bucket_extend(bucket); in taskq_dispatch() 1271 ASSERT(bucket != NULL); in taskq_dispatch() 1753 bucket->tqbucket_nalloc--; in taskq_d_thread() 1754 bucket->tqbucket_nfree++; in taskq_d_thread() 1821 bucket->tqbucket_nfree--; in taskq_d_thread() 1823 TQ_STAT(bucket, tqs_tdeaths); in taskq_d_thread() 2025 tq->tq_buckets = bucket; in taskq_create_common() 2032 bucket->tqbucket_taskq = tq; in taskq_create_common() [all …]
|
/illumos-gate/usr/src/tools/protocmp/ |
H A D | depend.c | 49 int bucket; in processed_package() local 52 bucket = HASH(pkgname); in processed_package() 53 for (tmp = packages[bucket]; tmp != NULL; tmp = tmp->next) { in processed_package() 63 int bucket; in mark_processed() local 66 bucket = HASH(pkgname); in mark_processed() 70 tmp->next = packages[bucket]; in mark_processed() 71 packages[bucket] = tmp; in mark_processed()
|
H A D | list.c | 247 int bucket; in add_elem() local 250 bucket = hash(e->name) % list->num_of_buckets; in add_elem() 251 if (list->list[bucket]) { in add_elem() 252 for (cur = list->list[bucket]; cur; cur = cur->next) { in add_elem() 271 e->next = list->list[bucket]; in add_elem() 272 list->list[bucket] = e; in add_elem()
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | bucket.h | 35 struct bucket *bl_bucket; 39 typedef struct bucket { struct 41 struct bucket *b_parent; argument 43 struct bucket *b_thread; argument
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_lease.c | 85 smb_llist_t *bucket; in smb2_lease_rele() local 101 bucket = ls->ls_bucket; in smb2_lease_rele() 102 smb_llist_enter(bucket, RW_WRITER); in smb2_lease_rele() 106 smb_llist_remove(bucket, ls); in smb2_lease_rele() 113 smb_llist_exit(bucket); in smb2_lease_rele() 156 smb_llist_t *bucket; in smb2_lease_create() local 175 newlease->ls_bucket = bucket; in smb2_lease_create() 203 smb_llist_exit(bucket); in smb2_lease_create() 246 smb_llist_t *bucket; in lease_lookup() local 255 lease = smb_llist_head(bucket); in lease_lookup() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | options.c | 682 hashentry_t *bucket; local 685 for (; bucket != NULL; bucket = bucket->next) { 689 return (bucket->opt.p); 893 register hashentry_t *bucket; local 913 bucket = hash_tbl[loc]; 914 if (bucket != NULL) { 922 if (bucket->next == NULL) 924 bucket = bucket->next; 926 bucket->next = he; 994 hashentry_t *bucket; local [all …]
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | htbl.c | 119 unsigned int bucket; in add_fcall() local 124 bucket = hash_str(key, htp->size); in add_fcall() 125 cur = &htp->tbl[bucket]; in add_fcall() 193 new->bucket = b; in iterate_hash() 231 i = itr->bucket; in iter_next() 243 itr->bucket = i; in iter_next()
|
/illumos-gate/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_pr.c | 176 size_t bucket, fmap[FMAP_ENTRIES + 1]; local 239 bucket = 0; bucket < mp->htab_buckets; ++htabp, ++bucket) { 240 if (SH_TAILQ_FIRST(&dbmp->htab[bucket], __bh) != NULL) 241 (void)fprintf(fp, "%lu:\n", (u_long)bucket); 242 for (bhp = SH_TAILQ_FIRST(&dbmp->htab[bucket], __bh);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/hash/ |
H A D | hashscan.c | 55 pos->bucket = ∅ in hashscan() 92 b = pos->bucket; in hashnext() 123 return(pos->tab->root->last.bucket = pos->bucket = b); in hashnext()
|