Home
last modified time | relevance | path

Searched refs:ncores (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.10/arch/arm/mach-bcm/
Dbcm63xx_smp.c39 unsigned int i, ncores; in scu_a9_enable() local
62 ncores = scu_base ? scu_get_core_count(scu_base) : 1; in scu_a9_enable()
64 if (ncores > nr_cpu_ids) { in scu_a9_enable()
66 ncores, nr_cpu_ids); in scu_a9_enable()
67 ncores = nr_cpu_ids; in scu_a9_enable()
80 if (ncores > 1) { in scu_a9_enable()
86 ncores = 1; in scu_a9_enable()
91 for (i = 0; i < ncores; i++) in scu_a9_enable()
/Linux-v5.10/arch/arm/mach-spear/
Dplatsmp.c100 unsigned int i, ncores = scu_get_core_count(scu_base); in spear13xx_smp_init_cpus() local
102 if (ncores > nr_cpu_ids) { in spear13xx_smp_init_cpus()
104 ncores, nr_cpu_ids); in spear13xx_smp_init_cpus()
105 ncores = nr_cpu_ids; in spear13xx_smp_init_cpus()
108 for (i = 0; i < ncores; i++) in spear13xx_smp_init_cpus()
/Linux-v5.10/arch/arm/mach-omap2/
Domap-smp.c261 unsigned int i = 0, ncores = 1, cpu_id; in omap4_smp_init_cpus() local
272 ncores = scu_get_core_count(cfg.scu_base); in omap4_smp_init_cpus()
274 ncores = OMAP5_CORE_COUNT; in omap4_smp_init_cpus()
278 if (ncores > nr_cpu_ids) { in omap4_smp_init_cpus()
280 ncores, nr_cpu_ids); in omap4_smp_init_cpus()
281 ncores = nr_cpu_ids; in omap4_smp_init_cpus()
284 for (i = 0; i < ncores; i++) in omap4_smp_init_cpus()
/Linux-v5.10/arch/arm/mach-realview/
Dplatsmp-dt.c40 unsigned int ncores; in realview_smp_prepare_cpus() local
56 ncores = scu_get_core_count(scu_base); in realview_smp_prepare_cpus()
57 pr_info("SCU: %d cores detected\n", ncores); in realview_smp_prepare_cpus()
58 for (i = 0; i < ncores; i++) in realview_smp_prepare_cpus()
/Linux-v5.10/arch/arm/mach-rockchip/
Dplatsmp.c28 static int ncores; variable
125 if (cpu >= ncores) { in rockchip_boot_secondary()
127 __func__, cpu, ncores); in rockchip_boot_secondary()
309 ncores = scu_get_core_count(scu_base_addr); in rockchip_smp_prepare_cpus()
310 pr_err("%s: ncores %d\n", __func__, ncores); in rockchip_smp_prepare_cpus()
317 ncores = ((l2ctlr >> 24) & 0x3) + 1; in rockchip_smp_prepare_cpus()
322 for (i = 1; i < ncores; i++) in rockchip_smp_prepare_cpus()
/Linux-v5.10/arch/mips/kernel/
Dsmp-cps.c48 unsigned int nclusters, ncores, nvpes, core_vpes; in cps_smp_setup() local
61 ncores = mips_cps_numcores(cl); in cps_smp_setup()
62 for (c = 0; c < ncores; c++) { in cps_smp_setup()
120 unsigned ncores, core_vpes, c, cca; in cps_prepare_cpus() local
171 ncores = mips_cps_numcores(0); in cps_prepare_cpus()
172 mips_cps_core_bootcfg = kcalloc(ncores, sizeof(*mips_cps_core_bootcfg), in cps_prepare_cpus()
175 pr_err("Failed to allocate boot config for %u cores\n", ncores); in cps_prepare_cpus()
180 for (c = 0; c < ncores; c++) { in cps_prepare_cpus()
200 for (c = 0; c < ncores; c++) in cps_prepare_cpus()
/Linux-v5.10/arch/arm/mach-ux500/
Dplatsmp.c35 unsigned int ncores; in ux500_smp_prepare_cpus() local
63 ncores = scu_get_core_count(scu_base); in ux500_smp_prepare_cpus()
64 for (i = 0; i < ncores; i++) in ux500_smp_prepare_cpus()
/Linux-v5.10/arch/mips/netlogic/xlp/
Dwakeup.c114 int core, n, cpu, ncores; in xlp_enable_secondary_cores() local
171 ncores = nlm_cores_per_node(); in xlp_enable_secondary_cores()
172 for (core = 0; core < ncores; core++) { in xlp_enable_secondary_cores()
182 cpu = (n * ncores + core) * NLM_THREADS_PER_CORE; in xlp_enable_secondary_cores()
/Linux-v5.10/arch/arm/mach-imx/
Dplatsmp.c56 int i, ncores; in imx_smp_init_cpus() local
58 ncores = scu_get_core_count(scu_base); in imx_smp_init_cpus()
60 for (i = ncores; i < NR_CPUS; i++) in imx_smp_init_cpus()
/Linux-v5.10/arch/arm/mach-zynq/
Dplatsmp.c28 static int ncores; variable
97 ncores = scu_get_core_count(zynq_scu_base); in zynq_smp_init_cpus()
99 for (i = 0; i < ncores && i < CONFIG_NR_CPUS; i++) in zynq_smp_init_cpus()
/Linux-v5.10/arch/arm/mach-actions/
Dplatsmp.c36 static int ncores; variable
141 ncores = scu_get_core_count(scu_base_addr); in s500_smp_prepare_cpus()
142 pr_debug("%s: ncores %d\n", __func__, ncores); in s500_smp_prepare_cpus()
/Linux-v5.10/arch/arm/mach-mvebu/
Dplatsmp.c96 unsigned int ncores = num_possible_cpus(); in armada_xp_smp_init_cpus() local
98 if (ncores == 0 || ncores > ARMADA_XP_MAX_CPUS) in armada_xp_smp_init_cpus()
/Linux-v5.10/arch/arm/kernel/
Dsmp_scu.c31 unsigned int ncores = readl_relaxed(scu_base + SCU_CONFIG); in scu_get_core_count() local
32 return (ncores & 0x03) + 1; in scu_get_core_count()
Dsmp.c497 unsigned int ncores = num_possible_cpus(); in smp_prepare_cpus() local
506 if (max_cpus > ncores) in smp_prepare_cpus()
507 max_cpus = ncores; in smp_prepare_cpus()
508 if (ncores > 1 && max_cpus) { in smp_prepare_cpus()
/Linux-v5.10/arch/mips/netlogic/xlr/
Dfmn-config.c84 int bkt, n, total_credits, ncores; in check_credit_distribution() local
86 ncores = hweight32(nlm_current_node()->coremask); in check_credit_distribution()
89 for (n = 0; n < ncores; n++) in check_credit_distribution()
/Linux-v5.10/drivers/gpu/drm/panfrost/
Dpanfrost_perfcnt.c293 unsigned int nl2c, ncores; in panfrost_perfcnt_init() local
306 ncores = fls64(pfdev->features.shader_present); in panfrost_perfcnt_init()
312 size = (nl2c + ncores + 2) * in panfrost_perfcnt_init()