Lines Matching refs:platform_ops

161 static const struct mcpm_platform_ops *platform_ops;  variable
165 if (platform_ops) in mcpm_platform_register()
167 platform_ops = ops; in mcpm_platform_register()
173 return (platform_ops) ? true : false; in mcpm_is_available()
201 if (!platform_ops) in mcpm_cpu_power_up()
228 ret = platform_ops->cluster_powerup(cluster); in mcpm_cpu_power_up()
230 ret = platform_ops->cpu_powerup(cpu, cluster); in mcpm_cpu_power_up()
249 if (WARN_ON_ONCE(!platform_ops)) in mcpm_cpu_power_down()
266 platform_ops->cpu_powerdown_prepare(cpu, cluster); in mcpm_cpu_power_down()
267 platform_ops->cluster_powerdown_prepare(cluster); in mcpm_cpu_power_down()
269 platform_ops->cluster_cache_disable(); in mcpm_cpu_power_down()
273 platform_ops->cpu_powerdown_prepare(cpu, cluster); in mcpm_cpu_power_down()
283 platform_ops->cpu_cache_disable(); in mcpm_cpu_power_down()
312 if (WARN_ON_ONCE(!platform_ops || !platform_ops->wait_for_powerdown)) in mcpm_wait_for_cpu_powerdown()
315 ret = platform_ops->wait_for_powerdown(cpu, cluster); in mcpm_wait_for_cpu_powerdown()
325 if (WARN_ON_ONCE(!platform_ops)) in mcpm_cpu_suspend()
329 if (platform_ops->cpu_suspend_prepare) { in mcpm_cpu_suspend()
334 platform_ops->cpu_suspend_prepare(cpu, cluster); in mcpm_cpu_suspend()
346 if (!platform_ops) in mcpm_cpu_powered_up()
358 if (first_man && platform_ops->cluster_is_up) in mcpm_cpu_powered_up()
359 platform_ops->cluster_is_up(cluster); in mcpm_cpu_powered_up()
362 if (platform_ops->cpu_is_up) in mcpm_cpu_powered_up()
363 platform_ops->cpu_is_up(cpu, cluster); in mcpm_cpu_powered_up()