/titanic_41/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_hash.c | 104 _sd_hash_bucket_t *bucket; in _sdbc_hash_configure() local 131 bucket = (hash_table->ht_buckets + i); in _sdbc_hash_configure() 133 bucket->hb_lock = &_sd_hb_locks[i % _SD_HB_LOCKS]; in _sdbc_hash_configure() 134 bucket->hb_head = bucket->hb_tail = NULL; in _sdbc_hash_configure() 135 bucket->hb_inlist = 0; in _sdbc_hash_configure() 196 _sd_hash_bucket_t *bucket; in _sd_hash_search() local 205 bucket = (table->ht_buckets + i); in _sd_hash_search() 207 seq = bucket->hb_seq; in _sd_hash_search() 208 for (hptr = bucket->hb_head; hptr; hptr = hnext) { in _sd_hash_search() 218 if (bucket->hb_seq != seq) { in _sd_hash_search() [all …]
|
/titanic_41/usr/src/lib/libpool/common/ |
H A D | dict.c | 296 dict_bucket_t *bucket; in dict_get() local 299 for (bucket = hdl->dh_buckets[i]; bucket != NULL; in dict_get() 300 bucket = bucket->db_next) in dict_get() 301 if ((*hdl->dh_cmp)(key, bucket->db_key) == 0) in dict_get() 303 return (bucket ? bucket->db_value : NULL); in dict_get() 314 dict_bucket_t *bucket; in dict_put() local 318 for (bucket = hdl->dh_buckets[i]; bucket != NULL; in dict_put() 319 bucket = bucket->db_next) in dict_put() 320 if ((*hdl->dh_cmp)(key, bucket->db_key) == 0) in dict_put() 322 if (bucket) { in dict_put() [all …]
|
/titanic_41/usr/src/lib/libtecla/common/ |
H A D | hash.c | 87 HashBucket *bucket; /* An array of 'size' hash buckets */ member 96 static HashNode *_find_HashNode(HashTable *hash, HashBucket *bucket, 253 hash->bucket = NULL; in _new_HashTable() 260 hash->bucket = (HashBucket *) malloc(sizeof(HashBucket) * size); in _new_HashTable() 261 if(!hash->bucket) { in _new_HashTable() 269 HashBucket *b = hash->bucket + i; in _new_HashTable() 293 if(hash->bucket) { in _del_HashTable() 295 free(hash->bucket); in _del_HashTable() 296 hash->bucket = NULL; in _del_HashTable() 343 HashBucket *bucket; /* The hash-bucket associated with the name */ in _new_HashSymbol() local [all …]
|
/titanic_41/usr/src/lib/libbsdmalloc/common/ |
H A D | malloc.bsd43.c | 100 int bucket; in malloc() local 129 bucket = 0; in malloc() 133 bucket++; in malloc() 135 pagebucket = bucket; in malloc() 144 bucket = 0; in malloc() 148 bucket = pagebucket; in malloc() 154 bucket++; in malloc() 160 if ((op = nextf[bucket]) == NULL) { in malloc() 161 morecore(bucket); in malloc() 162 if ((op = nextf[bucket]) == NULL) in malloc() [all …]
|
/titanic_41/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() 192 checkBucketRange(int i, int bucketCount, Distribution.Bucket bucket, in checkBucketRange() argument 196 checkBucketRange(i, bucket, range); in checkBucketRange() 200 checkBucketRange(int i, int bucketCount, Distribution.Bucket bucket) in checkBucketRange() argument [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()
|
/titanic_41/usr/src/uts/common/dtrace/ |
H A D | fasttrap.c | 277 fasttrap_bucket_t *bucket; in fasttrap_pid_cleanup_cb() local 299 bucket = &fasttrap_provs.fth_table[i]; in fasttrap_pid_cleanup_cb() 300 mutex_enter(&bucket->ftb_mtx); in fasttrap_pid_cleanup_cb() 301 fpp = (fasttrap_provider_t **)&bucket->ftb_data; in fasttrap_pid_cleanup_cb() 355 mutex_exit(&bucket->ftb_mtx); in fasttrap_pid_cleanup_cb() 442 fasttrap_bucket_t *bucket = &fasttrap_tpoints.fth_table[i]; in fasttrap_fork() local 444 mutex_enter(&bucket->ftb_mtx); in fasttrap_fork() 445 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_fork() 461 mutex_exit(&bucket->ftb_mtx); in fasttrap_fork() 504 fasttrap_bucket_t *bucket; in fasttrap_tracepoint_enable() local [all …]
|
/titanic_41/usr/src/lib/libnisdb/ |
H A D | db_index.cc | 193 unsigned long bucket; in lookup() local 202 bucket = hval % table_size; in lookup() 204 db_index_entry_p fst = tab[bucket ]; in lookup() 231 unsigned long bucket; in remove() local 244 bucket = hval % table_size; in remove() 246 fst = tab[bucket]; in remove() 249 else if (fst->remove(&tab[bucket], case_insens, hval, index_value, in remove() 281 unsigned long bucket; in add() local 282 bucket = hval %table_size; in add() 283 fst = tab[bucket]; in add() [all …]
|
H A D | db_dictionary.cc | 204 db_table_desc* bucket; in delete_dictionary() local 210 bucket = dict->tables.tables_val[i]; in delete_dictionary() 211 if (bucket) in delete_dictionary() 212 delete_bucket(bucket); in delete_dictionary() 223 relocate_bucket(db_table_desc* bucket, in relocate_bucket() argument 228 for (np = bucket; np != NULL; np = next_np) { in relocate_bucket() 241 enumerate_bucket(db_table_desc* bucket, db_status(*func)(db_table_desc *)) in enumerate_bucket() argument 246 for (np = bucket; np != NULL; np = np->next) { in enumerate_bucket() 260 search_bucket(db_table_desc* bucket, unsigned long hval, char *target) in search_bucket() argument 264 for (np = bucket; np != NULL; np = np->next) { in search_bucket() [all …]
|
/titanic_41/usr/src/lib/libgen/common/ |
H A D | isencrypt.c | 78 int bucket[8]; in isencrypt() local 81 for (i = 0; i < 8; i++) bucket[i] = 0; in isencrypt() 83 for (i = 0; i < 64; i++) bucket[(fbuf[i]>>5)&07] += 1; in isencrypt() 86 for (i = 0; i < 8; i++) cs += (bucket[i]-8)*(bucket[i]-8); in isencrypt()
|
/titanic_41/usr/src/cmd/dtrace/test/tst/common/java_api/src/ |
H A D | TestBean.java | 207 Distribution.Bucket bucket; in getLogDistribution() local 219 bucket = new Distribution.Bucket(-1, -1, n++); in getLogDistribution() 220 buckets.add(bucket); in getLogDistribution() 221 bucket = new Distribution.Bucket(0, 0, n++); in getLogDistribution() 222 buckets.add(bucket); in getLogDistribution() 223 bucket = new Distribution.Bucket(1, 1, n++); in getLogDistribution() 224 buckets.add(bucket); in getLogDistribution() 237 bucket = new Distribution.Bucket(lowerBound, upperBound, n++); in getLogDistribution() 238 buckets.add(bucket); in getLogDistribution() 249 Distribution.Bucket bucket; in getLinearDistribution() local [all …]
|
/titanic_41/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas_hash.c | 83 uint_t bucket; in refhash_insert() local 86 bucket = hp->rh_hash(obj_to_tag(hp, op)) % hp->rh_bucket_count; in refhash_insert() 91 list_insert_tail(&hp->rh_buckets[bucket], lp); in refhash_insert() 99 uint_t bucket; in refhash_delete() local 101 bucket = hp->rh_hash(obj_to_tag(hp, op)) % hp->rh_bucket_count; in refhash_delete() 102 list_remove(&hp->rh_buckets[bucket], lp); in refhash_delete() 122 uint_t bucket; in refhash_lookup() local 126 bucket = hp->rh_hash(tp) % hp->rh_bucket_count; in refhash_lookup() 127 for (lp = list_head(&hp->rh_buckets[bucket]); lp != NULL; in refhash_lookup() 128 lp = list_next(&hp->rh_buckets[bucket], lp)) { in refhash_lookup()
|
/titanic_41/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()
|
/titanic_41/usr/src/uts/common/inet/ip/ |
H A D | ip_sadb.c | 97 ipsec_getassocbyconn(isaf_t *bucket, ip_xmit_attr_t *ixa, uint32_t *src, in ipsec_getassocbyconn() argument 117 ASSERT(MUTEX_HELD(&bucket->isaf_lock)); in ipsec_getassocbyconn() 142 if ((bucket == ipr->ipsr_bucket) && in ipsec_getassocbyconn() 143 (bucket->isaf_gen == ipr->ipsr_gen) && in ipsec_getassocbyconn() 192 for (retval = bucket->isaf_ipsa; retval != NULL; in ipsec_getassocbyconn() 425 ipr->ipsr_bucket = bucket; in ipsec_getassocbyconn() 426 ipr->ipsr_gen = bucket->isaf_gen; in ipsec_getassocbyconn() 485 if (sadb_insertassoc(retval, bucket) != 0) { in ipsec_getassocbyconn() 491 (void) sadb_insertassoc(retval, bucket); in ipsec_getassocbyconn() 510 ipsec_getassocbyspi(isaf_t *bucket, uint32_t spi, uint32_t *src, uint32_t *dst, in ipsec_getassocbyspi() argument [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | taskq.c | 1139 taskq_bucket_t *bucket = NULL; /* Which bucket needs extension */ in taskq_dispatch() local 1191 bucket = tq->tq_buckets; in taskq_dispatch() 1219 bucket = b; in taskq_dispatch() 1255 taskq_bucket_extend(bucket); in taskq_dispatch() 1256 TQ_STAT(bucket, tqs_disptcreates); in taskq_dispatch() 1257 if ((tqe = taskq_bucket_dispatch(bucket, func, arg)) != NULL) in taskq_dispatch() 1261 ASSERT(bucket != NULL); in taskq_dispatch() 1269 if (!taskq_ent_exists(tq, taskq_bucket_extend, bucket)) { in taskq_dispatch() 1271 TQ_ENQUEUE_FRONT(tq, tqe1, taskq_bucket_extend, bucket); in taskq_dispatch() 1273 TQ_STAT(bucket, tqs_nomem); in taskq_dispatch() [all …]
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/sgs/crle/common/ |
H A D | hash.c | 56 int bucket; in get_hash() local 65 bucket = hashval % tbl->t_size; in get_hash() 68 for (ent = tbl->t_entry[bucket]; ent != NULL; in get_hash() 96 ent->e_next = tbl->t_entry[bucket]; in get_hash() 97 tbl->t_entry[bucket] = ent; in get_hash()
|
/titanic_41/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | bucket.h | 37 struct bucket *bl_bucket; 41 typedef struct bucket { struct 43 struct bucket *b_parent; argument 45 struct bucket *b_thread; argument
|
/titanic_41/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 | 249 int bucket; in add_elem() local 252 bucket = hash(e->name) % list->num_of_buckets; in add_elem() 253 if (list->list[bucket]) { in add_elem() 254 for (cur = list->list[bucket]; cur; cur = cur->next) { in add_elem() 273 e->next = list->list[bucket]; in add_elem() 274 list->list[bucket] = e; in add_elem()
|
/titanic_41/usr/src/tools/ctf/cvt/ |
H A D | hash.c | 108 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_add() local 110 list_add(&hash->h_buckets[bucket], key); in hash_add() 135 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_remove() local 137 (void) list_remove(&hash->h_buckets[bucket], key, in hash_remove() 145 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_match() local 147 return (list_iter(hash->h_buckets[bucket], fun, private) < 0); in hash_match() 169 int bucket = hash->h_hashfn(hash->h_nbuckets, key); in hash_find_iter() local 177 return (list_iter(hash->h_buckets[bucket], (int (*)())hash_find_list_cb, in hash_find_iter()
|
/titanic_41/usr/src/lib/libast/common/hash/ |
H A D | hashscan.c | 55 pos->bucket = ∅ in hashscan() 91 if (!pos) return(pos->tab->root->last.bucket = 0); in hashnext() 92 b = pos->bucket; in hashnext() 123 return(pos->tab->root->last.bucket = pos->bucket = b); in hashnext()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | options.c | 688 hashentry_t *bucket; local 690 bucket = hash_tbl[opt_hash(name)]; 691 for (; bucket != NULL; bucket = bucket->next) { 692 if (bucket->opt.p->name != NULL) { 693 if ((strcmp(bucket->opt.p->name, name) == 0) && 694 !(bucket->opt.p->flags & OPT_DISABLE)) { 695 return (bucket->opt.p); 899 register hashentry_t *bucket; local 919 bucket = hash_tbl[loc]; 920 if (bucket != NULL) { [all …]
|
/titanic_41/usr/src/cmd/truss/ |
H A D | htbl.c | 121 unsigned int bucket; in add_fcall() local 126 bucket = hash_str(key, htp->size); in add_fcall() 127 cur = &htp->tbl[bucket]; in add_fcall() 195 new->bucket = b; in iterate_hash() 233 i = itr->bucket; in iter_next() 245 itr->bucket = i; in iter_next()
|