/freebsd/contrib/unbound/util/ |
H A D | timehist.c | 78 hist->buckets[i].lower = last; in dosetup() 80 hist->buckets[i].upper = last; in dosetup() 81 hist->buckets[i].count = 0; in dosetup() 92 hist->buckets = (struct th_buck*)calloc(hist->num, in timehist_setup() 94 if(!hist->buckets) { in timehist_setup() 107 free(hist->buckets); in timehist_delete() 115 hist->buckets[i].count = 0; in timehist_clear() 122 if(timeval_smaller(tv, &hist->buckets[i].upper)) { in timehist_insert() 123 hist->buckets[i].count++; in timehist_insert() 128 hist->buckets[hist->num-1].count++; in timehist_insert() [all …]
|
H A D | timehist.h | 67 struct th_buck* buckets; member
|
/freebsd/sys/netpfil/ipfw/ |
H A D | dn_heap.c | 323 int buckets; /* how many buckets, really buckets - 1*/ member 338 dn_ht_init(struct dn_ht *ht, int buckets, int ofs, in dn_ht_init() argument 371 if (buckets < 1 || buckets > 65536) in dn_ht_init() 374 b_ori = buckets; in dn_ht_init() 376 buckets |= buckets >> 1; in dn_ht_init() 377 buckets |= buckets >> 2; in dn_ht_init() 378 buckets |= buckets >> 4; in dn_ht_init() 379 buckets |= buckets >> 8; in dn_ht_init() 380 buckets |= buckets >> 16; in dn_ht_init() 382 b_max = buckets; /* Next power */ in dn_ht_init() [all …]
|
H A D | ip_dn_glue.c | 421 fs->buckets = f->rq_size; in dn_compat_config_queue() 467 sch->buckets = fs->buckets; /*XXX*/ in dn_compat_config_pipe() 468 fs->buckets = 0; in dn_compat_config_pipe() 647 fs->rq_size = s->sch.buckets ? s->sch.buckets : 1; in dn_c_copy_pipe() 717 fs->rq_size = (f->fs.buckets ? f->fs.buckets : 1); in dn_c_copy_fs()
|
/freebsd/contrib/bmake/ |
H A D | hash.c | 124 for (he = t->buckets[h & t->bucketsMask]; he != NULL; he = he->next) { in HashTable_Find() 139 HashEntry **buckets = bmake_malloc(sizeof *buckets * n); in HashTable_Init() local 141 buckets[i] = NULL; in HashTable_Init() 143 t->buckets = buckets; in HashTable_Init() 156 HashEntry **buckets = t->buckets; in HashTable_Done() local 160 HashEntry *he = buckets[i]; in HashTable_Done() 168 free(t->buckets); in HashTable_Done() 170 t->buckets = NULL; in HashTable_Done() 207 const HashEntry *he = t->buckets[b]; in HashTable_MaxChain() 224 HashEntry **oldBuckets = t->buckets; in HashTable_Enlarge() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_entry_link_resolver.c | 79 struct links_entry **buckets; member 112 res->buckets = calloc(res->number_buckets, sizeof(res->buckets[0])); in archive_entry_linkresolver_new() 113 if (res->buckets == NULL) { in archive_entry_linkresolver_new() 168 free(res->buckets); in archive_entry_linkresolver_free() 297 for (le = res->buckets[bucket]; le != NULL; le = le->next) { in find_entry() 315 if (res->buckets[bucket] == le) in find_entry() 316 res->buckets[bucket] = le->next; in find_entry() 342 for (le = res->buckets[bucket]; le != NULL; le = le->next) { in next_entry() 355 res->buckets[bucket] = le->next; in next_entry() 386 if (res->buckets[bucket] != NULL) in insert_entry() [all …]
|
/freebsd/usr.bin/du/ |
H A D | du.c | 377 static struct links_entry **buckets; in linkchk() local 390 if (buckets == NULL) { in linkchk() 392 buckets = malloc(number_buckets * sizeof(buckets[0])); in linkchk() 393 if (buckets == NULL) in linkchk() 396 buckets[i] = NULL; in linkchk() 419 while (buckets[i] != NULL) { in linkchk() 421 le = buckets[i]; in linkchk() 422 buckets[i] = le->next; in linkchk() 435 free(buckets); in linkchk() 436 buckets = new_buckets; in linkchk() [all …]
|
/freebsd/sbin/dhclient/ |
H A D | hash.c | 57 memset(&rv->buckets[0], 0, in new_hash() 98 bp->next = table->buckets[hashno]; in add_hash() 100 table->buckets[hashno] = bp; in add_hash() 117 for (bp = table->buckets[hashno]; bp; bp = bp->next) in hash_lookup()
|
/freebsd/contrib/libucl/uthash/ |
H A D | uthash.h | 102 HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], \ 152 (head)->hh.tbl->buckets = (UT_hash_bucket*)uthash_malloc( \ 154 if (! (head)->hh.tbl->buckets) { uthash_fatal( "out of memory"); } \ 155 memset((head)->hh.tbl->buckets, 0, \ 193 HASH_ADD_TO_BKT((head)->hh.tbl->buckets[_ha_bkt],&(add)->hh); \ 221 uthash_free((head)->hh.tbl->buckets, \ 245 HASH_DEL_IN_BKT(hh,(head)->hh.tbl->buckets[_hd_bkt], _hd_hh_del); \ 289 _thh = (head)->hh.tbl->buckets[_bkt_i].hh_head; \ 301 if ((head)->hh.tbl->buckets[_bkt_i].count != _bkt_count) { \ 303 (head)->hh.tbl->buckets[_bkt_i].count, _bkt_count); \ [all …]
|
/freebsd/sbin/ipf/ipnat/ |
H A D | ipnat.c | 395 u_int *buckets; in dotable() local 398 sz = sizeof(*buckets) * nsp->ns_nattab_sz; in dotable() 399 buckets = (u_int *)malloc(sz); in dotable() 400 if (buckets == NULL) { in dotable() 416 table.ita_table = buckets; in dotable() 421 free(buckets); in dotable() 425 if (kmemcpy((char *)buckets, (u_long)nsp->ns_nattab_sz, sz)) { in dotable() 426 free(buckets); in dotable() 437 if (buckets[i] > maxlen) in dotable() 438 maxlen = buckets[i]; in dotable() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/ |
H A D | TestBean.java | 206 List < Distribution.Bucket > buckets = in getLogDistribution() local 221 buckets.add(bucket); in getLogDistribution() 223 buckets.add(bucket); in getLogDistribution() 225 buckets.add(bucket); in getLogDistribution() 239 buckets.add(bucket); in getLogDistribution() 241 LogDistribution d = new LogDistribution(buckets); in getLogDistribution() 248 List < Distribution.Bucket > buckets = in getLinearDistribution() local 255 buckets.add(bucket); in getLinearDistribution() 259 buckets.add(bucket); in getLinearDistribution() 262 buckets.add(bucket); in getLinearDistribution() [all …]
|
/freebsd/contrib/elftoolchain/common/ |
H A D | uthash.h | 103 HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], \ 152 (head)->hh.tbl->buckets = (UT_hash_bucket*)uthash_malloc( \ 154 if (! (head)->hh.tbl->buckets) { uthash_fatal( "out of memory"); } \ 155 memset((head)->hh.tbl->buckets, 0, \ 183 HASH_ADD_TO_BKT((head)->hh.tbl->buckets[_ha_bkt],&(add)->hh); \ 211 uthash_free((head)->hh.tbl->buckets, \ 235 HASH_DEL_IN_BKT(hh,(head)->hh.tbl->buckets[_hd_bkt], _hd_hh_del); \ 273 _thh = (head)->hh.tbl->buckets[_bkt_i].hh_head; \ 285 if ((head)->hh.tbl->buckets[_bkt_i].count != _bkt_count) { \ 287 (head)->hh.tbl->buckets[_bkt_i].count, _bkt_count); \ [all …]
|
/freebsd/contrib/diff/src/ |
H A D | io.c | 53 static lin *buckets; variable 390 bucket = &buckets[h % nbuckets]; in find_and_hash_each_line() 400 bucket = &buckets[-1]; in find_and_hash_each_line() 845 if (PTRDIFF_MAX / sizeof *buckets <= nbuckets) in read_files() 847 buckets = zalloc ((nbuckets + 1) * sizeof *buckets); in read_files() 848 buckets++; in read_files() 856 free (buckets - 1); in read_files()
|
/freebsd/sys/netinet/ |
H A D | tcp_fastopen.c | 405 V_tcp_fastopen_ccache.buckets = in tcp_fastopen_init() 408 V_tcp_fastopen_ccache.buckets = V_tcp_fastopen_ccache_buckets; in tcp_fastopen_init() 410 V_tcp_fastopen_ccache.mask = V_tcp_fastopen_ccache.buckets - 1; in tcp_fastopen_init() 413 V_tcp_fastopen_ccache.base = malloc(V_tcp_fastopen_ccache.buckets * in tcp_fastopen_init() 417 for (i = 0; i < V_tcp_fastopen_ccache.buckets; i++) { in tcp_fastopen_init() 451 for (i = 0; i < V_tcp_fastopen_ccache.buckets; i++) { in tcp_fastopen_destroy() 815 for (i = 0; i < V_tcp_fastopen_ccache.buckets; in sysctl_net_inet_tcp_fastopen_ccache_bucket_limit() 839 for (i = 0; i < V_tcp_fastopen_ccache.buckets; i++) { in sysctl_net_inet_tcp_fastopen_client_enable() 849 for (i = 0; i < V_tcp_fastopen_ccache.buckets; i++) { in sysctl_net_inet_tcp_fastopen_client_enable() 1169 for (i = 0; i < V_tcp_fastopen_ccache.buckets; i++) { in sysctl_net_inet_tcp_fastopen_ccache_list() [all …]
|
H A D | ip_dummynet.h | 149 uint32_t buckets; /* buckets used for the queue hash table */ member 197 uint32_t buckets; /* number of buckets for the instances */ member
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_taskdeps.cpp | 89 h->buckets = (kmp_dephash_entry **)(h + 1); in __kmp_dephash_extend() 96 h->buckets[i] = NULL; in __kmp_dephash_extend() 102 for (entry = current_dephash->buckets[i]; entry; entry = next) { in __kmp_dephash_extend() 107 entry->next_in_bucket = h->buckets[new_bucket]; in __kmp_dephash_extend() 111 h->buckets[new_bucket] = entry; in __kmp_dephash_extend() 148 h->buckets = (kmp_dephash_entry **)(h + 1); in __kmp_dephash_create() 152 h->buckets[i] = 0; in __kmp_dephash_create() 168 for (entry = h->buckets[bucket]; entry; entry = entry->next_in_bucket) in __kmp_dephash_find() 190 entry->next_in_bucket = h->buckets[bucket]; in __kmp_dephash_find() 191 h->buckets[bucket] = entry; in __kmp_dephash_find() [all …]
|
H A D | kmp_taskdeps.h | 59 if (h->buckets[i]) { in __kmp_dephash_free_entries() 61 for (kmp_dephash_entry_t *entry = h->buckets[i]; entry; entry = next) { in __kmp_dephash_free_entries() 76 h->buckets[i] = 0; in __kmp_dephash_free_entries()
|
/freebsd/contrib/bearssl/test/ |
H A D | test_x509.c | 201 ht_elt **buckets; member 214 ht->buckets = xmalloc(ht->num_buckets * sizeof(ht_elt *)); in HT_new() 216 ht->buckets[u] = NULL; in HT_new() 280 for (e = ht->buckets[u]; e != NULL; e = f) { in HT_expand() 291 xfree(ht->buckets); in HT_expand() 292 ht->buckets = new_buckets; in HT_expand() 305 prev = &ht->buckets[k]; in HT_put() 329 e->next = ht->buckets[k]; in HT_put() 330 ht->buckets[k] = e; in HT_put() 356 for (e = ht->buckets[k]; e != NULL; e = e->next) { in HT_get() [all …]
|
/freebsd/sbin/ipf/ipfstat/ |
H A D | ipfstat.c | 1114 u_int *buckets; in showstatestats() local 1122 sz = sizeof(*buckets) * ipsp->iss_state_size; in showstatestats() 1123 buckets = (u_int *)malloc(sz); in showstatestats() 1131 table.ita_table = buckets; in showstatestats() 1135 free(buckets); in showstatestats() 1139 if (kmemcpy((char *)buckets, in showstatestats() 1141 free(buckets); in showstatestats() 1226 if (buckets[i] > maxlen) in showstatestats() 1227 maxlen = buckets[i]; in showstatestats() 1228 if (buckets[i] < minlen) in showstatestats() [all …]
|
/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 128 memset(buckets, 0, n * sizeof(buckets[0])); in split_u64() 130 buckets[i] = strtoull(v, NULL, 10); in split_u64()
|
/freebsd/sbin/ipfw/ |
H A D | dummynet.c | 56 { "buckets", TOK_BUCKETS }, 517 printf("%s %s%s %d queues (%d buckets) %s\n", in print_flowset_parms() 518 prefix, qs, plr, fs->oid.id, fs->buckets, red); in print_flowset_parms() 521 printf("q%05d %s%s %d flows (%d buckets) sched %d " in print_flowset_parms() 523 fs->fs_nr, qs, plr, fs->oid.id, fs->buckets, in print_flowset_parms() 602 printf(" sched %d type %s flags 0x%x %d buckets %d active\n", in list_pipes() 604 s->name, s->flags, s->buckets, s->oid.id); in list_pipes() 1295 uint32_t _foo = 0, *flags = &_foo , *buckets = &_foo; in ipfw_config_pipe() local 1355 buckets = &sch->buckets; in ipfw_config_pipe() [all...] |
/freebsd/contrib/tcsh/nls/ukrainian/ |
H A D | set13 | 4 2 %d hash buckets of %d bits each\n
|
/freebsd/contrib/tcsh/nls/russian/ |
H A D | set13 | 4 2 %d hash buckets of %d bits each\n
|
/freebsd/contrib/tcsh/nls/greek/ |
H A D | set13 | 4 2 %d hash buckets με %d bits το καθένα\n
|
/freebsd/contrib/tcsh/nls/et/ |
H A D | set13 | 4 2 %d hash buckets of %d bits each\n
|