Home
last modified time | relevance | path

Searched refs:n_cpus (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.15/samples/bpf/
Dxdp_redirect_cpu_user.c143 int ret, i, n_cpus = libbpf_num_possible_cpus(); in mark_cpus_unavailable() local
144 __u32 invalid_cpu = n_cpus; in mark_cpus_unavailable()
146 for (i = 0; i < n_cpus; i++) { in mark_cpus_unavailable()
330 int n_cpus; in main() local
332 n_cpus = libbpf_num_possible_cpus(); in main()
367 if (bpf_map__set_max_entries(skel->maps.cpu_map, n_cpus) < 0) { in main()
374 if (bpf_map__set_max_entries(skel->maps.cpus_available, n_cpus) < 0) { in main()
381 cpu = calloc(n_cpus, sizeof(int)); in main()
450 if (add_cpu >= n_cpus) { in main()
/Linux-v5.15/drivers/gpu/drm/i915/gt/
Dselftest_migrate.c339 const unsigned int n_cpus = num_online_cpus() + 1; in threaded_migrate() local
345 thread = kcalloc(n_cpus, sizeof(*thread), GFP_KERNEL); in threaded_migrate()
349 for (i = 0; i < n_cpus; ++i) { in threaded_migrate()
368 for (i = 0; i < n_cpus; ++i) { in threaded_migrate()
/Linux-v5.15/tools/testing/selftests/vm/
Duserfaultfd.c160 unsigned long n_cpus) in uffd_stats_reset() argument
164 for (i = 0; i < n_cpus; i++) { in uffd_stats_reset()
172 static void uffd_stats_report(struct uffd_stats *stats, int n_cpus) in uffd_stats_report() argument
177 for (i = 0; i < n_cpus; i++) { in uffd_stats_report()
186 for (i = 0; i < n_cpus; i++) in uffd_stats_report()
192 for (i = 0; i < n_cpus; i++) in uffd_stats_report()
198 for (i = 0; i < n_cpus; i++) in uffd_stats_report()
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/
Dqed_dev.c2680 struct qed_ptt *p_ptt, u32 pwm_region_size, u32 n_cpus) in qed_hw_init_dpi_size() argument
2687 n_wids = max_t(u32, QED_MIN_WIDS, n_cpus); in qed_hw_init_dpi_size()
2726 u32 db_bar_size, n_cpus = 1; in qed_hw_init_pf_doorbell_bar() local
2769 n_cpus = num_present_cpus(); in qed_hw_init_pf_doorbell_bar()
2770 rc = qed_hw_init_dpi_size(p_hwfn, p_ptt, pwm_regsize, n_cpus); in qed_hw_init_pf_doorbell_bar()
2780 n_cpus = 1; in qed_hw_init_pf_doorbell_bar()
2781 rc = qed_hw_init_dpi_size(p_hwfn, p_ptt, pwm_regsize, n_cpus); in qed_hw_init_pf_doorbell_bar()
2787 p_hwfn->wid_count = (u16) n_cpus; in qed_hw_init_pf_doorbell_bar()