/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | hash.c | 61 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 D | tdata.c | 55 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 D | alist.c | 55 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 D | iidesc.c | 59 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 D | altq_fairq.c | 309 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 D | elftc_string_table.c | 132 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 D | librss.c | 106 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 D | dt_strtab.c | 69 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 D | dt_aggregate.c | 296 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 D | io.c | 56 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 D | libelf_convert.m4 | 757 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 D | hash.c | 335 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 D | iolat.c | 123 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 D | load_elf.c | 56 Elf_Hashelt nbuckets; member 910 COPYOUT(ef->hashtab, &ef->nbuckets, sizeof(ef->nbuckets)); 913 ef->chains = ef->buckets + ef->nbuckets; 1236 if (ef->nbuckets == 0) { 1242 COPYOUT(&ef->buckets[hash % ef->nbuckets], &symnum, sizeof(symnum));
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_altq.h | 104 u_int nbuckets; member
|
/freebsd/sys/kern/ |
H A D | link_elf.c | 85 Elf_Hashelt nbuckets; /* DT_HASH info */ member 595 ef->nbuckets = hashtab[0]; in parse_dynamic() 598 ef->chains = ef->buckets + ef->nbuckets; in parse_dynamic() 1523 if (ef->buckets == NULL || ef->nbuckets == 0) { in link_elf_lookup_symbol1() 1530 symnum = ef->buckets[hash % ef->nbuckets]; in link_elf_lookup_symbol1()
|
/freebsd/sbin/pfctl/ |
H A D | pfctl_parser.h | 185 u_int nbuckets; member
|
H A D | pfctl_altq.c | 1339 pa->pq_u.fairq_opts.nbuckets = opts->data.fairq_opts.nbuckets; in eval_queue_opts()
|
/freebsd/libexec/rtld-elf/ |
H A D | rtld.h | 191 unsigned long nbuckets; /* Number of buckets */ member
|
H A D | rtld.c | 1385 obj->nbuckets = hashtab[0]; in digest_dynamic1() 1388 obj->chains = obj->buckets + obj->nbuckets; in digest_dynamic1() 1389 obj->valid_hash_sysv = obj->nbuckets > 0 && in digest_dynamic1() 4988 for (symnum = obj->buckets[req->hash % obj->nbuckets]; in symlook_obj1_sysv()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | ELFTypes.h | 580 Elf_Word nbuckets; 592 reinterpret_cast<const Elf_Word *>(filter().end()), nbuckets);
|
H A D | ELF.h | 799 if (Table.nbuckets == 0) in getDynSymtabSizeFromGnuHash()
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_dynamic.c | 423 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 D | t4_main.c | 6700 int nbuckets = rss_getnumbuckets(); in t4_setup_intr_handlers() local 6780 rss_getcpu(q % nbuckets)); in t4_setup_intr_handlers() 6797 rss_getcpu(q % nbuckets)); in t4_setup_intr_handlers() 6993 int nbuckets = rss_getnumbuckets(); in vi_full_init() local 7020 if (vi->nrxq != nbuckets) { in vi_full_init() 7022 "performance will be impacted.\n", vi->nrxq, nbuckets); in vi_full_init()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | ELFDumper.cpp | 2630 if (TableOffset + 16 + (uint64_t)GnuHashTable->nbuckets * 4 + in checkGNUHashTable() 2704 W.printNumber("Num Buckets", GnuHashTable->nbuckets); in printGnuHashTable() 2813 size_t NBucket = GnuHashTable.nbuckets; in printGnuHashHistogram() 4456 for (uint32_t Buc = 0; Buc < GnuHash.nbuckets; Buc++) { in printGnuHashTableSymbols()
|