Lines Matching refs:mpidr
105 static struct cluster_context *get_cluster_data(unsigned long mpidr) in get_cluster_data() argument
109 clusterid = (mpidr & MPIDR_CLUSTER_MASK) >> MPIDR_AFFINITY_BITS; in get_cluster_data()
114 static struct core_context *get_core_data(unsigned long mpidr) in get_core_data() argument
119 cluster = get_cluster_data(mpidr); in get_core_data()
120 cpuid = mpidr & MPIDR_CPU_MASK; in get_core_data()
207 static void mt_cpu_save(unsigned long mpidr) in mt_cpu_save() argument
211 core = get_core_data(mpidr); in mt_cpu_save()
218 static void mt_cpu_restore(unsigned long mpidr) in mt_cpu_restore() argument
222 core = get_core_data(mpidr); in mt_cpu_restore()
226 static void mt_platform_save_context(unsigned long mpidr) in mt_platform_save_context() argument
229 mt_cpu_save(mpidr); in mt_platform_save_context()
232 static void mt_platform_restore_context(unsigned long mpidr) in mt_platform_restore_context() argument
235 mt_cpu_restore(mpidr); in mt_platform_restore_context()
256 static int plat_power_domain_on(unsigned long mpidr) in plat_power_domain_on() argument
263 cpu_id = mpidr & MPIDR_CPU_MASK; in plat_power_domain_on()
264 cluster_id = mpidr & MPIDR_CLUSTER_MASK; in plat_power_domain_on()
275 spm_hotplug_on(mpidr); in plat_power_domain_on()
293 unsigned long mpidr = read_mpidr_el1(); in plat_power_domain_off() local
298 spm_hotplug_off(mpidr); in plat_power_domain_off()
300 trace_power_flow(mpidr, CPU_DOWN); in plat_power_domain_off()
306 trace_power_flow(mpidr, CLUSTER_DOWN); in plat_power_domain_off()
324 unsigned long mpidr = read_mpidr_el1(); in plat_power_domain_suspend() local
329 cpu_id = mpidr & MPIDR_CPU_MASK; in plat_power_domain_suspend()
330 cluster_id = mpidr & MPIDR_CLUSTER_MASK; in plat_power_domain_suspend()
340 spm_mcdi_prepare_for_off_state(mpidr, MTK_PWR_LVL0); in plat_power_domain_suspend()
342 spm_mcdi_prepare_for_off_state(mpidr, MTK_PWR_LVL1); in plat_power_domain_suspend()
345 mt_platform_save_context(mpidr); in plat_power_domain_suspend()
355 disable_scu(mpidr); in plat_power_domain_suspend()
374 unsigned long mpidr = read_mpidr_el1(); in plat_power_domain_on_finish() local
384 trace_power_flow(mpidr, CLUSTER_UP); in plat_power_domain_on_finish()
394 trace_power_flow(mpidr, CPU_UP); in plat_power_domain_on_finish()
404 unsigned long mpidr = read_mpidr_el1(); in plat_power_domain_suspend_finish() local
413 enable_scu(mpidr); in plat_power_domain_suspend_finish()
423 mt_platform_restore_context(mpidr); in plat_power_domain_suspend_finish()
426 spm_mcdi_finish_for_on_state(mpidr, MTK_PWR_LVL0); in plat_power_domain_suspend_finish()
428 spm_mcdi_finish_for_on_state(mpidr, MTK_PWR_LVL1); in plat_power_domain_suspend_finish()