Lines Matching refs:cpu
26 void hi3xxx_set_cpu_jump(int cpu, void *jump_addr) in hi3xxx_set_cpu_jump() argument
28 cpu = cpu_logical_map(cpu); in hi3xxx_set_cpu_jump()
29 if (!cpu || !ctrl_base) in hi3xxx_set_cpu_jump()
31 writel_relaxed(virt_to_phys(jump_addr), ctrl_base + ((cpu - 1) << 2)); in hi3xxx_set_cpu_jump()
34 int hi3xxx_get_cpu_jump(int cpu) in hi3xxx_get_cpu_jump() argument
36 cpu = cpu_logical_map(cpu); in hi3xxx_get_cpu_jump()
37 if (!cpu || !ctrl_base) in hi3xxx_get_cpu_jump()
39 return readl_relaxed(ctrl_base + ((cpu - 1) << 2)); in hi3xxx_get_cpu_jump()
84 static int hi3xxx_boot_secondary(unsigned int cpu, struct task_struct *idle) in hi3xxx_boot_secondary() argument
86 hi3xxx_set_cpu(cpu, true); in hi3xxx_boot_secondary()
87 hi3xxx_set_cpu_jump(cpu, secondary_startup); in hi3xxx_boot_secondary()
88 arch_send_wakeup_ipi_mask(cpumask_of(cpu)); in hi3xxx_boot_secondary()
117 static int hix5hd2_boot_secondary(unsigned int cpu, struct task_struct *idle) in hix5hd2_boot_secondary() argument
123 hix5hd2_set_cpu(cpu, true); in hix5hd2_boot_secondary()
124 arch_send_wakeup_ipi_mask(cpumask_of(cpu)); in hix5hd2_boot_secondary()
152 static int hip01_boot_secondary(unsigned int cpu, struct task_struct *idle) in hip01_boot_secondary() argument
174 hip01_set_cpu(cpu, true); in hip01_boot_secondary()