Home
last modified time | relevance | path

Searched refs:nbuckets (Results 1 – 21 of 21) 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.h40 int nbuckets;
29 int nbuckets; global() member
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool_rmon.sh85 local nbuckets=0
99 if ! bucket_test "$iface" "$neigh" "$set" "$nbuckets" "${bucket[0]}"; then
104 nbuckets=$((nbuckets + 1))
108 if [ "$nbuckets" -eq 0 ]; then
/linux/fs/omfs/
H A Ddir.c27 int nbuckets = (dir->i_size - OMFS_DIR_START)/8; in omfs_get_bucket() local
28 int bucket = omfs_hash(name, namelen, nbuckets); in omfs_get_bucket()
218 int nbuckets = (inode->i_size - OMFS_DIR_START) / 8; in omfs_dir_is_empty() local
230 for (i = 0; i < nbuckets; i++, ptr++) in omfs_dir_is_empty()
414 int nbuckets; in omfs_readdir() local
425 nbuckets = (dir->i_size - OMFS_DIR_START) / 8; in omfs_readdir()
437 for (; hchain < nbuckets; hchain++) { in omfs_readdir()
/linux/fs/nfs/
H A Dpnfs_nfs.c110 p->nbuckets = n; in pnfs_alloc_commit_array()
265 unsigned int nbuckets, in pnfs_bucket_scan_array()
271 for (i = 0; i < nbuckets && max != 0; i++) { in pnfs_bucket_scan_array()
294 array->nbuckets, max); in pnfs_generic_scan_commit_lists()
310 unsigned int nbuckets, in pnfs_bucket_recover_commit_reqs()
319 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_recover_commit_reqs()
349 array->nbuckets, in pnfs_generic_recover_commit_reqs()
389 unsigned int nbuckets, in pnfs_generic_retry_commit()
397 for (bucket = buckets; idx < nbuckets; bucket++, idx++) { in pnfs_generic_retry_commit()
411 unsigned int nbuckets, in pnfs_bucket_alloc_ds_commits()
262 pnfs_bucket_scan_array(struct nfs_commit_info * cinfo,struct pnfs_commit_bucket * buckets,unsigned int nbuckets,int max) pnfs_bucket_scan_array() argument
307 pnfs_bucket_recover_commit_reqs(struct list_head * dst,struct pnfs_commit_bucket * buckets,unsigned int nbuckets,struct nfs_commit_info * cinfo) pnfs_bucket_recover_commit_reqs() argument
386 pnfs_generic_retry_commit(struct pnfs_commit_bucket * buckets,unsigned int nbuckets,struct nfs_commit_info * cinfo,unsigned int idx) pnfs_generic_retry_commit() argument
408 pnfs_bucket_alloc_ds_commits(struct list_head * list,struct pnfs_commit_bucket * buckets,unsigned int nbuckets,struct nfs_commit_info * cinfo) pnfs_bucket_alloc_ds_commits() argument
[all...]
H A Dinternal.h681 unsigned int nbuckets)
685 for (i = 0; i < nbuckets; i++) in nfs_write_verifier_cmp()
696 array->nbuckets); in nfs_io_gfp_mask()
649 pnfs_bucket_clear_pnfs_ds_commit_verifiers(struct pnfs_commit_bucket * buckets,unsigned int nbuckets) pnfs_bucket_clear_pnfs_ds_commit_verifiers() argument
/linux/kernel/bpf/
H A Dbpf_local_storage.c808 u32 nbuckets; in bpf_local_storage_map_alloc()
816 nbuckets = roundup_pow_of_two(num_possible_cpus()); in bpf_local_storage_map_free()
818 nbuckets = max_t(u32, 2, nbuckets); in bpf_local_storage_map_free()
819 smap->bucket_log = ilog2(nbuckets); in bpf_local_storage_map_free()
821 smap->buckets = bpf_map_kvcalloc(&smap->map, nbuckets, in bpf_local_storage_map_free()
828 for (i = 0; i < nbuckets; i++) { in bpf_local_storage_map_free()
778 u32 nbuckets; bpf_local_storage_map_alloc() local
/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 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/lib/
H A Drhashtable.c159 size_t nbuckets, in nested_bucket_table_alloc() argument
166 if (nbuckets < (1 << (shift + 1))) in nested_bucket_table_alloc()
182 tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; in nested_bucket_table_alloc()
188 size_t nbuckets, in bucket_table_alloc() argument
196 kvmalloc_node_align_noprof(struct_size(tbl, buckets, nbuckets), in bucket_table_alloc()
199 size = nbuckets; in bucket_table_alloc()
202 tbl = nested_bucket_table_alloc(ht, nbuckets, gfp); in bucket_table_alloc()
203 nbuckets = 0; in bucket_table_alloc()
220 for (i = 0; i < nbuckets; i++) in bucket_table_alloc()
/linux/include/linux/
H A Dnfs_xdr.h1347 unsigned int nbuckets; member
1348 struct pnfs_commit_bucket buckets[] __counted_by(nbuckets);