Lines Matching refs:mpidr

62 static struct cluster_context *get_cluster_data(unsigned long mpidr)  in get_cluster_data()  argument
66 clusterid = (mpidr & MPIDR_CLUSTER_MASK) >> MPIDR_AFFINITY_BITS; in get_cluster_data()
71 static struct core_context *get_core_data(unsigned long mpidr) in get_core_data() argument
76 cluster = get_cluster_data(mpidr); in get_core_data()
77 cpuid = mpidr & MPIDR_CPU_MASK; in get_core_data()
149 static void mt_cpu_save(unsigned long mpidr) in mt_cpu_save() argument
153 core = get_core_data(mpidr); in mt_cpu_save()
160 static void mt_cpu_restore(unsigned long mpidr) in mt_cpu_restore() argument
164 core = get_core_data(mpidr); in mt_cpu_restore()
168 static void mt_platform_save_context(unsigned long mpidr) in mt_platform_save_context() argument
171 mt_cpu_save(mpidr); in mt_platform_save_context()
174 static void mt_platform_restore_context(unsigned long mpidr) in mt_platform_restore_context() argument
177 mt_cpu_restore(mpidr); in mt_platform_restore_context()
236 static int plat_affinst_on(unsigned long mpidr, in plat_affinst_on() argument
253 cpu_id = mpidr & MPIDR_CPU_MASK; in plat_affinst_on()
254 cluster_id = mpidr & MPIDR_CLUSTER_MASK; in plat_affinst_on()
282 unsigned long mpidr = read_mpidr_el1(); in plat_affinst_off() local
291 trace_power_flow(mpidr, CPU_DOWN); in plat_affinst_off()
297 trace_power_flow(mpidr, CLUSTER_DOWN); in plat_affinst_off()
317 unsigned long mpidr = read_mpidr_el1(); in plat_affinst_suspend() local
326 cpu_id = mpidr & MPIDR_CPU_MASK; in plat_affinst_suspend()
327 cluster_id = mpidr & MPIDR_CLUSTER_MASK; in plat_affinst_suspend()
337 mt_platform_save_context(mpidr); in plat_affinst_suspend()
343 disable_scu(mpidr); in plat_affinst_suspend()
345 trace_power_flow(mpidr, CLUSTER_SUSPEND); in plat_affinst_suspend()
363 unsigned long mpidr = read_mpidr_el1(); in plat_affinst_on_finish() local
371 enable_scu(mpidr); in plat_affinst_on_finish()
375 trace_power_flow(mpidr, CLUSTER_UP); in plat_affinst_on_finish()
381 trace_power_flow(mpidr, CPU_UP); in plat_affinst_on_finish()
391 unsigned long mpidr = read_mpidr_el1(); in plat_affinst_suspend_finish() local
405 enable_scu(mpidr); in plat_affinst_suspend_finish()
409 trace_power_flow(mpidr, CLUSTER_UP); in plat_affinst_suspend_finish()
413 mt_platform_restore_context(mpidr); in plat_affinst_suspend_finish()