Searched refs:cpu_cnt (Results 1 – 12 of 12) sorted by relevance
/Linux-v5.15/block/ |
D | blk-cgroup-rwstat.h | 27 struct percpu_counter cpu_cnt[BLKG_RWSTAT_NR]; member 39 percpu_counter_sum_positive(&rwstat->cpu_cnt[idx]); in blkg_rwstat_read_counter() 67 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_DISCARD]; in blkg_rwstat_add() 69 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_WRITE]; in blkg_rwstat_add() 71 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_READ]; in blkg_rwstat_add() 76 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC]; in blkg_rwstat_add() 78 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC]; in blkg_rwstat_add() 96 percpu_counter_sum_positive(&rwstat->cpu_cnt[i]); in blkg_rwstat_read() 124 percpu_counter_set(&rwstat->cpu_cnt[i], 0); in blkg_rwstat_reset() 143 sum[i] = percpu_counter_sum_positive(&from->cpu_cnt[i]); in blkg_rwstat_add_aux()
|
D | blk-cgroup-rwstat.c | 13 ret = percpu_counter_init(&rwstat->cpu_cnt[i], 0, gfp); in blkg_rwstat_init() 16 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_init() 30 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_exit()
|
D | bfq-cgroup.c | 23 ret = percpu_counter_init(&stat->cpu_cnt, 0, gfp); in bfq_stat_init() 33 percpu_counter_destroy(&stat->cpu_cnt); in bfq_stat_exit() 46 percpu_counter_add_batch(&stat->cpu_cnt, val, BLKG_STAT_CPU_BATCH); in bfq_stat_add() 55 return percpu_counter_sum_positive(&stat->cpu_cnt); in bfq_stat_read() 64 percpu_counter_set(&stat->cpu_cnt, 0); in bfq_stat_reset()
|
D | bfq-iosched.h | 833 struct percpu_counter cpu_cnt; member
|
/Linux-v5.15/tools/testing/selftests/bpf/benchs/ |
D | bench_ringbufs.c | 474 int cpu_cnt; /* number of allocated CPU buffers */ member 495 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1); in perfbuf_custom_consumer()
|
/Linux-v5.15/tools/bpf/bpftool/ |
D | map_perf_ring.c | 197 opts.cpu_cnt = ctx.all_cpus ? 0 : 1; in do_event_pipe()
|
/Linux-v5.15/tools/power/x86/intel-speed-select/ |
D | isst.h | 190 int *cpu_cnt);
|
D | isst-config.c | 539 static int cpu_cnt[MAX_PACKAGE_COUNT][MAX_DIE_PER_PACKAGE]; variable 572 cpu_cnt[pkg_id][die_id]++; in set_cpu_present_cpu_mask() 602 return cpu_cnt[pkg_id][die_id]; in get_cpu_count() 686 cpu_set_t *core_cpumask, int *cpu_cnt) in set_cpu_mask_from_punit_coremask() argument 691 *cpu_cnt = 0; in set_cpu_mask_from_punit_coremask() 714 *cpu_cnt = cnt; in set_cpu_mask_from_punit_coremask()
|
/Linux-v5.15/tools/lib/bpf/ |
D | libbpf.c | 9801 int cpu_cnt; member 9826 int cpu_cnt; /* number of allocated CPU buffers */ member 9854 for (i = 0; i < pb->cpu_cnt; i++) { in perf_buffer__free() 9953 p.cpu_cnt = opts->cpu_cnt; in perf_buffer__new_raw() 10022 if (p->cpu_cnt > 0) { in __perf_buffer__new() 10023 pb->cpu_cnt = p->cpu_cnt; in __perf_buffer__new() 10025 pb->cpu_cnt = libbpf_num_possible_cpus(); in __perf_buffer__new() 10026 if (pb->cpu_cnt < 0) { in __perf_buffer__new() 10027 err = pb->cpu_cnt; in __perf_buffer__new() 10030 if (map.max_entries && map.max_entries < pb->cpu_cnt) in __perf_buffer__new() [all …]
|
D | libbpf.h | 707 int cpu_cnt; member
|
/Linux-v5.15/drivers/staging/qlge/ |
D | qlge_main.c | 3922 int cpu_cnt = min_t(int, MAX_CPUS, num_online_cpus()); in qlge_configure_rings() local 3931 qdev->intr_count = cpu_cnt; in qlge_configure_rings() 3935 qdev->tx_ring_count = cpu_cnt; in qlge_configure_rings() 3959 rx_ring->cpu = i % cpu_cnt; /* CPU to run handler on. */ in qlge_configure_rings()
|
/Linux-v5.15/drivers/scsi/lpfc/ |
D | lpfc_init.c | 12791 unsigned int cpu = 0, cpu_cnt = 0, cpu_select = nr_cpu_ids; in lpfc_sli4_enable_msix() local 12804 cpu_cnt = cpumask_weight(aff_mask); in lpfc_sli4_enable_msix() 12805 vectors = min(phba->cfg_irq_chann, cpu_cnt); in lpfc_sli4_enable_msix()
|