Home
last modified time | relevance | path

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

/linux/tools/perf/bench/
H A Dfutex.c20 if (params->nbuckets < 0) in futex_set_nbuckets_param()
23 ret = prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_SET_SLOTS, params->nbuckets, 0); in futex_set_nbuckets_param()
26 params->nbuckets, ret); in futex_set_nbuckets_param()
37 if (params->nbuckets >= 0) { in futex_print_nbuckets()
38 if (ret != params->nbuckets) { in futex_print_nbuckets()
44 printf("Requested: %d in usage: %d\n", params->nbuckets, ret); in futex_print_nbuckets()
47 if (params->nbuckets == 0) in futex_print_nbuckets()
51 params->nbuckets); in futex_print_nbuckets()
H A Dfutex-wake.c45 .nbuckets = -1,
54 OPT_INTEGER( 'b', "buckets", &params.nbuckets, "Specify amount of hash buckets"),
H A Dfutex-lock-pi.c44 .nbuckets = -1,
49 OPT_INTEGER( 'b', "buckets", &params.nbuckets, "Specify amount of hash buckets"),
H A Dfutex-hash.c54 .nbuckets = -1,
58 OPT_INTEGER( 'b', "buckets", &params.nbuckets, "Specify amount of hash buckets"),
H A Dfutex-requeue.c45 .nbuckets = -1,
54 OPT_INTEGER( 'b', "buckets", &params.nbuckets, "Specify amount of hash buckets"),
H A Dfutex-wake-parallel.c61 .nbuckets = -1,
65 OPT_INTEGER( 'b', "buckets", &params.nbuckets, "Specify amount of hash buckets"),
H A Dfutex.h29 int nbuckets; member
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool_rmon.sh73 local nbuckets=0
88 if ! bucket_test $iface $neigh $set $nbuckets ${bucket[0]}; then
93 nbuckets=$((nbuckets + 1))
97 if [ $nbuckets -eq 0 ]; then
/linux/fs/nfs/
H A Dpnfs_nfs.c107 p->nbuckets = n; in pnfs_alloc_commit_array()
262 unsigned int nbuckets, in pnfs_bucket_scan_array() argument
268 for (i = 0; i < nbuckets && max != 0; i++) { in pnfs_bucket_scan_array()
291 array->nbuckets, max); in pnfs_generic_scan_commit_lists()
307 unsigned int nbuckets, in pnfs_bucket_recover_commit_reqs() argument
316 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_recover_commit_reqs()
346 array->nbuckets, in pnfs_generic_recover_commit_reqs()
386 unsigned int nbuckets, in pnfs_generic_retry_commit() argument
394 for (bucket = buckets; idx < nbuckets; bucket++, idx++) { in pnfs_generic_retry_commit()
408 unsigned int nbuckets, in pnfs_bucket_alloc_ds_commits() argument
[all …]
/linux/drivers/md/bcache/
H A Dalloc.c87 unsigned long next = c->nbuckets * c->cache->sb.bucket_size / 1024; in bch_rescale_priorities()
217 ca->fifo_last_bucket >= ca->sb.nbuckets) in invalidate_buckets_fifo()
225 if (++checked >= ca->sb.nbuckets) { in invalidate_buckets_fifo()
243 n %= (size_t) (ca->sb.nbuckets - ca->sb.first_bucket); in invalidate_buckets_random()
251 if (++checked >= ca->sb.nbuckets / 2) { in invalidate_buckets_random()
462 if (ca->set->avail_nbuckets < ca->set->nbuckets) { in __bch_bucket_free()
H A Dsysfs.c68 read_attribute(nbuckets);
1037 sysfs_print(nbuckets, ca->sb.nbuckets); in SHOW()
1055 size_t n = ca->sb.nbuckets, i; in SHOW()
1063 ca->sb.nbuckets)); in SHOW()
1115 unused * 100 / (size_t) ca->sb.nbuckets, in SHOW()
1116 available * 100 / (size_t) ca->sb.nbuckets, in SHOW()
1117 dirty * 100 / (size_t) ca->sb.nbuckets, in SHOW()
1118 meta * 100 / (size_t) ca->sb.nbuckets, sum, in SHOW()
H A Dsuper.c98 sb->nbuckets = le64_to_cpu(s->nbuckets); in read_super_common()
109 if (sb->nbuckets > LONG_MAX) in read_super_common()
113 if (sb->nbuckets < 1 << 7) in read_super_common()
134 sb->bucket_size * sb->nbuckets) in read_super_common()
153 if (sb->first_bucket + sb->keys > sb->nbuckets) in read_super_common()
649 b < ca->buckets + ca->sb.nbuckets && d < end; in bch_prio_write()
700 b < ca->buckets + ca->sb.nbuckets; in prio_read()
1989 c->nbuckets = ca->sb.nbuckets; in run_cache_set()
2077 ca->sb.keys = clamp_t(int, ca->sb.nbuckets >> 7, in run_cache_set()
2289 btree_buckets = clamp_t(size_t, ca->sb.nbuckets >> 7, in cache_alloc()
[all …]
H A Dbcache_ondisk.h189 __le64 nbuckets; /* device size */ member
249 __u64 nbuckets; /* device size */ member
H A Dbcache.h634 size_t nbuckets; member
803 DIV_ROUND_UP((size_t) (ca)->sb.nbuckets, prios_per_bucket(ca))
900 b < (ca)->buckets + (ca)->sb.nbuckets; b++)
H A Dextents.c59 bucket >= ca->sb.nbuckets) in __ptr_invalid()
82 if (bucket >= ca->sb.nbuckets) in bch_ptr_status()
139 if (n >= b->c->cache->sb.first_bucket && n < b->c->cache->sb.nbuckets) in bch_bkey_dump()
H A Dbtree.h197 atomic_set(&c->sectors_to_gc, c->cache->sb.bucket_size * c->nbuckets / 16); in set_gc_sectors()
H A Dbtree.c1302 stats->in_use = (c->nbuckets - c->avail_nbuckets) * 100 / c->nbuckets; in bch_update_bucket_in_use()
/linux/kernel/bpf/
H A Dbpf_local_storage.c865 u32 nbuckets; in bpf_local_storage_map_alloc() local
873 nbuckets = roundup_pow_of_two(num_possible_cpus()); in bpf_local_storage_map_alloc()
875 nbuckets = max_t(u32, 2, nbuckets); in bpf_local_storage_map_alloc()
876 smap->bucket_log = ilog2(nbuckets); in bpf_local_storage_map_alloc()
878 smap->buckets = bpf_map_kvcalloc(&smap->map, nbuckets, in bpf_local_storage_map_alloc()
885 for (i = 0; i < nbuckets; i++) { in bpf_local_storage_map_alloc()
/linux/lib/
H A Drhashtable.c149 size_t nbuckets, in nested_bucket_table_alloc() argument
156 if (nbuckets < (1 << (shift + 1))) in nested_bucket_table_alloc()
172 tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; in nested_bucket_table_alloc()
178 size_t nbuckets, in bucket_table_alloc() argument
187 kvmalloc_node_align_noprof(struct_size(tbl, buckets, nbuckets), in bucket_table_alloc()
190 size = nbuckets; in bucket_table_alloc()
193 tbl = nested_bucket_table_alloc(ht, nbuckets, gfp); in bucket_table_alloc()
194 nbuckets = 0; in bucket_table_alloc()
209 for (i = 0; i < nbuckets; i++) in bucket_table_alloc()