Home | History | Annotate | Download | only in mt6795

Lines Matching defs:mpidr

60 static struct cluster_context *get_cluster_data(unsigned long mpidr)
64 clusterid = (mpidr & MPIDR_CLUSTER_MASK) >> MPIDR_AFFINITY_BITS;
69 static struct core_context *get_core_data(unsigned long mpidr)
74 cluster = get_cluster_data(mpidr);
75 cpuid = mpidr & MPIDR_CPU_MASK;
147 static void mt_cpu_save(unsigned long mpidr)
151 core = get_core_data(mpidr);
158 static void mt_cpu_restore(unsigned long mpidr)
162 core = get_core_data(mpidr);
166 static void mt_platform_save_context(unsigned long mpidr)
169 mt_cpu_save(mpidr);
172 static void mt_platform_restore_context(unsigned long mpidr)
175 mt_cpu_restore(mpidr);
232 * on. The level and mpidr determine the affinity instance.
234 static int plat_affinst_on(unsigned long mpidr,
251 cpu_id = mpidr & MPIDR_CPU_MASK;
252 cluster_id = mpidr & MPIDR_CLUSTER_MASK;
268 * off. The level and mpidr determine the affinity instance. The 'state' arg.
280 unsigned long mpidr = read_mpidr_el1();
289 trace_power_flow(mpidr, CPU_DOWN);
295 trace_power_flow(mpidr, CLUSTER_DOWN);
301 * suspended. The level and mpidr determine the affinity instance. The 'state'
315 unsigned long mpidr = read_mpidr_el1();
324 cpu_id = mpidr & MPIDR_CPU_MASK;
325 cluster_id = mpidr & MPIDR_CLUSTER_MASK;
335 mt_platform_save_context(mpidr);
341 disable_scu(mpidr);
343 trace_power_flow(mpidr, CLUSTER_SUSPEND);
354 * on after being turned off earlier. The level and mpidr determine the affinity
361 unsigned long mpidr = read_mpidr_el1();
369 enable_scu(mpidr);
373 trace_power_flow(mpidr, CLUSTER_UP);
379 trace_power_flow(mpidr, CPU_UP);
384 * on after having been suspended earlier. The level and mpidr determine the
389 unsigned long mpidr = read_mpidr_el1();
403 enable_scu(mpidr);
407 trace_power_flow(mpidr, CLUSTER_UP);
411 mt_platform_restore_context(mpidr);