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

12

/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dhash.c61 hash_def_hash(int nbuckets, void *arg) argument
64 return (data % nbuckets);
75 hash_name(int nbuckets, const char *name) argument
89 return (h % nbuckets);
93 hash_new(int nbuckets, int (*hashfn)(int, void *), int (*cmp)(void *, void *)) argument
98 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets);
99 hash->h_nbuckets = nbuckets;
H A Dalist.c55 alist_hash(int nbuckets, void *arg) argument
60 return (num % nbuckets);
72 alist_xnew(int nbuckets, void (*namefree)(void *), argument
79 alist->al_elements = hash_new(nbuckets, hashfn, cmpfn);
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));
/freebsd-current/lib/librss/
H A Dlibrss.c106 rss_getbucketmap(int *bucket_map, int nbuckets) argument
134 if (b > nbuckets) {
135 fprintf(stderr, "%s: bucket %d > nbuckets %d\n",
138 nbuckets);
166 fprintf(stderr, "%s: couldn't fetch net.inet.rss.nbuckets\n", __func__);
/freebsd-current/contrib/elftoolchain/libelftc/
H A Delftc_string_table.c132 int n, nbuckets, tablesize; local
137 nbuckets = sizehint / (ELFTC_STRING_TABLE_EXPECTED_CHAIN_LENGTH *
141 nbuckets * sizeof(struct _Elftc_String_Table_Bucket);
150 for (n = 0; n < nbuckets; n++)
154 st->st_nbuckets = nbuckets;
/freebsd-current/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_strtab.c69 uint_t nbuckets = _dtrace_strbuckets; local
77 sp->str_hash = calloc(nbuckets, sizeof (dt_strhash_t *));
82 sp->str_hashsz = nbuckets;
H A Ddt_aggregate.c296 int nbuckets = DTRACE_QUANTIZE_NBUCKETS; local
301 for (i = 0; i < nbuckets; i++) {
/freebsd-current/sys/net/altq/
H A Daltq_fairq.c309 u_int nbuckets = opts->nbuckets; local
328 if (nbuckets == 0)
329 nbuckets = 256;
330 if (nbuckets > FAIRQ_MAX_BUCKETS)
331 nbuckets = FAIRQ_MAX_BUCKETS;
333 while ((nbuckets ^ (nbuckets - 1)) != ((nbuckets << 1) - 1))
334 ++nbuckets;
[all...]
/freebsd-current/sys/netpfil/pf/
H A Dpf_altq.h104 u_int nbuckets; member in struct:fairq_opts
/freebsd-current/contrib/diff/src/
H A Dio.c57 static size_t nbuckets;
394 bucket = &buckets[h % nbuckets];
851 nbuckets = ((size_t) 1 << i) - prime_offset[i];
852 if (PTRDIFF_MAX / sizeof *buckets <= nbuckets)
854 buckets = zalloc ((nbuckets + 1) * sizeof *buckets);
56 static size_t nbuckets; variable
/freebsd-current/lib/libc/db/hash/
H A Dhash.c335 int nbuckets, nsegs, l2; local
345 nbuckets = 1 << l2;
356 hashp->MAX_BUCKET = hashp->LOW_MASK = nbuckets - 1;
357 hashp->HIGH_MASK = (nbuckets << 1) - 1;
361 nsegs = (nbuckets - 1) / hashp->SGSIZE + 1;
/freebsd-current/usr.bin/systat/
H A Diolat.c123 split_u64(char *str, const char *delim, uint64_t *buckets, int *nbuckets) argument
125 int n = *nbuckets, i;
133 *nbuckets = i;
/freebsd-current/stand/common/
H A Dload_elf.c55 Elf_Hashelt nbuckets; member in struct:elf_file
912 COPYOUT(ef->hashtab, &ef->nbuckets, sizeof(ef->nbuckets));
915 ef->chains = ef->buckets + ef->nbuckets;
1238 if (ef->nbuckets == 0) {
1244 COPYOUT(&ef->buckets[hash % ef->nbuckets], &symnum, sizeof(symnum));
/freebsd-current/sbin/pfctl/
H A Dpfctl_parser.h185 u_int nbuckets; member in struct:node_fairq_opts
H A Dpfctl_altq.c1339 pa->pq_u.fairq_opts.nbuckets = opts->data.fairq_opts.nbuckets;
/freebsd-current/libexec/rtld-elf/
H A Drtld.h194 unsigned long nbuckets; /* Number of buckets */ member in struct:Struct_Obj_Entry
H A Drtld.c1376 obj->nbuckets = hashtab[0];
1379 obj->chains = obj->buckets + obj->nbuckets;
1380 obj->valid_hash_sysv = obj->nbuckets > 0 && obj->nchains > 0 &&
4923 for (symnum = obj->buckets[req->hash % obj->nbuckets];
/freebsd-current/sys/kern/
H A Dlink_elf.c85 Elf_Hashelt nbuckets; /* DT_HASH info */ member in struct:elf_file
599 ef->nbuckets = hashtab[0];
602 ef->chains = ef->buckets + ef->nbuckets;
1529 if (ef->buckets == NULL || ef->nbuckets == 0) {
1536 symnum = ef->buckets[hash % ef->nbuckets];
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFTypes.h554 Elf_Word nbuckets;
566 reinterpret_cast<const Elf_Word *>(filter().end()), nbuckets);
H A DELF.h751 if (Table.nbuckets == 0)
/freebsd-current/sys/netpfil/ipfw/
H A Dip_fw_dynamic.c423 uint32_t nbuckets; local
426 nbuckets = V_dyn_buckets_max;
427 error = sysctl_handle_32(oidp, &nbuckets, 0, req);
432 if (nbuckets > 256)
433 V_dyn_buckets_max = 1 << fls(nbuckets - 1);
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DELFDumper.cpp2655 if (TableOffset + 16 + (uint64_t)GnuHashTable->nbuckets * 4 +
2729 W.printNumber("Num Buckets", GnuHashTable->nbuckets);
2838 size_t NBucket = GnuHashTable.nbuckets;
4377 for (uint32_t Buc = 0; Buc < GnuHash.nbuckets; Buc++) {
/freebsd-current/sys/dev/cxgbe/
H A Dt4_main.c6515 int nbuckets = rss_getnumbuckets(); local
6595 rss_getcpu(q % nbuckets));
6612 rss_getcpu(q % nbuckets));
6808 int nbuckets = rss_getnumbuckets(); local
6835 if (vi->nrxq != nbuckets) {
6837 "performance will be impacted.\n", vi->nrxq, nbuckets);
/freebsd-current/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Ddtrace.c2436 int nbuckets = this > nsteps ? nsteps : this; local
2456 return (base + (value - last) / (this / nbuckets));
2459 base += nbuckets - (nbuckets / factor);

Completed in 506 milliseconds

12