Home
last modified time | relevance | path

Searched refs:nbuckets (Results 1 – 13 of 13) sorted by relevance

/titanic_41/usr/src/tools/ctf/cvt/
H A Dhash.c61 hash_def_hash(int nbuckets, uintptr_t data) in hash_def_hash() argument
63 return (data % nbuckets); in hash_def_hash()
74 hash_name(int nbuckets, const char *name) in hash_name() argument
88 return (h % nbuckets); in hash_name()
92 hash_new(int nbuckets, int (*hashfn)(int, void *), int (*cmp)(void *, void *)) in hash_new() argument
97 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets); in hash_new()
98 hash->h_nbuckets = nbuckets; in hash_new()
H A Dalist.c55 alist_hash(int nbuckets, alist_el_t *el) in alist_hash() argument
59 return (num % nbuckets); in alist_hash()
69 alist_xnew(int nbuckets, void (*namefree)(void *), in alist_xnew() argument
76 alist->al_elements = hash_new(nbuckets, hashfn, cmpfn); in alist_xnew()
H A Dtdata.c55 tdesc_layouthash(int nbuckets, void *node) in tdesc_layouthash() argument
107 return (hash_name(nbuckets, name)); in tdesc_layouthash()
109 return (h % nbuckets); in tdesc_layouthash()
129 tdesc_idhash(int nbuckets, void *data) in tdesc_idhash() argument
133 return (tdp->t_id % nbuckets); in tdesc_idhash()
148 tdesc_namehash(int nbuckets, void *data) in tdesc_namehash() argument
165 return (h % nbuckets); in tdesc_namehash()
H A Diidesc.c59 iidesc_hash(int nbuckets, void *arg) in iidesc_hash() argument
65 return (hash_name(nbuckets, ii->ii_name)); in iidesc_hash()
/titanic_41/usr/src/lib/libipmi/common/
H A Dipmi_hash.c174 ipmi_hash_link_t *link, **nbuckets; in ipmi_hash_resize() local
182 if ((nbuckets = ipmi_zalloc(hp, nsize * sizeof (void *))) == NULL) { in ipmi_hash_resize()
207 link->ihl_next = nbuckets[nidx]; in ipmi_hash_resize()
208 nbuckets[nidx] = link; in ipmi_hash_resize()
213 ihp->ih_buckets = nbuckets; in ipmi_hash_resize()
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c65 uint_t nbuckets = _dtrace_strbuckets; in dt_strtab_create() local
73 sp->str_hash = malloc(nbuckets * sizeof (dt_strhash_t *)); in dt_strtab_create()
78 bzero(sp->str_hash, nbuckets * sizeof (dt_strhash_t *)); in dt_strtab_create()
79 sp->str_hashsz = nbuckets; in dt_strtab_create()
H A Ddt_aggregate.c290 int nbuckets = DTRACE_QUANTIZE_NBUCKETS, i; in dt_aggregate_quantizedcmp() local
294 for (i = 0; i < nbuckets; i++) { in dt_aggregate_quantizedcmp()
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash.c385 int32_t l2, nbuckets; local
395 nbuckets = 1 << l2;
402 hashp->hdr.max_bucket = hashp->hdr.low_mask = nbuckets - 1;
403 hashp->hdr.high_mask = (nbuckets << 1) - 1;
/titanic_41/usr/src/cmd/sendmail/db/hash/
H A Dhash.c206 int32_t l2, nbuckets; local
226 nbuckets = 1 << l2;
231 hcp->hdr->max_bucket = hcp->hdr->high_mask = nbuckets - 1;
232 hcp->hdr->low_mask = (nbuckets >> 1) - 1;
/titanic_41/usr/src/uts/common/os/
H A Dmsg.c1359 int nbuckets; in msg_fnd_neg_snd() local
1375 nbuckets = MSG_MAX_QNUM - neg_index + 1; in msg_fnd_neg_snd()
1376 check_index = neg_index + (qp->msg_stime % nbuckets); in msg_fnd_neg_snd()
1378 for (count = nbuckets; count > 0; count--) { in msg_fnd_neg_snd()
/titanic_41/usr/src/uts/common/io/ib/clients/daplt/
H A Ddaplt.c9423 daplka_hash_create(daplka_hash_table_t *htblp, uint_t nbuckets, in daplka_hash_create() argument
9428 if ((nbuckets & ~(nbuckets - 1)) != nbuckets) { in daplka_hash_create()
9435 kmem_zalloc(sizeof (daplka_hash_bucket_t) * nbuckets, in daplka_hash_create()
9441 for (i = 0; i < nbuckets; i++) { in daplka_hash_create()
9452 htblp->ht_nbuckets = nbuckets; in daplka_hash_create()
9456 D3("hash_create: done, buckets = %d\n", nbuckets); in daplka_hash_create()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Darc.c7907 size_t nbuckets = buf_hash_table.ht_mask + 1; in arc_dump() local
7908 size_t bph = nbuckets / BUF_LOCKS; /* buckets per hash */ in arc_dump()
7914 aih->aih_buckets = nbuckets; in arc_dump()
7918 ASSERT(start_bucket < nbuckets); in arc_dump()
7920 for (i = start_bucket; i < nbuckets; ++i) { in arc_dump()
/titanic_41/usr/src/uts/common/dtrace/
H A Ddtrace.c2154 int nbuckets = this > nsteps ? nsteps : this; in dtrace_aggregate_llquantize_bucket() local
2174 return (base + (value - last) / (this / nbuckets)); in dtrace_aggregate_llquantize_bucket()
2177 base += nbuckets - (nbuckets / factor); in dtrace_aggregate_llquantize_bucket()