Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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.h809 struct percpu_counter cpu_cnt; member
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c474 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()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dmap_perf_ring.c197 opts.cpu_cnt = ctx.all_cpus ? 0 : 1; in do_event_pipe()
/kernel/linux/linux-5.10/tools/power/x86/intel-speed-select/
Disst.h190 int *cpu_cnt);
Disst-config.c507 static int cpu_cnt[MAX_PACKAGE_COUNT][MAX_DIE_PER_PACKAGE]; variable
540 cpu_cnt[pkg_id][die_id]++; in set_cpu_present_cpu_mask()
570 return cpu_cnt[pkg_id][die_id]; in get_cpu_count()
654 cpu_set_t *core_cpumask, int *cpu_cnt) in set_cpu_mask_from_punit_coremask() argument
659 *cpu_cnt = 0; in set_cpu_mask_from_punit_coremask()
682 *cpu_cnt = cnt; in set_cpu_mask_from_punit_coremask()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.c9956 int cpu_cnt; member
9981 int cpu_cnt; /* number of allocated CPU buffers */ member
10009 for (i = 0; i < pb->cpu_cnt; i++) { in perf_buffer__free()
10108 p.cpu_cnt = opts->cpu_cnt; in perf_buffer__new_raw()
10177 if (p->cpu_cnt > 0) { in __perf_buffer__new()
10178 pb->cpu_cnt = p->cpu_cnt; in __perf_buffer__new()
10180 pb->cpu_cnt = libbpf_num_possible_cpus(); in __perf_buffer__new()
10181 if (pb->cpu_cnt < 0) { in __perf_buffer__new()
10182 err = pb->cpu_cnt; in __perf_buffer__new()
10185 if (map.max_entries && map.max_entries < pb->cpu_cnt) in __perf_buffer__new()
[all …]
Dlibbpf.h584 int cpu_cnt; member
/kernel/linux/linux-5.10/drivers/staging/qlge/
Dqlge_main.c3940 int cpu_cnt = min(MAX_CPUS, (int)num_online_cpus()); in ql_configure_rings() local
3949 qdev->intr_count = cpu_cnt; in ql_configure_rings()
3953 qdev->tx_ring_count = cpu_cnt; in ql_configure_rings()
3977 rx_ring->cpu = i % cpu_cnt; /* CPU to run handler on. */ in ql_configure_rings()
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_init.c11517 unsigned int cpu = 0, cpu_cnt = 0, cpu_select = nr_cpu_ids; in lpfc_sli4_enable_msix() local
11530 cpu_cnt = cpumask_weight(aff_mask); in lpfc_sli4_enable_msix()
11531 vectors = min(phba->cfg_irq_chann, cpu_cnt); in lpfc_sli4_enable_msix()