Home
last modified time | relevance | path

Searched refs:buckets (Results 1 – 25 of 68) sorted by relevance

123

/freebsd/contrib/unbound/util/
H A Dtimehist.c78 hist->buckets[i].lower = last; in dosetup()
80 hist->buckets[i].upper = last; in dosetup()
81 hist->buckets[i].count = 0; in dosetup()
94 if(!hist->buckets) { in timehist_setup()
107 free(hist->buckets); in timehist_delete()
115 hist->buckets[i].count = 0; in timehist_clear()
123 hist->buckets[i].count++; in timehist_insert()
128 hist->buckets[hist->num-1].count++; in timehist_insert()
136 if(hist->buckets[i].count != 0) { in timehist_print()
159 if(hist->buckets[i].count != 0) { in timehist_log()
[all …]
H A Dtimehist.h67 struct th_buck* buckets; member
/freebsd/sys/netpfil/ipfw/
H A Ddn_heap.c371 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()
387 buckets = b_max; in dn_ht_init()
392 if (buckets <= ht->buckets) { in dn_ht_init()
393 ht->buckets = buckets; in dn_ht_init()
[all …]
H A Dip_dn_glue.c421 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 Dhash.c144 HashEntry **buckets = bmake_malloc(sizeof *buckets * n); in HashTable_Init() local
146 buckets[i] = NULL; in HashTable_Init()
148 t->buckets = buckets; in HashTable_Init()
162 HashEntry **buckets = t->buckets; in HashTable_Done() local
166 HashEntry *he = buckets[i]; in HashTable_Done()
174 free(t->buckets); in HashTable_Done()
176 t->buckets = NULL; in HashTable_Done()
216 HashEntry **oldBuckets = t->buckets; in HashTable_Enlarge()
239 t->buckets = newBuckets; in HashTable_Enlarge()
313 HashEntry **buckets = t->buckets; in HashIter_Next() local
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_entry_link_resolver.c79 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()
300 if (res->buckets[bucket] == le) in find_entry()
374 le->next = res->buckets[bucket]; in insert_entry()
376 res->buckets[bucket] = le; in insert_entry()
401 le = res->buckets[i]; in grow_hash()
402 res->buckets[i] = le->next; in grow_hash()
414 free(res->buckets); in grow_hash()
[all …]
/freebsd/usr.bin/du/
H A Ddu.c386 if (buckets == NULL) { in linkchk()
388 buckets = malloc(number_buckets * sizeof(buckets[0])); in linkchk()
389 if (buckets == NULL) in linkchk()
392 buckets[i] = NULL; in linkchk()
417 le = buckets[i]; in linkchk()
418 buckets[i] = le->next; in linkchk()
431 free(buckets); in linkchk()
432 buckets = new_buckets; in linkchk()
485 le->next = buckets[hash]; in linkchk()
487 if (buckets[hash] != NULL) in linkchk()
[all …]
/freebsd/sbin/dhclient/
H A Dhash.c57 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 Duthash.h102 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 Dipnat.c395 u_int *buckets; in dotable() local
400 if (buckets == NULL) { in dotable()
421 free(buckets); in dotable()
426 free(buckets); in dotable()
437 if (buckets[i] > maxlen) in dotable()
438 maxlen = buckets[i]; in dotable()
439 if (buckets[i] < minlen) in dotable()
440 minlen = buckets[i]; in dotable()
441 if (buckets[i] != 0) in dotable()
443 totallen += buckets[i]; in dotable()
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/
H A DTestBean.java206 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 Duthash.h103 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 Dio.c53 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 Dtcp_fastopen.c405 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 Dip_dummynet.h149 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 Dkmp_taskdeps.h59 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()
H A Dkmp_taskdeps.cpp89 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 …]
/freebsd/contrib/bearssl/test/
H A Dtest_x509.c201 ht_elt **buckets; member
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()
373 for (e = ht->buckets[u]; e != NULL; e = f) { in HT_clear()
381 ht->buckets[u] = NULL; in HT_clear()
[all …]
/freebsd/sbin/ipf/ipfstat/
H A Dipfstat.c1114 u_int *buckets; in showstatestats() local
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()
1229 minlen = buckets[i]; in showstatestats()
1230 totallen += buckets[i]; in showstatestats()
[all …]
/freebsd/contrib/tcsh/nls/ukrainian/
H A Dset134 2 %d hash buckets of %d bits each\n
/freebsd/usr.bin/systat/
H A Diolat.c123 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/contrib/tcsh/nls/russian/
H A Dset134 2 %d hash buckets of %d bits each\n
/freebsd/contrib/tcsh/nls/greek/
H A Dset134 2 %d hash buckets με %d bits το καθένα\n
/freebsd/sbin/ipfw/
H A Ddummynet.c518 prefix, qs, plr, fs->oid.id, fs->buckets, red); in print_flowset_parms()
523 fs->fs_nr, qs, plr, fs->oid.id, fs->buckets, in print_flowset_parms()
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()
1374 buckets = &fs->buckets; in ipfw_config_pipe()
1391 buckets = &sch->buckets; in ipfw_config_pipe()
1461 *buckets = strtoul(av[0], NULL, 0); in ipfw_config_pipe()
/freebsd/contrib/tcsh/nls/et/
H A Dset134 2 %d hash buckets of %d bits each\n

123