Lines Matching defs:mpidr

105 static struct cluster_context *get_cluster_data(unsigned long mpidr)
109 clusterid = (mpidr & MPIDR_CLUSTER_MASK) >> MPIDR_AFFINITY_BITS;
114 static struct core_context *get_core_data(unsigned long mpidr)
119 cluster = get_cluster_data(mpidr);
120 cpuid = mpidr & MPIDR_CPU_MASK;
207 static void mt_cpu_save(unsigned long mpidr)
211 core = get_core_data(mpidr);
218 static void mt_cpu_restore(unsigned long mpidr)
222 core = get_core_data(mpidr);
226 static void mt_platform_save_context(unsigned long mpidr)
229 mt_cpu_save(mpidr);
232 static void mt_platform_restore_context(unsigned long mpidr)
235 mt_cpu_restore(mpidr);
252 * on. The level and mpidr determine the affinity instance.
256 static int plat_power_domain_on(unsigned long mpidr)
263 cpu_id = mpidr & MPIDR_CPU_MASK;
264 cluster_id = mpidr & MPIDR_CLUSTER_MASK;
275 spm_hotplug_on(mpidr);
281 * off. The level and mpidr determine the affinity instance. The 'state' arg.
293 unsigned long mpidr = read_mpidr_el1();
298 spm_hotplug_off(mpidr);
300 trace_power_flow(mpidr, CPU_DOWN);
306 trace_power_flow(mpidr, CLUSTER_DOWN);
312 * suspended. The level and mpidr determine the affinity instance. The 'state'
324 unsigned long mpidr = read_mpidr_el1();
329 cpu_id = mpidr & MPIDR_CPU_MASK;
330 cluster_id = mpidr & MPIDR_CLUSTER_MASK;
340 spm_mcdi_prepare_for_off_state(mpidr, MTK_PWR_LVL0);
342 spm_mcdi_prepare_for_off_state(mpidr, MTK_PWR_LVL1);
345 mt_platform_save_context(mpidr);
355 disable_scu(mpidr);
365 * on after being turned off earlier. The level and mpidr determine the affinity
374 unsigned long mpidr = read_mpidr_el1();
384 trace_power_flow(mpidr, CLUSTER_UP);
394 trace_power_flow(mpidr, CPU_UP);
399 * on after having been suspended earlier. The level and mpidr determine the
404 unsigned long mpidr = read_mpidr_el1();
413 enable_scu(mpidr);
423 mt_platform_restore_context(mpidr);
426 spm_mcdi_finish_for_on_state(mpidr, MTK_PWR_LVL0);
428 spm_mcdi_finish_for_on_state(mpidr, MTK_PWR_LVL1);