Lines Matching refs:pwrdm

141 static int am33xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst)  in am33xx_pwrdm_set_next_pwrst()  argument
145 pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_set_next_pwrst()
149 static int am33xx_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_read_next_pwrst() argument
153 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_read_next_pwrst()
160 static int am33xx_pwrdm_read_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_read_pwrst() argument
164 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstst_offs); in am33xx_pwrdm_read_pwrst()
171 static int am33xx_pwrdm_set_lowpwrstchange(struct powerdomain *pwrdm) in am33xx_pwrdm_set_lowpwrstchange() argument
175 pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_set_lowpwrstchange()
179 static int am33xx_pwrdm_clear_all_prev_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_clear_all_prev_pwrst() argument
183 pwrdm->prcm_offs, pwrdm->pwrstst_offs); in am33xx_pwrdm_clear_all_prev_pwrst()
187 static int am33xx_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in am33xx_pwrdm_set_logic_retst() argument
191 m = pwrdm->logicretstate_mask; in am33xx_pwrdm_set_logic_retst()
196 pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_set_logic_retst()
201 static int am33xx_pwrdm_read_logic_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_read_logic_pwrst() argument
205 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstst_offs); in am33xx_pwrdm_read_logic_pwrst()
212 static int am33xx_pwrdm_read_logic_retst(struct powerdomain *pwrdm) in am33xx_pwrdm_read_logic_retst() argument
216 m = pwrdm->logicretstate_mask; in am33xx_pwrdm_read_logic_retst()
220 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_read_logic_retst()
227 static int am33xx_pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, in am33xx_pwrdm_set_mem_onst() argument
232 m = pwrdm->mem_on_mask[bank]; in am33xx_pwrdm_set_mem_onst()
237 pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_set_mem_onst()
242 static int am33xx_pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, in am33xx_pwrdm_set_mem_retst() argument
247 m = pwrdm->mem_ret_mask[bank]; in am33xx_pwrdm_set_mem_retst()
252 pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_set_mem_retst()
257 static int am33xx_pwrdm_read_mem_pwrst(struct powerdomain *pwrdm, u8 bank) in am33xx_pwrdm_read_mem_pwrst() argument
261 m = pwrdm->mem_pwrst_mask[bank]; in am33xx_pwrdm_read_mem_pwrst()
265 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstst_offs); in am33xx_pwrdm_read_mem_pwrst()
272 static int am33xx_pwrdm_read_mem_retst(struct powerdomain *pwrdm, u8 bank) in am33xx_pwrdm_read_mem_retst() argument
276 m = pwrdm->mem_retst_mask[bank]; in am33xx_pwrdm_read_mem_retst()
280 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_read_mem_retst()
287 static int am33xx_pwrdm_wait_transition(struct powerdomain *pwrdm) in am33xx_pwrdm_wait_transition() argument
298 while ((am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstst_offs) in am33xx_pwrdm_wait_transition()
305 pwrdm->name); in am33xx_pwrdm_wait_transition()
337 static void am33xx_pwrdm_save_context(struct powerdomain *pwrdm) in am33xx_pwrdm_save_context() argument
339 pwrdm->context = am33xx_prm_read_reg(pwrdm->prcm_offs, in am33xx_pwrdm_save_context()
340 pwrdm->pwrstctrl_offs); in am33xx_pwrdm_save_context()
345 pwrdm->context &= ~AM33XX_LOWPOWERSTATECHANGE_MASK; in am33xx_pwrdm_save_context()
348 static void am33xx_pwrdm_restore_context(struct powerdomain *pwrdm) in am33xx_pwrdm_restore_context() argument
352 st = am33xx_prm_read_reg(pwrdm->prcm_offs, in am33xx_pwrdm_restore_context()
353 pwrdm->pwrstst_offs); in am33xx_pwrdm_restore_context()
355 am33xx_prm_write_reg(pwrdm->context, pwrdm->prcm_offs, in am33xx_pwrdm_restore_context()
356 pwrdm->pwrstctrl_offs); in am33xx_pwrdm_restore_context()
360 ctrl = OMAP_POWERSTATEST_MASK & pwrdm->context; in am33xx_pwrdm_restore_context()
363 am33xx_pwrdm_wait_transition(pwrdm); in am33xx_pwrdm_restore_context()