Home
last modified time | relevance | path

Searched refs:num_cpus (Results 1 – 25 of 103) sorted by relevance

12345

/linux-6.6.21/drivers/net/ethernet/freescale/dpaa/
Ddpaa_ethtool.c136 static void copy_stats(struct dpaa_percpu_priv *percpu_priv, int num_cpus, in copy_stats() argument
139 int num_values = num_cpus + 1; in copy_stats()
144 data[crr++ * num_values + num_cpus] += percpu_priv->in_interrupt; in copy_stats()
147 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_packets; in copy_stats()
150 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_packets; in copy_stats()
153 data[crr++ * num_values + num_cpus] += percpu_priv->tx_confirm; in copy_stats()
156 data[crr++ * num_values + num_cpus] += percpu_priv->tx_frag_skbuffs; in copy_stats()
159 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_errors; in copy_stats()
162 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_errors; in copy_stats()
165 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_dropped; in copy_stats()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dfor_each.c17 __u32 key, num_cpus; in test_hash_map() local
39 num_cpus = bpf_num_possible_cpus(); in test_hash_map()
40 percpu_val_sz = sizeof(__u64) * num_cpus; in test_hash_map()
46 for (i = 0; i < num_cpus; i++) in test_hash_map()
67 ASSERT_LT(skel->bss->cpu, num_cpus, "num_cpus"); in test_hash_map()
79 __u32 key, num_cpus, max_entries; in test_array_map() local
109 num_cpus = bpf_num_possible_cpus(); in test_array_map()
110 percpu_val_sz = sizeof(__u64) * num_cpus; in test_array_map()
116 for (i = 0; i < num_cpus; i++) in test_array_map()
/linux-6.6.21/arch/sparc/kernel/
Dcpumap.c35 int num_cpus; /* Number of CPUs in this hierarchy */ member
190 int num_cpus[CPUINFO_LVL_MAX]; in build_cpuinfo_tree() local
220 node->num_cpus = 1; in build_cpuinfo_tree()
230 num_cpus[level] = 1; in build_cpuinfo_tree()
253 node->num_cpus = num_cpus[level]; in build_cpuinfo_tree()
254 num_cpus[level] = 1; in build_cpuinfo_tree()
257 node->num_cpus++; in build_cpuinfo_tree()
288 num_cpus[level]++; in build_cpuinfo_tree()
368 for (i = 0; i < cpuinfo_tree->nodes[0].num_cpus; i++) in _cpu_map_rebuild()
406 if (unlikely(root_node->num_cpus != num_online_cpus())) { in _map_to_cpu()
[all …]
/linux-6.6.21/drivers/acpi/
Dacpi_pad.c258 static void acpi_pad_idle_cpus(unsigned int num_cpus) in acpi_pad_idle_cpus() argument
262 num_cpus = min_t(unsigned int, num_cpus, num_online_cpus()); in acpi_pad_idle_cpus()
263 set_power_saving_task_num(num_cpus); in acpi_pad_idle_cpus()
397 int num_cpus; in acpi_pad_handle_notify() local
405 num_cpus = acpi_pad_pur(handle); in acpi_pad_handle_notify()
406 if (num_cpus < 0) { in acpi_pad_handle_notify()
410 acpi_pad_idle_cpus(num_cpus); in acpi_pad_handle_notify()
/linux-6.6.21/drivers/pci/controller/
Dpci-xgene-msi.c41 int num_cpus; member
164 return (hwirq % xgene_msi_ctrl.num_cpus); in hwirq_to_cpu()
203 msi->num_cpus, 0); in xgene_irq_domain_alloc()
205 bitmap_set(msi->bitmap, msi_irq, msi->num_cpus); in xgene_irq_domain_alloc()
231 bitmap_clear(msi->bitmap, hwirq, msi->num_cpus); in xgene_irq_domain_free()
375 for (i = cpu; i < NR_HW_IRQS; i += msi->num_cpus) { in xgene_msi_hwirq_alloc()
416 for (i = cpu; i < NR_HW_IRQS; i += msi->num_cpus) { in xgene_msi_hwirq_free()
451 xgene_msi->num_cpus = num_possible_cpus(); in xgene_msi_probe()
/linux-6.6.21/tools/testing/selftests/net/
Dtoeplitz.c82 static int num_cpus; variable
249 for (i = 0; i < num_cpus; i++) in process_rings()
374 if (cfg_num_queues || num_cpus > 256 || in create_ring()
403 for (i = 0; i < num_cpus; i++) { in setup_rings()
409 for (i = 0; i < num_cpus; i++) in setup_rings()
417 for (i = 0; i < num_cpus; i++) { in cleanup_rings()
555 num_cpus = get_nprocs(); in parse_opts()
556 if (num_cpus > RSS_MAX_CPUS) in parse_opts()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dbpf_iter_bpf_percpu_array_map.c23 volatile const __u32 num_cpus = 0; variable
41 for (i = 0; i < num_cpus; i++) { in dump_bpf_percpu_array_map()
Dbpf_iter_bpf_percpu_hash_map.c23 volatile const __u32 num_cpus = 0; variable
45 for (i = 0; i < num_cpus; i++) { in dump_bpf_percpu_hash_map()
/linux-6.6.21/drivers/infiniband/sw/siw/
Dsiw_main.c166 int i, num_cpus, cpu, min_use, node = sdev->numa_node, tx_cpu = -1; in siw_get_tx_cpu() local
173 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu()
174 if (!num_cpus) { in siw_get_tx_cpu()
177 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu()
179 if (!num_cpus) in siw_get_tx_cpu()
184 for (i = 0, min_use = SIW_MAX_QP; i < num_cpus; in siw_get_tx_cpu()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_irq.c139 int num_cpus, hw_num_msix, v_other, v_wanted, v_actual; in ice_ena_msix_range() local
144 num_cpus = num_online_cpus(); in ice_ena_msix_range()
159 pf->num_lan_msix = num_cpus; in ice_ena_msix_range()
164 pf->num_rdma_msix = num_cpus + ICE_RDMA_NUM_AEQ_MSIX; in ice_ena_msix_range()
/linux-6.6.21/drivers/thermal/
Dcpufreq_cooling.c265 unsigned int freq, num_cpus, idx; in cpufreq_state2power() local
272 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); in cpufreq_state2power()
276 *power = cpu_freq_to_power(cpufreq_cdev, freq) * num_cpus; in cpufreq_state2power()
354 unsigned int num_cpus = cpumask_weight(cpufreq_cdev->policy->related_cpus); in allocate_idle_time() local
356 cpufreq_cdev->idle_time = kcalloc(num_cpus, in allocate_idle_time()
/linux-6.6.21/tools/perf/tests/
Dexpr.c73 double val, num_cpus_online, num_cpus, num_cores, num_dies, num_packages; in test__expr() local
232 TEST_ASSERT_VAL("#num_cpus", expr__parse(&num_cpus, ctx, "#num_cpus") == 0); in test__expr()
233 TEST_ASSERT_VAL("#num_cpus >= #num_cpus_online", num_cpus >= num_cpus_online); in test__expr()
235 TEST_ASSERT_VAL("#num_cpus >= #num_cores", num_cpus >= num_cores); in test__expr()
/linux-6.6.21/arch/parisc/kernel/
Dalternative.c28 int num_cpus = num_present_cpus(); in apply_alternatives() local
32 ((num_cpus == 1) ? ALT_COND_NO_SMP : 0) | in apply_alternatives()
/linux-6.6.21/arch/powerpc/platforms/pseries/
Drtas-fadump.c316 u32 num_cpus, *note_buf; in rtas_fadump_build_cpu_notes() local
337 num_cpus = be32_to_cpu(*((__be32 *)(vaddr))); in rtas_fadump_build_cpu_notes()
338 pr_debug("NumCpus : %u\n", num_cpus); in rtas_fadump_build_cpu_notes()
342 rc = fadump_setup_cpu_notes_buf(num_cpus); in rtas_fadump_build_cpu_notes()
351 for (i = 0; i < num_cpus; i++) { in rtas_fadump_build_cpu_notes()
/linux-6.6.21/sound/soc/intel/boards/
Dsof_ssp_amp.c235 links[id].num_cpus = 1; in sof_card_dai_links_create()
258 links[id].num_cpus = 1; in sof_card_dai_links_create()
282 links[id].num_cpus = 1; in sof_card_dai_links_create()
312 links[id].num_cpus = 1; in sof_card_dai_links_create()
362 links[id].num_cpus = 1; in sof_card_dai_links_create()
Dsof_cs42l42.c337 links[*id].num_cpus = 1; in create_spk_amp_dai_links()
375 links[*id].num_cpus = 1; in create_hp_codec_dai_links()
417 links[*id].num_cpus = 1; in create_dmic_dai_links()
458 links[*id].num_cpus = 1; in create_hdmi_dai_links()
515 links[*id].num_cpus = 1; in create_bt_offload_dai_links()
Dsof_nau8825.c385 links[id].num_cpus = 1; in sof_card_dai_links_create()
413 links[id].num_cpus = 1; in sof_card_dai_links_create()
441 links[id].num_cpus = 1; in sof_card_dai_links_create()
505 links[id].num_cpus = 1; in sof_card_dai_links_create()
535 links[id].num_cpus = 1; in sof_card_dai_links_create()
Dsof_pcm512x.c257 links[id].num_cpus = 1; in sof_card_dai_links_create()
291 links[id].num_cpus = 1; in sof_card_dai_links_create()
318 links[id].num_cpus = 1; in sof_card_dai_links_create()
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dopal-fadump.c423 u32 num_cpus = 1, *note_buf; in opal_fadump_build_cpu_notes() local
430 num_cpus = (fadump_conf->cpu_state_data_size / size_per_thread); in opal_fadump_build_cpu_notes()
435 rc = fadump_setup_cpu_notes_buf(num_cpus); in opal_fadump_build_cpu_notes()
455 pr_debug("NumCpus : %u\n", num_cpus); in opal_fadump_build_cpu_notes()
459 for (i = 0; i < num_cpus; i++, bufp += size_per_thread) { in opal_fadump_build_cpu_notes()
Dopal-core.c35 u32 num_cpus; member
246 pr_debug("NumCpus : %u\n", oc_conf->num_cpus); in opalcore_append_cpu_notes()
258 for (i = 0; i < oc_conf->num_cpus; i++, bufp += size_per_thread) { in opalcore_append_cpu_notes()
315 cpu_notes_size = ((oc_conf->num_cpus * (CRASH_CORE_NOTE_HEAD_BYTES + in create_opalcore()
557 oc_conf->num_cpus = (oc_conf->cpu_state_data_size / in opalcore_config_init()
/linux-6.6.21/kernel/power/
Denergy_model.c201 int cpu, ret, num_cpus; in em_create_pd() local
204 num_cpus = cpumask_weight(cpus); in em_create_pd()
207 if (num_cpus > EM_MAX_NUM_CPUS) { in em_create_pd()
/linux-6.6.21/tools/perf/util/bpf_skel/
Dbperf_cgroup.bpf.c59 const volatile __u32 num_cpus = 1; variable
179 key = idx * num_cpus + cpu; in bperf_cgroup_count()
/linux-6.6.21/sound/soc/amd/acp/
Dacp-mach-common.c1352 links[i].num_cpus = ARRAY_SIZE(sof_sp); in acp_sofdsp_dai_links_create()
1389 links[i].num_cpus = ARRAY_SIZE(sof_hs); in acp_sofdsp_dai_links_create()
1421 links[i].num_cpus = ARRAY_SIZE(sof_sp); in acp_sofdsp_dai_links_create()
1424 links[i].num_cpus = ARRAY_SIZE(sof_sp_virtual); in acp_sofdsp_dai_links_create()
1457 links[i].num_cpus = ARRAY_SIZE(sof_hs_virtual); in acp_sofdsp_dai_links_create()
1499 links[i].num_cpus = ARRAY_SIZE(sof_dmic); in acp_sofdsp_dai_links_create()
1537 links[i].num_cpus = ARRAY_SIZE(i2s_sp); in acp_legacy_dai_links_create()
1566 links[i].num_cpus = ARRAY_SIZE(i2s_hs); in acp_legacy_dai_links_create()
1600 links[i].num_cpus = ARRAY_SIZE(i2s_sp); in acp_legacy_dai_links_create()
1630 links[i].num_cpus = ARRAY_SIZE(i2s_hs); in acp_legacy_dai_links_create()
[all …]
/linux-6.6.21/sound/soc/
Dsoc-generic-dmaengine-pcm.c57 if (rtd->dai_link->num_cpus > 1) { in snd_dmaengine_pcm_prepare_slave_config()
108 if (rtd->dai_link->num_cpus > 1) { in dmaengine_pcm_set_runtime_hwparams()
182 if (rtd->dai_link->num_cpus > 1) { in dmaengine_pcm_compat_request_channel()
/linux-6.6.21/arch/arm64/mm/
Dproc.S256 num_cpus .req w1
283 eor w17, w17, num_cpus
348 .unreq num_cpus

12345