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

/illumos-gate/usr/src/tools/ctf/cvt/
H A Dalist.c55 alist_hash(int nbuckets, alist_el_t *el) argument
59 return (num % nbuckets);
69 alist_xnew(int nbuckets, void (*namefree)(void *), argument
76 alist->al_elements = hash_new(nbuckets, hashfn, cmpfn);
H A Dhash.c61 hash_def_hash(int nbuckets, uintptr_t data) argument
63 return (data % nbuckets);
74 hash_name(int nbuckets, const char *name) argument
88 return (h % nbuckets);
92 hash_new(int nbuckets, int (*hashfn)(int, void *), int (*cmp)(void *, void *)) argument
97 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets);
98 hash->h_nbuckets = nbuckets;
H A Dtdata.c55 tdesc_layouthash(int nbuckets, void *node) argument
107 return (hash_name(nbuckets, name));
109 return (h % nbuckets);
129 tdesc_idhash(int nbuckets, void *data) argument
133 return (tdp->t_id % nbuckets);
148 tdesc_namehash(int nbuckets, void *data) argument
165 return (h % nbuckets);
H A Diidesc.c59 iidesc_hash(int nbuckets, void *arg) argument
65 return (hash_name(nbuckets, ii->ii_name));
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_hash.c174 ipmi_hash_link_t *link, **nbuckets; local
182 if ((nbuckets = ipmi_zalloc(hp, nsize * sizeof (void *))) == NULL) {
207 link->ihl_next = nbuckets[nidx];
208 nbuckets[nidx] = link;
213 ihp->ih_buckets = nbuckets;
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c65 uint_t nbuckets = _dtrace_strbuckets; local
73 sp->str_hash = malloc(nbuckets * sizeof (dt_strhash_t *));
78 bzero(sp->str_hash, nbuckets * sizeof (dt_strhash_t *));
79 sp->str_hashsz = nbuckets;
H A Ddt_aggregate.c290 int nbuckets = DTRACE_QUANTIZE_NBUCKETS, i; local
294 for (i = 0; i < nbuckets; i++) {
/illumos-gate/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;
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dload_elf.c58 Elf_Hashelt nbuckets; member in struct:elf_file
703 COPYOUT(ef->hashtab, &ef->nbuckets, sizeof(ef->nbuckets));
706 ef->chains = ef->buckets + ef->nbuckets;
1010 COPYOUT(&ef->buckets[hash % ef->nbuckets], &symnum, sizeof(symnum));
/illumos-gate/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;
/illumos-gate/usr/src/uts/common/os/
H A Dmsg.c1359 int nbuckets; local
1375 nbuckets = MSG_MAX_QNUM - neg_index + 1;
1376 check_index = neg_index + (qp->msg_stime % nbuckets);
1378 for (count = nbuckets; count > 0; count--) {
/illumos-gate/usr/src/uts/common/io/ib/clients/daplt/
H A Ddaplt.c9404 * nbuckets number of buckets (must be power of 2)
9418 * EINVAL nbuckets is not a power of 2
9423 daplka_hash_create(daplka_hash_table_t *htblp, uint_t nbuckets, argument
9428 if ((nbuckets & ~(nbuckets - 1)) != nbuckets) {
9429 DERR("hash_create: nbuckets not power of 2\n");
9435 kmem_zalloc(sizeof (daplka_hash_bucket_t) * nbuckets,
9441 for (i = 0; i < nbuckets; i++) {
9452 htblp->ht_nbuckets = nbuckets;
[all...]
/illumos-gate/usr/src/uts/common/dtrace/
H A Ddtrace.c2306 int nbuckets = this > nsteps ? nsteps : this; local
2326 return (base + (value - last) / (this / nbuckets));
2329 base += nbuckets - (nbuckets / factor);

Completed in 138 milliseconds