Home
last modified time | relevance | path

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

/arch/arm/mach-mvebu/
Dplatsmp.c52 int ret, hw_cpu; in armada_xp_boot_secondary() local
56 hw_cpu = cpu_logical_map(cpu); in armada_xp_boot_secondary()
57 mvebu_pmsu_set_cpu_boot_addr(hw_cpu, armada_xp_secondary_startup); in armada_xp_boot_secondary()
69 ret = mvebu_cpu_reset_deassert(hw_cpu); in armada_xp_boot_secondary()
193 static int mv98dx3236_resume_set_cpu_boot_addr(int hw_cpu, void *boot_addr) in mv98dx3236_resume_set_cpu_boot_addr() argument
197 WARN_ON(hw_cpu != 1); in mv98dx3236_resume_set_cpu_boot_addr()
218 int ret, hw_cpu; in mv98dx3236_boot_secondary() local
220 hw_cpu = cpu_logical_map(cpu); in mv98dx3236_boot_secondary()
221 mv98dx3236_resume_set_cpu_boot_addr(hw_cpu, in mv98dx3236_boot_secondary()
234 ret = mvebu_cpu_reset_deassert(hw_cpu); in mv98dx3236_boot_secondary()
Dplatsmp-a9.c27 int ret, hw_cpu; in mvebu_cortex_a9_boot_secondary() local
37 hw_cpu = cpu_logical_map(cpu); in mvebu_cortex_a9_boot_secondary()
41 mvebu_pmsu_set_cpu_boot_addr(hw_cpu, mvebu_cortex_a9_secondary_startup); in mvebu_cortex_a9_boot_secondary()
50 ret = mvebu_cpu_reset_deassert(hw_cpu); in mvebu_cortex_a9_boot_secondary()
Dpmsu.c110 void mvebu_pmsu_set_cpu_boot_addr(int hw_cpu, void *boot_addr) in mvebu_pmsu_set_cpu_boot_addr() argument
113 PMSU_BOOT_ADDR_REDIRECT_OFFSET(hw_cpu)); in mvebu_pmsu_set_cpu_boot_addr()
226 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_prepare() local
237 reg = readl(pmsu_mp_base + PMSU_STATUS_AND_MASK(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
244 writel(reg, pmsu_mp_base + PMSU_STATUS_AND_MASK(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
246 reg = readl(pmsu_mp_base + PMSU_CONTROL_AND_CONFIG(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
253 writel(reg, pmsu_mp_base + PMSU_CONTROL_AND_CONFIG(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
257 reg = readl(pmsu_mp_base + PMSU_CPU_POWER_DOWN_CONTROL(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
259 writel(reg, pmsu_mp_base + PMSU_CPU_POWER_DOWN_CONTROL(hw_cpu)); in mvebu_v7_pmsu_idle_prepare()
340 unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); in mvebu_v7_pmsu_idle_exit() local
[all …]
Dcommon.h19 void mvebu_pmsu_set_cpu_boot_addr(int hw_cpu, void *boot_addr);
/arch/powerpc/sysdev/
Dfsl_rcpm.c29 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v1_irq_mask() local
30 unsigned int mask = 1 << hw_cpu; in rcpm_v1_irq_mask()
40 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v2_irq_mask() local
41 unsigned int mask = 1 << hw_cpu; in rcpm_v2_irq_mask()
51 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v1_irq_unmask() local
52 unsigned int mask = 1 << hw_cpu; in rcpm_v1_irq_unmask()
62 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v2_irq_unmask() local
63 unsigned int mask = 1 << hw_cpu; in rcpm_v2_irq_unmask()
89 int hw_cpu = get_hard_smp_processor_id(cpu); in rcpm_v1_cpu_enter_state() local
90 unsigned int mask = 1 << hw_cpu; in rcpm_v1_cpu_enter_state()
[all …]
/arch/powerpc/kernel/
Dsetup_32.c181 unsigned int i, hw_cpu; in exc_lvl_early_init() local
187 hw_cpu = get_hard_smp_processor_id(i); in exc_lvl_early_init()
189 hw_cpu = 0; in exc_lvl_early_init()
192 critirq_ctx[hw_cpu] = alloc_stack(); in exc_lvl_early_init()
194 dbgirq_ctx[hw_cpu] = alloc_stack(); in exc_lvl_early_init()
195 mcheckirq_ctx[hw_cpu] = alloc_stack(); in exc_lvl_early_init()
/arch/powerpc/sysdev/xics/
Dicp-opal.c24 int hw_cpu = hard_smp_processor_id(); in icp_opal_teardown_cpu() local
27 opal_int_set_mfrr(hw_cpu, 0xff); in icp_opal_teardown_cpu()
128 int hw_cpu = get_hard_smp_processor_id(cpu); in icp_opal_cause_ipi() local
131 opal_int_set_mfrr(hw_cpu, IPI_PRIORITY); in icp_opal_cause_ipi()
Dicp-hv.c62 int hw_cpu = get_hard_smp_processor_id(n_cpu); in icp_hv_set_qirr() local
67 rc = plpar_hcall_norets(H_IPI, hw_cpu, value); in icp_hv_set_qirr()
70 "returned %ld\n", __func__, n_cpu, hw_cpu, value, rc); in icp_hv_set_qirr()
Dxics-common.c182 int cpu = smp_processor_id(), hw_cpu = hard_smp_processor_id(); in xics_migrate_irqs_away() local
189 if (hw_cpu == xics_default_server) in xics_migrate_irqs_away()
236 if (server != hw_cpu) in xics_migrate_irqs_away()
/arch/powerpc/platforms/cell/
Dinterrupt.c273 static void __init init_one_iic(unsigned int hw_cpu, unsigned long addr, in init_one_iic() argument
279 struct iic *iic = &per_cpu(cpu_iic, hw_cpu); in init_one_iic()
284 iic->target_id = ((hw_cpu & 2) << 3) | ((hw_cpu & 1) ? 0xf : 0xe); in init_one_iic()
290 hw_cpu, iic->target_id, node); in init_one_iic()
/arch/powerpc/platforms/85xx/
Dsmp.c195 int hw_cpu = get_hard_smp_processor_id(cpu); in smp_85xx_start_cpu() local
243 hw_cpu); in smp_85xx_start_cpu()
250 out_be32(&spin_table->pir, hw_cpu); in smp_85xx_start_cpu()
/arch/powerpc/sysdev/xive/
Dspapr.c548 int hw_cpu = get_hard_smp_processor_id(cpu); in xive_spapr_cleanup_queue() local
550 rc = plpar_int_set_queue_config(0, hw_cpu, prio, 0, 0); in xive_spapr_cleanup_queue()
553 hw_cpu, prio); in xive_spapr_cleanup_queue()