Home
last modified time | relevance | path

Searched refs:cpu_logical_map (Results 1 – 25 of 74) sorted by relevance

123

/kernel/linux/linux-5.10/arch/arm/common/
DbL_switcher.c69 ib_mpidr = cpu_logical_map(smp_processor_id()); in bL_do_switch()
159 BUG_ON(cpu_logical_map(this_cpu) != ob_mpidr); in bL_switch_to()
165 ib_mpidr = cpu_logical_map(that_cpu); in bL_switch_to()
227 cpu_logical_map(this_cpu) = ib_mpidr; in bL_switch_to()
228 cpu_logical_map(that_cpu) = ob_mpidr; in bL_switch_to()
428 cpu = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 0); in bL_switcher_halve_cpus()
429 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1); in bL_switcher_halve_cpus()
454 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 1); in bL_switcher_halve_cpus()
461 cluster = MPIDR_AFFINITY_LEVEL(cpu_logical_map(j), 1); in bL_switcher_halve_cpus()
484 cpu = MPIDR_AFFINITY_LEVEL(cpu_logical_map(i), 0); in bL_switcher_halve_cpus()
[all …]
/kernel/linux/linux-5.10/arch/mips/loongson64/
Dsmp.c87 action = loongson3_ipi_read32(ipi_status0_regs[cpu_logical_map(cpu)]); in legacy_ipi_read_clear()
89 loongson3_ipi_write32(action, ipi_clear0_regs[cpu_logical_map(cpu)]); in legacy_ipi_read_clear()
295 ipi_write_action(cpu_logical_map(cpu), (u32)action); in loongson3_send_ipi_single()
304 ipi_write_action(cpu_logical_map(i), (u32)action); in loongson3_send_ipi_mask()
352 loongson3_ipi_write32(0xffffffff, ipi_en0_regs[cpu_logical_map(i)]); in loongson3_init_secondary()
356 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package); in loongson3_init_secondary()
358 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson3_init_secondary()
385 ipi_mailbox_buf[cpu_logical_map(cpu)] + 0x0); in loongson3_smp_finish()
424 cpu_logical_map(0) % loongson_sysconf.cores_per_package); in loongson3_smp_setup()
425 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson3_smp_setup()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-imx/
Dsrc.c80 cpu = cpu_logical_map(cpu); in imx_enable_cpu()
92 cpu = cpu_logical_map(cpu); in imx_set_cpu_jump()
99 cpu = cpu_logical_map(cpu); in imx_get_cpu_arg()
105 cpu = cpu_logical_map(cpu); in imx_set_cpu_arg()
/kernel/linux/linux-5.10/arch/arm/mach-berlin/
Dplatsmp.c38 val &= ~BIT(cpu_logical_map(cpu)); in berlin_perform_reset_cpu()
40 val |= BIT(cpu_logical_map(cpu)); in berlin_perform_reset_cpu()
112 val &= ~BIT(cpu_logical_map(cpu)); in berlin_cpu_kill()
/kernel/linux/linux-5.10/arch/arm/mach-tegra/
Dplatsmp.c44 cpu = cpu_logical_map(cpu); in tegra20_boot_secondary()
75 cpu = cpu_logical_map(cpu); in tegra30_boot_secondary()
133 cpu = cpu_logical_map(cpu); in tegra114_boot_secondary()
Dpm.c80 cpu = cpu_logical_map(cpu); in restore_cpu_complex()
104 cpu = cpu_logical_map(cpu); in suspend_cpu_complex()
115 int phy_cpu_id = cpu_logical_map(smp_processor_id()); in tegra_pm_clear_cpu_in_lp2()
128 int phy_cpu_id = cpu_logical_map(smp_processor_id()); in tegra_pm_set_cpu_in_lp2()
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/
Dsmp-r8a7779.c30 cpu = cpu_logical_map(cpu); in r8a7779_boot_secondary()
51 cpu = cpu_logical_map(cpu); in r8a7779_platform_cpu_kill()
/kernel/linux/linux-5.10/arch/arm/mach-highbank/
Dsysregs.h29 int cpu = MPIDR_AFFINITY_LEVEL(cpu_logical_map(smp_processor_id()), 0); in highbank_set_core_pwr()
38 int cpu = MPIDR_AFFINITY_LEVEL(cpu_logical_map(smp_processor_id()), 0); in highbank_clear_core_pwr()
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dsmp_plat.h73 #define cpu_logical_map(cpu) __cpu_logical_map[cpu] macro
84 if (cpu_logical_map(cpu) == mpidr) in get_logical_index()
/kernel/linux/linux-5.10/arch/arm/kernel/
Ddevtree.c181 cpu_logical_map(i) = tmp_map[i]; in arm_dt_init_cpu_maps()
182 pr_debug("cpu logical map 0x%x\n", cpu_logical_map(i)); in arm_dt_init_cpu_maps()
188 return phys_id == cpu_logical_map(cpu); in arch_match_cpu_phys_id()
Dpsci_smp.c48 return psci_ops.cpu_on(cpu_logical_map(cpu), in psci_boot_secondary()
92 err = psci_ops.affinity_info(cpu_logical_map(cpu), 0); in psci_cpu_kill()
Dsuspend.c23 u32 __mpidr = cpu_logical_map(smp_processor_id()); in cpu_suspend()
58 u32 __mpidr = cpu_logical_map(smp_processor_id()); in cpu_suspend()
Dsmp_scu.c78 int cpu = MPIDR_AFFINITY_LEVEL(cpu_logical_map(logical_cpu), 0); in scu_set_power_mode_internal()
115 int cpu = MPIDR_AFFINITY_LEVEL(cpu_logical_map(logical_cpu), 0); in scu_get_cpu_power_mode()
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/
Dsmp.c101 int coreid = cpu_logical_map(cpu); in octeon_send_ipi_single()
214 cpu_logical_map(cpu)); in octeon_boot_secondary()
218 octeon_processor_boot = cpu_logical_map(cpu); in octeon_boot_secondary()
311 int coreid = cpu_logical_map(cpu); in octeon_cpu_die()
369 int coreid = cpu_logical_map(cpu); in octeon_update_boot_vector()
/kernel/linux/linux-5.10/arch/arm/mach-bcm/
Dplatsmp-brcmstb.c86 base += (cpu_logical_map(cpu) * 4); in pwr_ctrl_get_base()
132 val |= BIT(cpu_logical_map(cpu)); in cpu_rst_cfg_set()
134 val &= ~BIT(cpu_logical_map(cpu)); in cpu_rst_cfg_set()
140 const int reg_ofs = cpu_logical_map(cpu) * 8; in cpu_set_boot_addr()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dpsci.c42 int err = psci_ops.cpu_on(cpu_logical_map(cpu), pa_secondary_entry); in cpu_psci_cpu_boot()
96 err = psci_ops.affinity_info(cpu_logical_map(cpu), 0); in cpu_psci_cpu_kill()
Dsetup.c102 return phys_id == cpu_logical_map(cpu); in arch_match_cpu_phys_id()
121 mask |= (cpu_logical_map(i) ^ cpu_logical_map(0)); in smp_build_mpidr_hash()
279 u64 cpu_logical_map(int cpu) in cpu_logical_map() function
/kernel/linux/linux-5.10/drivers/cpuidle/
Dcpuidle-tegra.c61 cpu = cpu_logical_map(lcpu); in tegra_cpuidle_report_cpus_state()
107 cpu = cpu_logical_map(lcpu); in tegra_cpuidle_unpark_secondary_cpus()
238 unsigned int cpu = cpu_logical_map(dev->cpu); in tegra_cpuidle_enter()
/kernel/linux/linux-5.10/arch/arm/mach-milbeaut/
Dplatsmp.c30 mpidr = cpu_logical_map(l_cpu); in m10v_boot_secondary()
80 mpidr = cpu_logical_map(l_cpu); in m10v_cpu_kill()
/kernel/linux/linux-5.10/arch/arm/mach-exynos/
Dplatsmp.c51 u32 mpidr = cpu_logical_map(cpu); in platform_do_lowpower()
322 u32 mpidr = cpu_logical_map(cpu); in exynos_boot_secondary()
427 u32 mpidr = cpu_logical_map(cpu); in exynos_cpu_die()
/kernel/linux/linux-5.10/arch/arm/mach-hisi/
Dplatsmp.c25 cpu = cpu_logical_map(cpu); in hi3xxx_set_cpu_jump()
33 cpu = cpu_logical_map(cpu); in hi3xxx_get_cpu_jump()
Dplatmcpm.c104 mpidr = cpu_logical_map(l_cpu); in hip04_boot_secondary()
158 mpidr = cpu_logical_map(l_cpu); in hip04_cpu_die()
196 mpidr = cpu_logical_map(l_cpu); in hip04_cpu_kill()
/kernel/linux/linux-5.10/arch/arm/mach-mvebu/
Dplatsmp.c59 hw_cpu = cpu_logical_map(cpu); in armada_xp_boot_secondary()
223 hw_cpu = cpu_logical_map(cpu); in mv98dx3236_boot_secondary()
Dpmsu.c229 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_prepare()
343 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_exit()
366 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_cpu_pm_notify()
574 int hwcpu = cpu_logical_map(cpu); in mvebu_pmsu_dfs_request()
/kernel/linux/linux-5.10/arch/arm/mach-prima2/
Dhotplug.c21 if (prima2_pen_release == cpu_logical_map(cpu)) { in platform_do_lowpower()

123