• Home
  • Raw
  • Download

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()
78 ptp3_deinit(cpu); in plat_cpu_pwrdwn_common()
81 static void plat_cpu_pwron_common(unsigned int cpu, in plat_cpu_pwron_common() argument
84 assert(cpu == plat_my_core_pos()); in plat_cpu_pwron_common()
86 plat_mt_pm_invoke_no_check(pwr_cpu_on, cpu, state); in plat_cpu_pwron_common()
91 gicv3_rdistif_on(cpu); in plat_cpu_pwron_common()
92 gicv3_cpuif_enable(cpu); in plat_cpu_pwron_common()
106 ptp3_init(cpu); in plat_cpu_pwron_common()
114 static void plat_cluster_pwrdwn_common(unsigned int cpu, in plat_cluster_pwrdwn_common() argument
117 assert(cpu == plat_my_core_pos()); in plat_cluster_pwrdwn_common()
119 if (plat_mt_pm_invoke(pwr_cluster_dwn, cpu, state) != 0) { in plat_cluster_pwrdwn_common()
129 static void plat_cluster_pwron_common(unsigned int cpu, in plat_cluster_pwron_common() argument
132 assert(cpu == plat_my_core_pos()); in plat_cluster_pwron_common()
134 if (plat_mt_pm_invoke(pwr_cluster_on, cpu, state) != 0) { in plat_cluster_pwron_common()
147 static void plat_mcusys_pwrdwn_common(unsigned int cpu, in plat_mcusys_pwrdwn_common() argument
150 assert(cpu == plat_my_core_pos()); in plat_mcusys_pwrdwn_common()
152 if (plat_mt_pm_invoke(pwr_mcusys_dwn, cpu, state) != 0) { in plat_mcusys_pwrdwn_common()
160 static void plat_mcusys_pwron_common(unsigned int cpu, in plat_mcusys_pwron_common() argument
163 assert(cpu == plat_my_core_pos()); in plat_mcusys_pwron_common()
165 if (plat_mt_pm_invoke(pwr_mcusys_on, cpu, state) != 0) { in plat_mcusys_pwron_common()
173 plat_mt_pm_invoke_no_check(pwr_mcusys_on_finished, cpu, state); in plat_mcusys_pwron_common()
196 unsigned int cpu = (unsigned int)plat_core_pos_by_mpidr(mpidr); in plat_power_domain_on() local
199 if (cpu >= PLATFORM_CORE_COUNT) { in plat_power_domain_on()
208 mcucfg_init_archstate(cluster, cpu, true); in plat_power_domain_on()
209 mcucfg_set_bootaddr(cluster, cpu, secure_entrypoint); in plat_power_domain_on()
210 spm_poweron_cpu(cluster, cpu); in plat_power_domain_on()
218 unsigned int cpu = (unsigned int)plat_core_pos_by_mpidr(mpidr); in plat_power_domain_on_finish() local
220 assert(cpu < PLATFORM_CORE_COUNT); in plat_power_domain_on_finish()
223 mcucfg_enable_gic_wakeup(0U, cpu); in plat_power_domain_on_finish()
226 plat_cluster_pwron_common(cpu, state, 0U); in plat_power_domain_on_finish()
229 plat_cpu_pwron_common(cpu, state, 0U); in plat_power_domain_on_finish()
235 unsigned int cpu = (unsigned int)plat_core_pos_by_mpidr(mpidr); in plat_power_domain_off() local
237 assert(cpu < PLATFORM_CORE_COUNT); in plat_power_domain_off()
239 plat_cpu_pwrdwn_common(cpu, state, 0U); in plat_power_domain_off()
240 spm_poweroff_cpu(0U, cpu); in plat_power_domain_off()
243 mcucfg_disable_gic_wakeup(0U, cpu); in plat_power_domain_off()
246 plat_cluster_pwrdwn_common(cpu, state, 0U); in plat_power_domain_off()
252 unsigned int cpu = plat_my_core_pos(); in plat_power_domain_suspend() local
254 assert(cpu < PLATFORM_CORE_COUNT); in plat_power_domain_suspend()
256 plat_mt_pm_invoke_no_check(pwr_prompt, cpu, state); in plat_power_domain_suspend()
259 plat_cpu_pwrdwn_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend()
263 plat_cluster_pwrdwn_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend()
268 plat_mcusys_pwrdwn_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend()
274 unsigned int cpu = plat_my_core_pos(); in plat_power_domain_suspend_finish() local
276 assert(cpu < PLATFORM_CORE_COUNT); in plat_power_domain_suspend_finish()
280 plat_mcusys_pwron_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend_finish()
285 plat_cluster_pwron_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend_finish()
289 plat_cpu_pwron_common(cpu, state, plat_power_state[cpu]); in plat_power_domain_suspend_finish()
291 plat_mt_pm_invoke_no_check(pwr_reflect, cpu, state); in plat_power_domain_suspend_finish()
299 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()