Searched refs:nr_keys (Results 1 - 12 of 12) sorted by relevance

/linux-master/fs/bcachefs/
H A Dbtree_key_cache.h8 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); local
9 size_t max_dirty = 1024 + nr_keys / 2;
17 size_t nr_keys = atomic_long_read(&c->btree_key_cache.nr_keys); local
18 size_t max_dirty = 4096 + (nr_keys * 3) / 4;
H A Dbtree_key_cache_types.h25 atomic_long_t nr_keys; member in struct:btree_key_cache
H A Dbtree_key_cache.c79 atomic_long_dec(&c->nr_keys);
368 atomic_long_inc(&bc->nr_keys);
921 long nr = atomic_long_read(&bc->nr_keys) -
946 while (atomic_long_read(&bc->nr_keys)) {
993 if (atomic_long_read(&bc->nr_keys))
994 panic("btree key cache shutdown error: nr_keys nonzero (%li)\n",
995 atomic_long_read(&bc->nr_keys));
1042 prt_printf(out, "nr_keys:\t%lu", atomic_long_read(&c->nr_keys));
H A Dbtree_update_interior.c1454 struct { unsigned nr_keys, val_u64s; } nr_keys[2]; local
1457 memset(&nr_keys, 0, sizeof(nr_keys));
1488 nr_keys[i].nr_keys++;
1489 nr_keys[i].val_u64s += bkeyp_val_u64s(&b->format, k);
1503 unsigned u64s = nr_keys[i].nr_keys * n[i]->data->format.key_u64s +
1504 nr_keys[
[all...]
H A Djournal_reclaim.c683 atomic_long_read(&c->btree_key_cache.nr_keys));
/linux-master/tools/testing/selftests/net/tcp_ao/
H A Dbench-lookups.c69 static const size_t nr_keys[] = { 512, 1024, 2048, 4096, 8192 }; variable
87 } bench_results[ARRAY_SIZE(nr_keys)];
213 for (i = 0; i < ARRAY_SIZE(nr_keys); i++) {
217 test_ips = malloc(nr_keys[i] * sizeof(union tcp_addr));
223 gen_test_ips(test_ips, nr_keys[i], false);
224 test_add_routes(test_ips, nr_keys[i]);
225 test_set_optmem(KERNEL_TCP_AO_KEY_SZ_ROUND_UP * nr_keys[i]);
226 server_apply_keys(lsk, test_ips, nr_keys[i]);
229 bench_connect_srv(lsk, test_ips, nr_keys[i]);
230 bench_connect_srv(lsk, test_ips, nr_keys[
[all...]
H A Dkey-management.c426 unsigned int nr_keys; member in struct:key_collection
483 static int init_default_key_collection(unsigned int nr_keys, bool randomized) argument
487 if (!nr_keys) {
498 if (nr_keys > 127)
501 collection.keys = reallocarray(collection.keys, nr_keys, key_sz);
505 memset(collection.keys, 0, nr_keys * key_sz);
506 collection.nr_keys = nr_keys;
507 while (nr_keys--)
508 init_key_in_collection(nr_keys, randomize
887 run_client(const char *tst_name, unsigned int port, unsigned int nr_keys, int current_index, int rnext_index, struct tcp_ao_counters *before, const size_t msg_sz, const size_t msg_nr) argument
932 start_client(const char *tst_name, unsigned int port, unsigned int nr_keys, int current_index, int rnext_index, struct tcp_ao_counters *before, const size_t msg_sz, const size_t msg_nr) argument
944 end_client(const char *tst_name, int sk, unsigned int nr_keys, int current_index, int rnext_index, struct tcp_ao_counters *start) argument
1021 client_non_matching(const char *tst_name, unsigned int port, unsigned int nr_keys, int current_index, int rnext_index, const size_t msg_sz, const size_t msg_nr) argument
1043 check_current_back(const char *tst_name, unsigned int port, unsigned int nr_keys, unsigned int current_index, unsigned int rnext_index, unsigned int rotate_to_index) argument
1073 roll_over_keys(const char *tst_name, unsigned int port, unsigned int nr_keys, unsigned int rotations, unsigned int current_index, unsigned int rnext_index) argument
1104 try_client_run(const char *tst_name, unsigned int port, unsigned int nr_keys, int current_index, int rnext_index) argument
1117 try_client_match(const char *tst_name, unsigned int port, unsigned int nr_keys, int current_index, int rnext_index) argument
[all...]
/linux-master/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c343 int err, nr_keys; local
370 nr_keys = test_get_ao_keys_nr(sk);
371 if (nr_keys < 0)
372 return nr_keys;
373 if (nr_keys == 0)
375 out->nr_keys = (size_t)nr_keys;
376 key_dump = calloc(nr_keys, key_dump_sz);
380 key_dump[0].nkeys = nr_keys;
390 out->key_cnts = calloc(nr_keys, sizeo
[all...]
H A Daolib.h462 size_t nr_keys; member in struct:tcp_ao_counters
/linux-master/drivers/md/bcache/
H A Dbcache_ondisk.h125 static inline struct bkey *bkey_idx(const struct bkey *k, unsigned int nr_keys) argument
129 return (struct bkey *) (d + nr_keys);
/linux-master/include/trace/events/
H A Dbcache.h233 __field(u32, nr_keys )
240 __entry->nr_keys = keys;
247 __entry->nr_keys)
/linux-master/tools/testing/selftests/bpf/
H A Dtest_maps.c478 /* nr_keys is not too large otherwise the test stresses percpu
481 unsigned int nr_keys = 2000; local
485 sizeof(bpf_percpu(values, 0)), nr_keys, NULL);
495 for (key = 0; key < nr_keys; key++)
498 for (key = 0; key < nr_keys; key++) {

Completed in 190 milliseconds