Lines Matching refs:pwrdm
55 struct powerdomain *pwrdm; member
308 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap3_pm_suspend()
311 if (omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state)) in omap3_pm_suspend()
313 if (pwrdm_clear_all_prev_pwrst(pwrst->pwrdm)) in omap3_pm_suspend()
324 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap3_pm_suspend()
327 pwrst->pwrdm->name, pwrst->next_state); in omap3_pm_suspend()
330 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); in omap3_pm_suspend()
362 pwrst->pwrdm == core_pwrdm && in omap3_pm_off_mode_enable()
370 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap3_pm_off_mode_enable()
374 int omap3_pm_get_suspend_state(struct powerdomain *pwrdm) in omap3_pm_get_suspend_state() argument
379 if (pwrst->pwrdm == pwrdm) in omap3_pm_get_suspend_state()
385 int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state) in omap3_pm_set_suspend_state() argument
390 if (pwrst->pwrdm == pwrdm) { in omap3_pm_set_suspend_state()
398 static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused) in pwrdms_setup() argument
402 if (!pwrdm->pwrsts) in pwrdms_setup()
408 pwrst->pwrdm = pwrdm; in pwrdms_setup()
417 if (pwrdm_has_hdwr_sar(pwrdm)) in pwrdms_setup()
418 pwrdm_enable_hdwr_sar(pwrdm); in pwrdms_setup()
420 return omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in pwrdms_setup()