Lines Matching refs:cpu

61 static void plat_cpu_pwrdwn_common(unsigned int cpu,  in plat_cpu_pwrdwn_common()  argument
64 assert(cpu == plat_my_core_pos()); in plat_cpu_pwrdwn_common()
66 plat_mt_pm_invoke_no_check(pwr_cpu_dwn, cpu, state); in plat_cpu_pwrdwn_common()
75 gicv3_cpuif_disable(cpu); in plat_cpu_pwrdwn_common()
76 gicv3_rdistif_off(cpu); in plat_cpu_pwrdwn_common()
79 static void plat_cpu_pwron_common(unsigned int cpu, in plat_cpu_pwron_common() argument
82 assert(cpu == plat_my_core_pos()); in plat_cpu_pwron_common()
84 plat_mt_pm_invoke_no_check(pwr_cpu_on, cpu, state); in plat_cpu_pwron_common()
89 ptp3_core_init(cpu); in plat_cpu_pwron_common()
98 gicv3_rdistif_on(cpu); in plat_cpu_pwron_common()
99 gicv3_cpuif_enable(cpu); in plat_cpu_pwron_common()
110 static void plat_cluster_pwrdwn_common(unsigned int cpu, in plat_cluster_pwrdwn_common() argument
113 assert(cpu == plat_my_core_pos()); in plat_cluster_pwrdwn_common()
115 if (plat_mt_pm_invoke(pwr_cluster_dwn, cpu, state) != 0) { in plat_cluster_pwrdwn_common()
125 static void plat_cluster_pwron_common(unsigned int cpu, in plat_cluster_pwron_common() argument
128 assert(cpu == plat_my_core_pos()); in plat_cluster_pwron_common()
130 if (plat_mt_pm_invoke(pwr_cluster_on, cpu, state) != 0) { in plat_cluster_pwron_common()
143 static void plat_mcusys_pwrdwn_common(unsigned int cpu, in plat_mcusys_pwrdwn_common() argument
146 assert(cpu == plat_my_core_pos()); in plat_mcusys_pwrdwn_common()
148 if (plat_mt_pm_invoke(pwr_mcusys_dwn, cpu, state) != 0) { in plat_mcusys_pwrdwn_common()
156 static void plat_mcusys_pwron_common(unsigned int cpu, in plat_mcusys_pwron_common() argument
159 assert(cpu == plat_my_core_pos()); in plat_mcusys_pwron_common()
161 if (plat_mt_pm_invoke(pwr_mcusys_on, cpu, state) != 0) { in plat_mcusys_pwron_common()
169 plat_mt_pm_invoke_no_check(pwr_mcusys_on_finished, cpu, state); in plat_mcusys_pwron_common()
192 unsigned int cpu = (unsigned int)plat_core_pos_by_mpidr(mpidr); in plat_power_domain_on() local
195 if (cpu >= PLATFORM_CORE_COUNT) { in plat_power_domain_on()
204 mcucfg_init_archstate(cluster, cpu, true); in plat_power_domain_on()
205 mcucfg_set_bootaddr(cluster, cpu, secure_entrypoint); in plat_power_domain_on()
206 spm_poweron_cpu(cluster, cpu); in plat_power_domain_on()
214 unsigned int cpu = (unsigned int)plat_core_pos_by_mpidr(mpidr); in plat_power_domain_on_finish() local
216 assert(cpu < PLATFORM_CORE_COUNT); in plat_power_domain_on_finish()
219 mcucfg_enable_gic_wakeup(0U, cpu); in plat_power_domain_on_finish()
222 plat_cluster_pwron_common(cpu, state, 0U); in plat_power_domain_on_finish()
225 plat_cpu_pwron_common(cpu, state, 0U); in plat_power_domain_on_finish()
231 unsigned int cpu = (unsigned int)plat_core_pos_by_mpidr(mpidr); in plat_power_domain_off() local
233 assert(cpu < PLATFORM_CORE_COUNT); in plat_power_domain_off()
235 plat_cpu_pwrdwn_common(cpu, state, 0U); in plat_power_domain_off()
236 spm_poweroff_cpu(0U, cpu); in plat_power_domain_off()
239 mcucfg_disable_gic_wakeup(0U, cpu); in plat_power_domain_off()
242 plat_cluster_pwrdwn_common(cpu, state, 0U); in plat_power_domain_off()
248 unsigned int cpu = plat_my_core_pos(); in plat_power_domain_suspend() local
250 assert(cpu < PLATFORM_CORE_COUNT); in plat_power_domain_suspend()
252 plat_mt_pm_invoke_no_check(pwr_prompt, cpu, state); in plat_power_domain_suspend()
255 plat_cpu_pwrdwn_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend()
259 plat_cluster_pwrdwn_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend()
264 plat_mcusys_pwrdwn_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend()
270 unsigned int cpu = plat_my_core_pos(); in plat_power_domain_suspend_finish() local
272 assert(cpu < PLATFORM_CORE_COUNT); in plat_power_domain_suspend_finish()
276 plat_mcusys_pwron_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend_finish()
281 plat_cluster_pwron_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend_finish()
285 plat_cpu_pwron_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend_finish()
287 plat_mt_pm_invoke_no_check(pwr_reflect, cpu, state); in plat_power_domain_suspend_finish()
295 unsigned int cpu = plat_my_core_pos(); in plat_validate_power_state() local
318 plat_power_state[cpu] = power_state; in plat_validate_power_state()
325 unsigned int cpu = plat_my_core_pos(); in plat_get_sys_suspend_power_state() local
331 plat_power_state[cpu] = in plat_get_sys_suspend_power_state()
337 &plat_power_state[cpu], in plat_get_sys_suspend_power_state()
338 sizeof(plat_power_state[cpu])); in plat_get_sys_suspend_power_state()