Home
last modified time | relevance | path

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

12

/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dhash.c61 hash_def_hash(int nbuckets, void *arg) in hash_def_hash() argument
64 return (data % nbuckets); in hash_def_hash()
75 hash_name(int nbuckets, const char *name) in hash_name() argument
89 return (h % nbuckets); in hash_name()
93 hash_new(int nbuckets, int (*hashfn)(int, void *), int (*cmp)(void *, void *)) in hash_new() argument
98 hash->h_buckets = xcalloc(sizeof (list_t *) * nbuckets); in hash_new()
99 hash->h_nbuckets = nbuckets; in hash_new()
H A Dalist.c55 alist_hash(int nbuckets, void *arg) in alist_hash() argument
60 return (num % nbuckets); in alist_hash()
72 alist_xnew(int nbuckets, void (*namefree)(void *), in alist_xnew() argument
79 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()
/freebsd/sys/net/altq/
H A Daltq_fairq.c309 u_int nbuckets = opts->nbuckets; in fairq_class_create() local
328 if (nbuckets == 0) in fairq_class_create()
329 nbuckets = 256; in fairq_class_create()
330 if (nbuckets > FAIRQ_MAX_BUCKETS) in fairq_class_create()
331 nbuckets = FAIRQ_MAX_BUCKETS; in fairq_class_create()
333 while ((nbuckets ^ (nbuckets - 1)) != ((nbuckets << 1) - 1)) in fairq_class_create()
334 ++nbuckets; in fairq_class_create()
357 cl->cl_nbuckets = nbuckets; in fairq_class_create()
358 cl->cl_nbucket_mask = nbuckets - 1; in fairq_class_create()
/freebsd/contrib/elftoolchain/libelftc/
H A Delftc_string_table.c132 int n, nbuckets, tablesize; in elftc_string_table_create() local
137 nbuckets = sizehint / (ELFTC_STRING_TABLE_EXPECTED_CHAIN_LENGTH * in elftc_string_table_create()
141 nbuckets * sizeof(struct _Elftc_String_Table_Bucket); in elftc_string_table_create()
150 for (n = 0; n < nbuckets; n++) in elftc_string_table_create()
154 st->st_nbuckets = nbuckets; in elftc_string_table_create()
/freebsd/lib/librss/
H A Dlibrss.c106 rss_getbucketmap(int *bucket_map, int nbuckets) in rss_getbucketmap() argument
134 if (b > nbuckets) { in rss_getbucketmap()
138 nbuckets); in rss_getbucketmap()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_strtab.c69 uint_t nbuckets = _dtrace_strbuckets; in dt_strtab_create() local
77 sp->str_hash = calloc(nbuckets, sizeof (dt_strhash_t *)); in dt_strtab_create()
82 sp->str_hashsz = nbuckets; in dt_strtab_create()
H A Ddt_aggregate.c296 int nbuckets = DTRACE_QUANTIZE_NBUCKETS; in dt_aggregate_quantizedcmp() local
301 for (i = 0; i < nbuckets; i++) { in dt_aggregate_quantizedcmp()
/freebsd/contrib/diff/src/
H A Dio.c56 static size_t nbuckets; variable
390 bucket = &buckets[h % nbuckets]; in find_and_hash_each_line()
844 nbuckets = ((size_t) 1 << i) - prime_offset[i]; in read_files()
845 if (PTRDIFF_MAX / sizeof *buckets <= nbuckets) in read_files()
847 buckets = zalloc ((nbuckets + 1) * sizeof *buckets); in read_files()
/freebsd/contrib/elftoolchain/libelf/
H A Dlibelf_convert.m4757 uint32_t n, nbuckets, nchains, maskwords, shift2, symndx, t32;
765 READ_WORD(src, nbuckets);
773 SWAP_WORD(nbuckets);
780 sz = nbuckets * sizeof(uint32_t) + maskwords * sizeof(uint64_t);
785 gh->gh_nbuckets = nbuckets;
807 for (n = 0; n < nbuckets; n++) {
814 dst += nbuckets * sizeof(uint32_t);
844 uint32_t maskwords, n, nbuckets, nchains, t0, t1, t2, t3, t32;
852 t0 = nbuckets = gh->gh_nbuckets;
890 for (n = 0; n < nbuckets; n++) {
/freebsd/lib/libc/db/hash/
H A Dhash.c335 int nbuckets, nsegs, l2; in init_htab() local
345 nbuckets = 1 << l2; in init_htab()
356 hashp->MAX_BUCKET = hashp->LOW_MASK = nbuckets - 1; in init_htab()
357 hashp->HIGH_MASK = (nbuckets << 1) - 1; in init_htab()
361 nsegs = (nbuckets - 1) / hashp->SGSIZE + 1; in init_htab()
/freebsd/usr.bin/systat/
H A Diolat.c123 split_u64(char *str, const char *delim, uint64_t *buckets, int *nbuckets) in split_u64() argument
125 int n = *nbuckets, i; in split_u64()
133 *nbuckets = i; in split_u64()
/freebsd/stand/common/
H A Dload_elf.c55 Elf_Hashelt nbuckets; member
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/sys/netpfil/pf/
H A Dpf_altq.h104 u_int nbuckets; member
/freebsd/libexec/rtld-elf/
H A Drtld.h194 unsigned long nbuckets; /* Number of buckets */ member
H A Drtld.c1376 obj->nbuckets = hashtab[0]; in digest_dynamic1()
1379 obj->chains = obj->buckets + obj->nbuckets; in digest_dynamic1()
1380 obj->valid_hash_sysv = obj->nbuckets > 0 && obj->nchains > 0 && in digest_dynamic1()
4923 for (symnum = obj->buckets[req->hash % obj->nbuckets]; in symlook_obj1_sysv()
/freebsd/sbin/pfctl/
H A Dpfctl_parser.h185 u_int nbuckets; member
H A Dpfctl_altq.c1339 pa->pq_u.fairq_opts.nbuckets = opts->data.fairq_opts.nbuckets; in eval_queue_opts()
/freebsd/sys/kern/
H A Dlink_elf.c85 Elf_Hashelt nbuckets; /* DT_HASH info */ member
599 ef->nbuckets = hashtab[0]; in parse_dynamic()
602 ef->chains = ef->buckets + ef->nbuckets; in parse_dynamic()
1529 if (ef->buckets == NULL || ef->nbuckets == 0) { in link_elf_lookup_symbol1()
1536 symnum = ef->buckets[hash % ef->nbuckets]; in link_elf_lookup_symbol1()
/freebsd/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) in getDynSymtabSizeFromGnuHash()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_dynamic.c423 uint32_t nbuckets; in sysctl_dyn_buckets() local
426 nbuckets = V_dyn_buckets_max; in sysctl_dyn_buckets()
427 error = sysctl_handle_32(oidp, &nbuckets, 0, req); in sysctl_dyn_buckets()
432 if (nbuckets > 256) in sysctl_dyn_buckets()
433 V_dyn_buckets_max = 1 << fls(nbuckets - 1); in sysctl_dyn_buckets()
/freebsd/sys/dev/cxgbe/
H A Dt4_main.c6508 int nbuckets = rss_getnumbuckets(); in t4_setup_intr_handlers() local
6588 rss_getcpu(q % nbuckets)); in t4_setup_intr_handlers()
6605 rss_getcpu(q % nbuckets)); in t4_setup_intr_handlers()
6801 int nbuckets = rss_getnumbuckets(); in vi_full_init() local
6828 if (vi->nrxq != nbuckets) { in vi_full_init()
6830 "performance will be impacted.\n", vi->nrxq, nbuckets); in vi_full_init()
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DELFDumper.cpp2655 if (TableOffset + 16 + (uint64_t)GnuHashTable->nbuckets * 4 + in checkGNUHashTable()
2729 W.printNumber("Num Buckets", GnuHashTable->nbuckets); in printGnuHashTable()
2838 size_t NBucket = GnuHashTable.nbuckets; in printGnuHashHistogram()
4377 for (uint32_t Buc = 0; Buc < GnuHash.nbuckets; Buc++) { in printGnuHashTableSymbols()

12