Home
last modified time | relevance | path

Searched refs:hw_cpu (Results 1 – 12 of 12) sorted by relevance

/arch/arm/mach-mvebu/
Dplatsmp.c77 int ret, hw_cpu; in armada_xp_boot_secondary() local
81 hw_cpu = cpu_logical_map(cpu); in armada_xp_boot_secondary()
82 set_secondary_cpu_clock(hw_cpu); in armada_xp_boot_secondary()
83 mvebu_pmsu_set_cpu_boot_addr(hw_cpu, armada_xp_secondary_startup); in armada_xp_boot_secondary()
95 ret = mvebu_cpu_reset_deassert(hw_cpu); in armada_xp_boot_secondary()
198 static int mv98dx3236_resume_set_cpu_boot_addr(int hw_cpu, void *boot_addr) in mv98dx3236_resume_set_cpu_boot_addr() argument
202 WARN_ON(hw_cpu != 1); in mv98dx3236_resume_set_cpu_boot_addr()
223 int ret, hw_cpu; in mv98dx3236_boot_secondary() local
225 hw_cpu = cpu_logical_map(cpu); in mv98dx3236_boot_secondary()
226 set_secondary_cpu_clock(hw_cpu); in mv98dx3236_boot_secondary()
[all …]
Dplatsmp-a9.c30 int ret, hw_cpu; in mvebu_cortex_a9_boot_secondary() local
40 hw_cpu = cpu_logical_map(cpu); in mvebu_cortex_a9_boot_secondary()
44 mvebu_pmsu_set_cpu_boot_addr(hw_cpu, mvebu_cortex_a9_secondary_startup); in mvebu_cortex_a9_boot_secondary()
53 ret = mvebu_cpu_reset_deassert(hw_cpu); in mvebu_cortex_a9_boot_secondary()
Dpmsu.c113 void mvebu_pmsu_set_cpu_boot_addr(int hw_cpu, void *boot_addr) in mvebu_pmsu_set_cpu_boot_addr() argument
116 PMSU_BOOT_ADDR_REDIRECT_OFFSET(hw_cpu)); in mvebu_pmsu_set_cpu_boot_addr()
229 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_prepare() local
240 reg = readl(pmsu_mp_base + PMSU_STATUS_AND_MASK(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
247 writel(reg, pmsu_mp_base + PMSU_STATUS_AND_MASK(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
249 reg = readl(pmsu_mp_base + PMSU_CONTROL_AND_CONFIG(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
256 writel(reg, pmsu_mp_base + PMSU_CONTROL_AND_CONFIG(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
260 reg = readl(pmsu_mp_base + PMSU_CPU_POWER_DOWN_CONTROL(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
262 writel(reg, pmsu_mp_base + PMSU_CPU_POWER_DOWN_CONTROL(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
343 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_exit() local
[all …]
Dcommon.h22 void mvebu_pmsu_set_cpu_boot_addr(int hw_cpu, void *boot_addr);
/arch/powerpc/sysdev/
Dfsl_rcpm.c33 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v1_irq_mask() local
34 unsigned int mask = 1 << hw_cpu; in rcpm_v1_irq_mask()
44 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v2_irq_mask() local
45 unsigned int mask = 1 << hw_cpu; in rcpm_v2_irq_mask()
55 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v1_irq_unmask() local
56 unsigned int mask = 1 << hw_cpu; in rcpm_v1_irq_unmask()
66 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v2_irq_unmask() local
67 unsigned int mask = 1 << hw_cpu; in rcpm_v2_irq_unmask()
93 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v1_cpu_enter_state() local
94 unsigned int mask = 1 << hw_cpu; in rcpm_v1_cpu_enter_state()
[all …]
/arch/powerpc/kernel/
Dsetup_32.c215 unsigned int i, hw_cpu; in exc_lvl_early_init() local
221 hw_cpu = get_hard_smp_processor_id(i); in exc_lvl_early_init()
223 hw_cpu = 0; in exc_lvl_early_init()
226 critirq_ctx[hw_cpu] = (struct thread_info *) in exc_lvl_early_init()
229 dbgirq_ctx[hw_cpu] = (struct thread_info *) in exc_lvl_early_init()
231 mcheckirq_ctx[hw_cpu] = (struct thread_info *) in exc_lvl_early_init()
/arch/powerpc/sysdev/xics/
Dicp-opal.c27 int hw_cpu = hard_smp_processor_id(); in icp_opal_teardown_cpu() local
30 opal_int_set_mfrr(hw_cpu, 0xff); in icp_opal_teardown_cpu()
131 int hw_cpu = get_hard_smp_processor_id(cpu); in icp_opal_cause_ipi() local
134 opal_int_set_mfrr(hw_cpu, IPI_PRIORITY); in icp_opal_cause_ipi()
Dicp-hv.c66 int hw_cpu = get_hard_smp_processor_id(n_cpu); in icp_hv_set_qirr() local
71 rc = plpar_hcall_norets(H_IPI, hw_cpu, value); in icp_hv_set_qirr()
74 "returned %ld\n", __func__, n_cpu, hw_cpu, value, rc); in icp_hv_set_qirr()
Dxics-common.c188 int cpu = smp_processor_id(), hw_cpu = hard_smp_processor_id(); in xics_migrate_irqs_away() local
193 if (hw_cpu == xics_default_server) in xics_migrate_irqs_away()
241 if (server != hw_cpu) in xics_migrate_irqs_away()
/arch/powerpc/platforms/cell/
Dinterrupt.c290 static void __init init_one_iic(unsigned int hw_cpu, unsigned long addr, in init_one_iic() argument
296 struct iic *iic = &per_cpu(cpu_iic, hw_cpu); in init_one_iic()
301 iic->target_id = ((hw_cpu & 2) << 3) | ((hw_cpu & 1) ? 0xf : 0xe); in init_one_iic()
307 hw_cpu, iic->target_id, node); in init_one_iic()
/arch/powerpc/platforms/85xx/
Dsmp.c199 int hw_cpu = get_hard_smp_processor_id(cpu); in smp_85xx_start_cpu() local
247 hw_cpu); in smp_85xx_start_cpu()
254 out_be32(&spin_table->pir, hw_cpu); in smp_85xx_start_cpu()
/arch/powerpc/sysdev/xive/
Dspapr.c412 int hw_cpu = get_hard_smp_processor_id(cpu); in xive_spapr_cleanup_queue() local
414 rc = plpar_int_set_queue_config(0, hw_cpu, prio, 0, 0); in xive_spapr_cleanup_queue()
417 hw_cpu, prio); in xive_spapr_cleanup_queue()