Searched refs:nr_counters (Results 1 – 6 of 6) sorted by relevance
/linux/include/linux/ |
H A D | percpu_counter.h | 34 gfp_t gfp, u32 nr_counters, 37 #define percpu_counter_init_many(fbc, value, gfp, nr_counters) \ argument 41 __percpu_counter_init_many(fbc, value, gfp, nr_counters,\ 49 void percpu_counter_destroy_many(struct percpu_counter *fbc, u32 nr_counters); 141 u32 nr_counters) in percpu_counter_init_many() argument 145 for (i = 0; i < nr_counters; i++) in percpu_counter_init_many() 158 u32 nr_counters) in percpu_counter_destroy_many() argument
|
/linux/lib/ |
H A D | percpu_counter.c | 189 gfp_t gfp, u32 nr_counters, in __percpu_counter_init_many() argument 198 counters = __alloc_percpu_gfp(nr_counters * counter_size, in __percpu_counter_init_many() 205 for (i = 0; i < nr_counters; i++) { in __percpu_counter_init_many() 219 for (i = 0; i < nr_counters; i++) in __percpu_counter_init_many() 227 void percpu_counter_destroy_many(struct percpu_counter *fbc, u32 nr_counters) in percpu_counter_destroy_many() argument 238 for (i = 0; i < nr_counters; i++) in percpu_counter_destroy_many() 243 for (i = 0; i < nr_counters; i++) in percpu_counter_destroy_many() 250 for (i = 0; i < nr_counters; i++) in percpu_counter_destroy_many()
|
/linux/fs/bcachefs/ |
H A D | disk_accounting.c | 305 .nr_counters = bch2_accounting_counters(a.k), in __bch2_accounting_mem_insert() 306 .v[0] = __alloc_percpu_gfp(n.nr_counters * sizeof(u64), in __bch2_accounting_mem_insert() 314 n.v[1] = __alloc_percpu_gfp(n.nr_counters * sizeof(u64), in __bch2_accounting_mem_insert() 352 for (unsigned i = 0; i < e->nr_counters; i++) in accounting_mem_entry_is_zero() 442 sizeof(u64) * i->nr_counters); in bch2_fs_accounting_read() 448 set_bkey_val_u64s(&a_out->k, i->nr_counters); in bch2_fs_accounting_read() 451 a_out->v.d, i->nr_counters, false); in bch2_fs_accounting_read() 481 for (unsigned j = 0; j < acc->k.data[i].nr_counters; j++) in bch2_fs_accounting_to_text() 505 e->v[1] = __alloc_percpu_gfp(e->nr_counters * sizeof(u64), in bch2_gc_accounting_start() 548 unsigned nr = e->nr_counters; in bch2_gc_accounting_done() [all …]
|
H A D | disk_accounting_types.h | 10 unsigned nr_counters; member
|
H A D | disk_accounting.h | 166 EBUG_ON(bch2_accounting_counters(a.k) != e->nr_counters); in bch2_accounting_mem_mod_locked() 191 nr = min_t(unsigned, nr, e->nr_counters); in bch2_accounting_mem_read_counters()
|
/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | pmu_counters_test.c | 359 uint8_t nr_counters, uint32_t or_mask) in guest_rd_wr_counters() argument 377 const bool expect_success = i < nr_counters || (or_mask & BIT(i)); in guest_rd_wr_counters()
|