Lines Matching refs:pwrst
54 struct power_state *pwrst; in omap4_pm_suspend() local
59 list_for_each_entry(pwrst, &pwrst_list, node) { in omap4_pm_suspend()
60 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap4_pm_suspend()
61 pwrst->saved_logic_state = pwrdm_read_logic_retst(pwrst->pwrdm); in omap4_pm_suspend()
65 list_for_each_entry(pwrst, &pwrst_list, node) { in omap4_pm_suspend()
66 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap4_pm_suspend()
67 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->next_logic_state); in omap4_pm_suspend()
82 list_for_each_entry(pwrst, &pwrst_list, node) { in omap4_pm_suspend()
83 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap4_pm_suspend()
84 if (state > pwrst->next_state) { in omap4_pm_suspend()
86 pwrst->pwrdm->name, pwrst->next_state); in omap4_pm_suspend()
89 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); in omap4_pm_suspend()
90 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->saved_logic_state); in omap4_pm_suspend()
115 struct power_state *pwrst; in pwrdms_setup() local
135 pwrst = kmalloc(sizeof(struct power_state), GFP_ATOMIC); in pwrdms_setup()
136 if (!pwrst) in pwrdms_setup()
139 pwrst->pwrdm = pwrdm; in pwrdms_setup()
140 pwrst->next_state = pwrdm_get_valid_lp_state(pwrdm, false, in pwrdms_setup()
142 pwrst->next_logic_state = pwrdm_get_valid_lp_state(pwrdm, true, in pwrdms_setup()
145 list_add(&pwrst->node, &pwrst_list); in pwrdms_setup()
147 return omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in pwrdms_setup()