Home
last modified time | relevance | path

Searched refs:cpu_cnt (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/block/
Dblk-cgroup-rwstat.h27 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()
Dblk-cgroup-rwstat.c13 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()
Dbfq-cgroup.c23 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()
Dbfq-iosched.h833 struct percpu_counter cpu_cnt; member
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dget_branch_snapshot.c7 static int cpu_cnt; variable
46 cpu_cnt = libbpf_num_possible_cpus(); in create_perf_events()
47 pfd_array = malloc(sizeof(int) * cpu_cnt); in create_perf_events()
49 cpu_cnt = 0; in create_perf_events()
53 for (cpu = 0; cpu < cpu_cnt; cpu++) { in create_perf_events()
67 for (cpu = 0; cpu < cpu_cnt; cpu++) { in close_perf_events()
/linux-6.1.9/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c470 int cpu_cnt; /* number of allocated CPU buffers */ member
491 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1); in perfbuf_custom_consumer()
/linux-6.1.9/tools/bpf/bpftool/
Dmap_perf_ring.c186 opts.cpu_cnt = ctx.all_cpus ? 0 : 1; in do_event_pipe()
/linux-6.1.9/tools/power/x86/intel-speed-select/
Disst.h196 int *cpu_cnt);
Disst-config.c586 static int cpu_cnt[MAX_PACKAGE_COUNT][MAX_DIE_PER_PACKAGE]; variable
611 return cpu_cnt[id->pkg][id->die]; in get_cpu_count()
660 cpu_cnt[pkg_id][die_id]++; in create_cpu_map()
700 cpu_set_t *core_cpumask, int *cpu_cnt) in set_cpu_mask_from_punit_coremask() argument
704 *cpu_cnt = 0; in set_cpu_mask_from_punit_coremask()
724 *cpu_cnt = cnt; in set_cpu_mask_from_punit_coremask()
/linux-6.1.9/tools/lib/bpf/
Dlibbpf.c11519 int cpu_cnt; member
11544 int cpu_cnt; /* number of allocated CPU buffers */ member
11572 for (i = 0; i < pb->cpu_cnt; i++) { in perf_buffer__free()
11687 p.cpu_cnt = OPTS_GET(opts, cpu_cnt, 0); in perf_buffer__new_raw()
11756 if (p->cpu_cnt > 0) { in __perf_buffer__new()
11757 pb->cpu_cnt = p->cpu_cnt; in __perf_buffer__new()
11759 pb->cpu_cnt = libbpf_num_possible_cpus(); in __perf_buffer__new()
11760 if (pb->cpu_cnt < 0) { in __perf_buffer__new()
11761 err = pb->cpu_cnt; in __perf_buffer__new()
11764 if (map.max_entries && map.max_entries < pb->cpu_cnt) in __perf_buffer__new()
[all …]
Dlibbpf.h1191 int cpu_cnt; member
/linux-6.1.9/drivers/staging/qlge/
Dqlge_main.c3918 int cpu_cnt = min_t(int, MAX_CPUS, num_online_cpus()); in qlge_configure_rings() local
3927 qdev->intr_count = cpu_cnt; in qlge_configure_rings()
3931 qdev->tx_ring_count = cpu_cnt; in qlge_configure_rings()
3955 rx_ring->cpu = i % cpu_cnt; /* CPU to run handler on. */ in qlge_configure_rings()
/linux-6.1.9/drivers/scsi/lpfc/
Dlpfc_init.c13011 unsigned int cpu = 0, cpu_cnt = 0, cpu_select = nr_cpu_ids; in lpfc_sli4_enable_msix() local
13024 cpu_cnt = cpumask_weight(aff_mask); in lpfc_sli4_enable_msix()
13025 vectors = min(phba->cfg_irq_chann, cpu_cnt); in lpfc_sli4_enable_msix()