num_cpus 650 arch/ia64/kernel/iosapic.c int num_cpus, cpu_index, iosapic_index, numa_cpu, i = 0; num_cpus 659 arch/ia64/kernel/iosapic.c num_cpus = 0; num_cpus 662 arch/ia64/kernel/iosapic.c num_cpus++; num_cpus 665 arch/ia64/kernel/iosapic.c if (!num_cpus) num_cpus 669 arch/ia64/kernel/iosapic.c cpu_index = irq % num_cpus; num_cpus 171 arch/mips/netlogic/common/smp.c int num_cpus, i, ncore, node; num_cpus 182 arch/mips/netlogic/common/smp.c num_cpus = 1; num_cpus 190 arch/mips/netlogic/common/smp.c __cpu_number_map[i] = num_cpus; num_cpus 191 arch/mips/netlogic/common/smp.c __cpu_logical_map[num_cpus] = i; num_cpus 192 arch/mips/netlogic/common/smp.c set_cpu_possible(num_cpus, true); num_cpus 194 arch/mips/netlogic/common/smp.c cpumask_set_cpu(num_cpus, &nlm_get_node(node)->cpumask); num_cpus 195 arch/mips/netlogic/common/smp.c ++num_cpus; num_cpus 209 arch/mips/netlogic/common/smp.c nlm_threads_per_core, num_cpus); num_cpus 27 arch/parisc/kernel/alternative.c int num_cpus = num_online_cpus(); num_cpus 47 arch/parisc/kernel/alternative.c if ((cond & ALT_COND_NO_SMP) && (num_cpus != 1)) num_cpus 138 arch/powerpc/include/asm/fadump-internal.h s32 fadump_setup_cpu_notes_buf(u32 num_cpus); num_cpus 697 arch/powerpc/kernel/fadump.c s32 fadump_setup_cpu_notes_buf(u32 num_cpus) num_cpus 700 arch/powerpc/kernel/fadump.c fw_dump.cpu_notes_buf_size = num_cpus * sizeof(note_buf_t); num_cpus 436 arch/powerpc/platforms/85xx/smp.c int i, num_cpus = num_present_cpus(); num_cpus 441 arch/powerpc/platforms/85xx/smp.c while ( (atomic_read(&kexec_down_cpus) != (num_cpus - 1)) && num_cpus 35 arch/powerpc/platforms/powernv/opal-core.c u32 num_cpus; num_cpus 245 arch/powerpc/platforms/powernv/opal-core.c pr_debug("NumCpus : %u\n", oc_conf->num_cpus); num_cpus 257 arch/powerpc/platforms/powernv/opal-core.c for (i = 0; i < oc_conf->num_cpus; i++, bufp += size_per_thread) { num_cpus 314 arch/powerpc/platforms/powernv/opal-core.c cpu_notes_size = ((oc_conf->num_cpus * (CRASH_CORE_NOTE_HEAD_BYTES + num_cpus 554 arch/powerpc/platforms/powernv/opal-core.c oc_conf->num_cpus = (oc_conf->cpu_state_data_size / num_cpus 415 arch/powerpc/platforms/powernv/opal-fadump.c u32 num_cpus = 1, *note_buf; num_cpus 422 arch/powerpc/platforms/powernv/opal-fadump.c num_cpus = (fadump_conf->cpu_state_data_size / size_per_thread); num_cpus 427 arch/powerpc/platforms/powernv/opal-fadump.c rc = fadump_setup_cpu_notes_buf(num_cpus); num_cpus 447 arch/powerpc/platforms/powernv/opal-fadump.c pr_debug("NumCpus : %u\n", num_cpus); num_cpus 451 arch/powerpc/platforms/powernv/opal-fadump.c for (i = 0; i < num_cpus; i++, bufp += size_per_thread) { num_cpus 309 arch/powerpc/platforms/pseries/rtas-fadump.c u32 num_cpus, *note_buf; num_cpus 330 arch/powerpc/platforms/pseries/rtas-fadump.c num_cpus = be32_to_cpu(*((__be32 *)(vaddr))); num_cpus 331 arch/powerpc/platforms/pseries/rtas-fadump.c pr_debug("NumCpus : %u\n", num_cpus); num_cpus 335 arch/powerpc/platforms/pseries/rtas-fadump.c rc = fadump_setup_cpu_notes_buf(num_cpus); num_cpus 344 arch/powerpc/platforms/pseries/rtas-fadump.c for (i = 0; i < num_cpus; i++) { num_cpus 35 arch/sparc/kernel/cpumap.c int num_cpus; /* Number of CPUs in this hierarchy */ num_cpus 190 arch/sparc/kernel/cpumap.c int num_cpus[CPUINFO_LVL_MAX]; num_cpus 220 arch/sparc/kernel/cpumap.c node->num_cpus = 1; num_cpus 230 arch/sparc/kernel/cpumap.c num_cpus[level] = 1; num_cpus 253 arch/sparc/kernel/cpumap.c node->num_cpus = num_cpus[level]; num_cpus 254 arch/sparc/kernel/cpumap.c num_cpus[level] = 1; num_cpus 257 arch/sparc/kernel/cpumap.c node->num_cpus++; num_cpus 288 arch/sparc/kernel/cpumap.c num_cpus[level]++; num_cpus 368 arch/sparc/kernel/cpumap.c for (i = 0; i < cpuinfo_tree->nodes[0].num_cpus; i++) num_cpus 406 arch/sparc/kernel/cpumap.c if (unlikely(root_node->num_cpus != num_online_cpus())) { num_cpus 412 arch/sparc/kernel/cpumap.c return cpu_distribution_map[index % root_node->num_cpus]; num_cpus 591 arch/x86/include/asm/uv/uv_bau.h short num_cpus; num_cpus 597 arch/x86/include/asm/uv/uv_bau.h short num_cpus; num_cpus 145 arch/x86/include/uapi/asm/bootparam.h __u16 num_cpus; num_cpus 91 arch/x86/kernel/jailhouse.c for (cpu = 0; cpu < setup_data.num_cpus; cpu++) { num_cpus 1972 arch/x86/platform/uv/tlb_uv.c bdp->num_cpus++; num_cpus 1981 arch/x86/platform/uv/tlb_uv.c sdp->cpu_number[sdp->num_cpus] = cpu; num_cpus 1982 arch/x86/platform/uv/tlb_uv.c sdp->num_cpus++; num_cpus 1983 arch/x86/platform/uv/tlb_uv.c if (sdp->num_cpus > MAX_CPUS_PER_SOCKET) { num_cpus 1985 arch/x86/platform/uv/tlb_uv.c sdp->num_cpus); num_cpus 2029 arch/x86/platform/uv/tlb_uv.c for (i = 0; i < sdp->num_cpus; i++) { num_cpus 2038 arch/x86/platform/uv/tlb_uv.c bcp->cpus_in_uvhub = bdp->num_cpus; num_cpus 2039 arch/x86/platform/uv/tlb_uv.c bcp->cpus_in_socket = sdp->num_cpus; num_cpus 250 drivers/acpi/acpi_pad.c static void acpi_pad_idle_cpus(unsigned int num_cpus) num_cpus 254 drivers/acpi/acpi_pad.c num_cpus = min_t(unsigned int, num_cpus, num_online_cpus()); num_cpus 255 drivers/acpi/acpi_pad.c set_power_saving_task_num(num_cpus); num_cpus 392 drivers/acpi/acpi_pad.c int num_cpus; num_cpus 400 drivers/acpi/acpi_pad.c num_cpus = acpi_pad_pur(handle); num_cpus 401 drivers/acpi/acpi_pad.c if (num_cpus < 0) { num_cpus 405 drivers/acpi/acpi_pad.c acpi_pad_idle_cpus(num_cpus); num_cpus 1113 drivers/gpu/drm/vc4/vc4_hdmi.c dai_link->num_cpus = 1; num_cpus 188 drivers/infiniband/sw/siw/siw_main.c int i, num_cpus, cpu, min_use, node = sdev->numa_node, tx_cpu = -1; num_cpus 195 drivers/infiniband/sw/siw/siw_main.c num_cpus = cpumask_weight(tx_cpumask); num_cpus 196 drivers/infiniband/sw/siw/siw_main.c if (!num_cpus) { num_cpus 199 drivers/infiniband/sw/siw/siw_main.c num_cpus = cpumask_weight(tx_cpumask); num_cpus 201 drivers/infiniband/sw/siw/siw_main.c if (!num_cpus) num_cpus 206 drivers/infiniband/sw/siw/siw_main.c for (i = 0, min_use = SIW_MAX_QP; i < num_cpus; num_cpus 808 drivers/net/ethernet/amazon/ena/ena_admin_defs.h u16 num_cpus; num_cpus 2432 drivers/net/ethernet/amazon/ena/ena_netdev.c host_info->num_cpus = num_online_cpus(); num_cpus 3089 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int num_cpus = netif_get_num_default_rss_queues(); num_cpus 3096 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c num_cpus >= nqsets / hwports)) num_cpus 3098 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (nqsets > num_cpus) num_cpus 3099 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c nqsets = num_cpus; num_cpus 237 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c static void copy_stats(struct dpaa_percpu_priv *percpu_priv, int num_cpus, num_cpus 240 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c int num_values = num_cpus + 1; num_cpus 245 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr++ * num_values + num_cpus] += percpu_priv->in_interrupt; num_cpus 248 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_packets; num_cpus 251 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_packets; num_cpus 254 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr++ * num_values + num_cpus] += percpu_priv->tx_confirm; num_cpus 257 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr++ * num_values + num_cpus] += percpu_priv->tx_frag_skbuffs; num_cpus 260 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_errors; num_cpus 263 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_errors; num_cpus 267 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c data[crr++ * num_values + num_cpus] += bp_count[j]; num_cpus 277 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c unsigned int num_cpus, offset; num_cpus 286 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c num_cpus = num_online_cpus(); num_cpus 315 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c copy_stats(percpu_priv, num_cpus, i, bp_count, data); num_cpus 318 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c offset = (num_cpus + 1) * (DPAA_STATS_PERCPU_LEN + DPAA_BPS_NUM); num_cpus 345 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c unsigned int i, j, num_cpus, size; num_cpus 351 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c num_cpus = num_online_cpus(); num_cpus 355 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c for (j = 0; j < num_cpus; j++) { num_cpus 367 drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c for (j = 0; j < num_cpus; j++) { num_cpus 323 drivers/net/ethernet/huawei/hinic/hinic_main.c u16 num_cpus = 0; num_cpus 353 drivers/net/ethernet/huawei/hinic/hinic_main.c num_cpus++; num_cpus 356 drivers/net/ethernet/huawei/hinic/hinic_main.c if (!num_cpus) num_cpus 357 drivers/net/ethernet/huawei/hinic/hinic_main.c num_cpus = num_online_cpus(); num_cpus 360 drivers/net/ethernet/huawei/hinic/hinic_main.c nic_dev->num_qps = min_t(u16, nic_dev->num_qps, num_cpus); num_cpus 41 drivers/pci/controller/pci-xgene-msi.c int num_cpus; num_cpus 164 drivers/pci/controller/pci-xgene-msi.c return (hwirq % xgene_msi_ctrl.num_cpus); num_cpus 203 drivers/pci/controller/pci-xgene-msi.c msi->num_cpus, 0); num_cpus 205 drivers/pci/controller/pci-xgene-msi.c bitmap_set(msi->bitmap, msi_irq, msi->num_cpus); num_cpus 231 drivers/pci/controller/pci-xgene-msi.c bitmap_clear(msi->bitmap, hwirq, msi->num_cpus); num_cpus 382 drivers/pci/controller/pci-xgene-msi.c for (i = cpu; i < NR_HW_IRQS; i += msi->num_cpus) { num_cpus 427 drivers/pci/controller/pci-xgene-msi.c for (i = cpu; i < NR_HW_IRQS; i += msi->num_cpus) { num_cpus 464 drivers/pci/controller/pci-xgene-msi.c xgene_msi->num_cpus = num_possible_cpus(); num_cpus 1221 drivers/scsi/be2iscsi/be_iscsi.c for (i = 0; i < phba->num_cpus; i++) { num_cpus 796 drivers/scsi/be2iscsi/be_main.c for (i = 0; i <= phba->num_cpus; i++) { num_cpus 814 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < phba->num_cpus; i++) { num_cpus 3011 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < (phba->num_cpus + eq_for_mcc); i++) { num_cpus 3049 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < (phba->num_cpus + eq_for_mcc); i++) { num_cpus 3074 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < phba->num_cpus; i++) { num_cpus 3114 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < phba->num_cpus; i++) { num_cpus 3521 drivers/scsi/be2iscsi/be_main.c &phwi_context->be_eq[phba->num_cpus].q, num_cpus 3574 drivers/scsi/be2iscsi/be_main.c phba->num_cpus = nvec - 1; num_cpus 3579 drivers/scsi/be2iscsi/be_main.c phba->num_cpus = 1; num_cpus 3601 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < (phba->num_cpus + eq_msix); i++) { num_cpus 3665 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < (phba->num_cpus); i++) { num_cpus 3678 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < (phba->num_cpus + eq_for_mcc); i++) { num_cpus 4126 drivers/scsi/be2iscsi/be_main.c for (i = 0; i <= phba->num_cpus; i++) { num_cpus 5212 drivers/scsi/be2iscsi/be_main.c for (i = 0; i <= phba->num_cpus; i++) { num_cpus 5339 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < phba->num_cpus; i++) { num_cpus 5375 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < phba->num_cpus; i++) { num_cpus 5410 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < phba->num_cpus; i++) { num_cpus 5622 drivers/scsi/be2iscsi/be_main.c phba->num_cpus); num_cpus 5668 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < phba->num_cpus; i++) { num_cpus 5729 drivers/scsi/be2iscsi/be_main.c for (i = 0; i < phba->num_cpus; i++) { num_cpus 279 drivers/scsi/be2iscsi/be_main.h unsigned int num_cpus; num_cpus 186 drivers/scsi/be2iscsi/be_mgmt.c if (phba->nxt_cqid == phba->num_cpus) num_cpus 4728 drivers/scsi/smartpqi/smartpqi_init.c int num_cpus; num_cpus 4735 drivers/scsi/smartpqi/smartpqi_init.c num_cpus = num_online_cpus(); num_cpus 4736 drivers/scsi/smartpqi/smartpqi_init.c num_queue_groups = min(num_cpus, ctrl_info->max_msix_vectors); num_cpus 1734 drivers/scsi/storvsc_drv.c int num_cpus = num_online_cpus(); num_cpus 1767 drivers/scsi/storvsc_drv.c (num_cpus - 1) / storvsc_vcpus_per_sub_channel; num_cpus 428 drivers/thermal/cpu_cooling.c unsigned int freq, num_cpus; num_cpus 435 drivers/thermal/cpu_cooling.c num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); num_cpus 438 drivers/thermal/cpu_cooling.c *power = cpu_freq_to_power(cpufreq_cdev, freq) * num_cpus; num_cpus 535 drivers/thermal/cpu_cooling.c unsigned int freq, i, num_cpus; num_cpus 564 drivers/thermal/cpu_cooling.c num_cpus = cpumask_weight(policy->related_cpus); num_cpus 565 drivers/thermal/cpu_cooling.c cpufreq_cdev->idle_time = kcalloc(num_cpus, num_cpus 771 include/sound/soc.h unsigned int num_cpus; num_cpus 918 include/sound/soc.h .num_cpus = ARRAY_SIZE(cpu), \ num_cpus 580 kernel/smp.c int num_nodes, num_cpus; num_cpus 597 kernel/smp.c num_cpus = num_online_cpus(); num_cpus 600 kernel/smp.c num_cpus, (num_cpus > 1 ? "s" : "")); num_cpus 514 sound/soc/atmel/atmel-classd.c dai_link->num_cpus = 1; num_cpus 525 sound/soc/atmel/atmel-pdmic.c dai_link->num_cpus = 1; num_cpus 97 sound/soc/atmel/mikroe-proto.c dai->num_cpus = 1; num_cpus 107 sound/soc/atmel/sam9x5_wm8731.c dai->num_cpus = 1; num_cpus 247 sound/soc/fsl/imx-audmix.c priv->dai[i].num_cpus = 1; num_cpus 276 sound/soc/fsl/imx-audmix.c priv->dai[num_dai + i].num_cpus = 1; num_cpus 165 sound/soc/fsl/imx-es8328.c data->dai.num_cpus = 1; num_cpus 144 sound/soc/fsl/imx-sgtl5000.c data->dai.num_cpus = 1; num_cpus 39 sound/soc/fsl/imx-spdif.c data->dai.num_cpus = 1; num_cpus 220 sound/soc/fsl/mpc8610_hpcd.c machine_data->dai[0].num_cpus = 1; num_cpus 228 sound/soc/fsl/mpc8610_hpcd.c machine_data->dai[1].num_cpus = 1; num_cpus 230 sound/soc/fsl/p1022_ds.c mdata->dai[0].num_cpus = 1; num_cpus 238 sound/soc/fsl/p1022_ds.c mdata->dai[1].num_cpus = 1; num_cpus 233 sound/soc/fsl/p1022_rdk.c mdata->dai[0].num_cpus = 1; num_cpus 241 sound/soc/fsl/p1022_rdk.c mdata->dai[1].num_cpus = 1; num_cpus 583 sound/soc/generic/simple-card-utils.c dai_link[i].num_cpus = 1; num_cpus 446 sound/soc/intel/boards/sof_rt5682.c links[id].num_cpus = 1; num_cpus 490 sound/soc/intel/boards/sof_rt5682.c links[id].num_cpus = 1; num_cpus 517 sound/soc/intel/boards/sof_rt5682.c links[id].num_cpus = 1; num_cpus 558 sound/soc/intel/boards/sof_rt5682.c links[id].num_cpus = 1; num_cpus 279 sound/soc/meson/axg-card.c lb->num_cpus = 1; num_cpus 570 sound/soc/meson/axg-card.c dai_link->num_cpus = 1; num_cpus 161 sound/soc/qcom/apq8016_sbc.c link->num_cpus = 1; num_cpus 53 sound/soc/qcom/common.c link->num_cpus = 1; num_cpus 150 sound/soc/samsung/snow.c link->num_cpus = ARRAY_SIZE(links_cpus); num_cpus 1308 sound/soc/soc-core.c if (link->num_cpus > 1) { num_cpus 1912 sound/soc/soc-topology.c link->num_cpus = 1; num_cpus 45 sound/soc/sof/nocodec.c links[i].num_cpus = 1; num_cpus 1308 sound/soc/sunxi/sun4i-codec.c link->num_cpus = 1; num_cpus 257 sound/soc/ti/omap-abe-twl6040.c priv->dai_links[0].num_cpus = 1; num_cpus 273 sound/soc/ti/omap-abe-twl6040.c priv->dai_links[1].num_cpus = 1; num_cpus 371 sound/soc/ti/omap-hdmi.c card->dai_link->num_cpus = 1; num_cpus 291 tools/power/x86/turbostat/turbostat.c int num_cpus; num_cpus 1597 tools/power/x86/turbostat/turbostat.c average.threads.tsc /= topo.num_cpus; num_cpus 1598 tools/power/x86/turbostat/turbostat.c average.threads.aperf /= topo.num_cpus; num_cpus 1599 tools/power/x86/turbostat/turbostat.c average.threads.mperf /= topo.num_cpus; num_cpus 1600 tools/power/x86/turbostat/turbostat.c average.threads.c1 /= topo.num_cpus; num_cpus 1639 tools/power/x86/turbostat/turbostat.c average.threads.counter[i] /= topo.num_cpus; num_cpus 2766 tools/power/x86/turbostat/turbostat.c printf("turbostat: re-initialized with num_cpus %d\n", topo.num_cpus); num_cpus 2790 tools/power/x86/turbostat/turbostat.c topo.num_cpus++; num_cpus 2823 tools/power/x86/turbostat/turbostat.c for (column = 0; column < topo.num_cpus; ++column) { num_cpus 2849 tools/power/x86/turbostat/turbostat.c for (column = 0; column < topo.num_cpus; ++column) { num_cpus 4967 tools/power/x86/turbostat/turbostat.c topo.num_cpus = 0; num_cpus 4969 tools/power/x86/turbostat/turbostat.c if (!summary_only && topo.num_cpus > 1) num_cpus 4973 tools/power/x86/turbostat/turbostat.c fprintf(outf, "num_cpus %d max_cpu_num %d\n", topo.num_cpus, topo.max_cpu_num); num_cpus 5182 tools/power/x86/turbostat/turbostat.c output_buffer = calloc(1, (1 + topo.num_cpus) * 2048); num_cpus 5195 tools/power/x86/turbostat/turbostat.c irq_column_2_cpu = calloc(topo.num_cpus, sizeof(int)); num_cpus 5197 tools/power/x86/turbostat/turbostat.c err(-1, "calloc %d", topo.num_cpus); num_cpus 4642 tools/testing/selftests/bpf/test_btf.c int num_cpus, int rounded_value_size) num_cpus 4649 tools/testing/selftests/bpf/test_btf.c for (cpu = 0; cpu < num_cpus; cpu++) { num_cpus 4671 tools/testing/selftests/bpf/test_btf.c for (cpu = 0; cpu < num_cpus; cpu++) { num_cpus 4761 tools/testing/selftests/bpf/test_btf.c int err, ret, num_cpus, rounded_value_size; num_cpus 4822 tools/testing/selftests/bpf/test_btf.c num_cpus = percpu_map ? bpf_num_possible_cpus() : 1; num_cpus 4824 tools/testing/selftests/bpf/test_btf.c mapv = calloc(num_cpus, rounded_value_size); num_cpus 4831 tools/testing/selftests/bpf/test_btf.c set_pprint_mapv(mapv_kind, mapv, key, num_cpus, rounded_value_size); num_cpus 4861 tools/testing/selftests/bpf/test_btf.c set_pprint_mapv(mapv_kind, mapv, next_key, num_cpus, rounded_value_size); num_cpus 4864 tools/testing/selftests/bpf/test_btf.c for (cpu = 0; cpu < num_cpus; cpu++) {