Home
last modified time | relevance | path

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

123

/linux/arch/mips/loongson64/
H A Dsmp.c111 csr_mail_send(startargs[3], cpu_logical_map(cpu), 3); in csr_ipi_write_buf()
112 csr_mail_send(startargs[2], cpu_logical_map(cpu), 2); in csr_ipi_write_buf()
113 csr_mail_send(startargs[1], cpu_logical_map(cpu), 1); in csr_ipi_write_buf()
114 csr_mail_send(startargs[0], cpu_logical_map(cpu), 0); in csr_ipi_write_buf()
122 action = readl_relaxed(ipi_status0_regs[cpu_logical_map(cpu)]); in legacy_ipi_read_clear()
124 writel_relaxed(action, ipi_clear0_regs[cpu_logical_map(cpu)]); in legacy_ipi_read_clear()
138 writel_relaxed(0xffffffff, ipi_en0_regs[cpu_logical_map(cpu)]); in legacy_ipi_write_enable()
143 writeq_relaxed(0, ipi_mailbox_buf[cpu_logical_map(cpu)] + 0x0); in legacy_ipi_clear_buf()
160 ipi_mailbox_buf[cpu_logical_map(cpu)] + 0x18); in legacy_ipi_write_buf()
162 ipi_mailbox_buf[cpu_logical_map(cpu)] + 0x10); in legacy_ipi_write_buf()
[all …]
/linux/arch/arm/common/
H A 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 …]
/linux/arch/loongarch/kernel/
H A Dsmp.c201 ipi_write_action(cpu_logical_map(cpu), (u32)action); in loongson_send_ipi_single()
209 ipi_write_action(cpu_logical_map(i), (u32)action); in loongson_send_ipi_mask()
235 action = ipi_read_clear(cpu_logical_map(cpu)); in loongson_ipi_interrupt()
321 cpu_data[0].core = cpu_logical_map(0) % loongson_sysconf.cores_per_package; in loongson_smp_setup()
322 cpu_data[0].package = cpu_logical_map(0) / loongson_sysconf.cores_per_package; in loongson_smp_setup()
334 cpu_data[0].global_id = cpu_logical_map(0); in loongson_prepare_cpus()
357 csr_mail_send(entry, cpu_logical_map(cpu), 0); in loongson_boot_secondary()
380 cpu_logical_map(cpu) / loongson_sysconf.cores_per_package; in loongson_init_secondary()
382 cpu_logical_map(cpu) % loongson_sysconf.cores_per_package; in loongson_init_secondary()
383 cpu_data[cpu].global_id = cpu_logical_map(cpu); in loongson_init_secondary()
/linux/arch/arm/kernel/
H A Dpsci_smp.c49 return psci_ops.cpu_on(cpu_logical_map(cpu), in psci_boot_secondary()
54 return psci_ops.cpu_on(cpu_logical_map(cpu), in psci_boot_secondary()
99 err = psci_ops.affinity_info(cpu_logical_map(cpu), 0); in psci_cpu_kill()
H A 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()
H A Dsuspend.c24 u32 __mpidr = cpu_logical_map(smp_processor_id()); in cpu_suspend()
66 u32 __mpidr = cpu_logical_map(smp_processor_id()); in cpu_suspend()
/linux/arch/loongarch/include/asm/
H A Dsmp.h65 #define cpu_logical_map(cpu) __cpu_logical_map[cpu] macro
67 #define cpu_physical_id(cpu) cpu_logical_map(cpu)
119 #define cpu_logical_map(cpu) 0 macro
/linux/arch/arm/mach-berlin/
H A 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()
/linux/arch/arm/mach-tegra/
H A 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()
H A 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()
/linux/arch/arm/mach-imx/
H A Dsrc.c126 cpu = cpu_logical_map(cpu); in imx_enable_cpu()
148 cpu = cpu_logical_map(cpu); in imx_set_cpu_jump()
155 cpu = cpu_logical_map(cpu); in imx_get_cpu_arg()
161 cpu = cpu_logical_map(cpu); in imx_set_cpu_arg()
/linux/arch/mips/cavium-octeon/
H A Dsmp.c102 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()
307 int coreid = cpu_logical_map(cpu); in octeon_cpu_die()
366 int coreid = cpu_logical_map(cpu); in octeon_update_boot_vector()
/linux/arch/arm/mach-shmobile/
H A Dsmp-r8a7779.c32 cpu = cpu_logical_map(cpu); in r8a7779_boot_secondary()
64 cpu = cpu_logical_map(cpu); in r8a7779_platform_cpu_kill()
/linux/arch/arm/mach-highbank/
H A 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()
/linux/arch/arm/include/asm/
H A Dsmp_plat.h73 #define cpu_logical_map(cpu) __cpu_logical_map[cpu] macro
84 if (cpu_logical_map(cpu) == mpidr) in get_logical_index()
/linux/arch/arm/mach-bcm/
H A Dplatsmp-brcmstb.c78 base += (cpu_logical_map(cpu) * 4); in pwr_ctrl_get_base()
124 val |= BIT(cpu_logical_map(cpu)); in cpu_rst_cfg_set()
126 val &= ~BIT(cpu_logical_map(cpu)); in cpu_rst_cfg_set()
132 const int reg_ofs = cpu_logical_map(cpu) * 8; in cpu_set_boot_addr()
/linux/arch/arm64/kernel/
H A Dsetup.c101 return phys_id == cpu_logical_map(cpu); in arch_match_cpu_phys_id()
120 mask |= (cpu_logical_map(i) ^ cpu_logical_map(0)); in smp_build_mpidr_hash()
278 u64 cpu_logical_map(unsigned int cpu) in cpu_logical_map() function
H A 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()
/linux/drivers/cpuidle/
H A Dcpuidle-tegra.c56 cpu = cpu_logical_map(lcpu); in tegra_cpuidle_report_cpus_state()
102 cpu = cpu_logical_map(lcpu); in tegra_cpuidle_unpark_secondary_cpus()
234 unsigned int cpu = cpu_logical_map(dev->cpu); in tegra_cpuidle_enter()
/linux/arch/arm/mach-exynos/
H A Dplatsmp.c51 u32 mpidr = cpu_logical_map(cpu); in platform_do_lowpower()
320 u32 mpidr = cpu_logical_map(cpu); in exynos_boot_secondary()
425 u32 mpidr = cpu_logical_map(cpu); in exynos_cpu_die()
/linux/arch/arm/mach-milbeaut/
H A Dplatsmp.c30 mpidr = cpu_logical_map(l_cpu); in m10v_boot_secondary()
80 mpidr = cpu_logical_map(l_cpu); in m10v_cpu_kill()
/linux/arch/arm/mach-mvebu/
H A Dpmsu.c226 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_prepare()
341 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_exit()
364 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_cpu_pm_notify()
572 int hwcpu = cpu_logical_map(cpu); in mvebu_pmsu_dfs_request()
H A Dplatsmp.c56 hw_cpu = cpu_logical_map(cpu); in armada_xp_boot_secondary()
220 hw_cpu = cpu_logical_map(cpu); in mv98dx3236_boot_secondary()
/linux/arch/arm/mach-hisi/
H A 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()
H A Dplatsmp.c25 cpu = cpu_logical_map(cpu); in hi3xxx_set_cpu_jump()
33 cpu = cpu_logical_map(cpu); in hi3xxx_get_cpu_jump()

123