Lines Matching refs:pwrdm
111 int omap2_pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, in omap2_pwrdm_set_mem_onst() argument
118 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_onst()
124 int omap2_pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, in omap2_pwrdm_set_mem_retst() argument
131 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_retst()
137 int omap2_pwrdm_read_mem_pwrst(struct powerdomain *pwrdm, u8 bank) in omap2_pwrdm_read_mem_pwrst() argument
143 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, OMAP2_PM_PWSTST, in omap2_pwrdm_read_mem_pwrst()
147 int omap2_pwrdm_read_mem_retst(struct powerdomain *pwrdm, u8 bank) in omap2_pwrdm_read_mem_retst() argument
153 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap2_pwrdm_read_mem_retst()
157 int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap2_pwrdm_set_logic_retst() argument
162 omap2_prm_rmw_mod_reg_bits(OMAP_LOGICRETSTATE_MASK, v, pwrdm->prcm_offs, in omap2_pwrdm_set_logic_retst()
168 int omap2_pwrdm_wait_transition(struct powerdomain *pwrdm) in omap2_pwrdm_wait_transition() argument
179 while ((omap2_prm_read_mod_reg(pwrdm->prcm_offs, OMAP2_PM_PWSTST) & in omap2_pwrdm_wait_transition()
186 pwrdm->name); in omap2_pwrdm_wait_transition()
199 clkdm1->pwrdm.ptr->prcm_offs, PM_WKDEP); in omap2_clkdm_add_wkdep()
207 clkdm1->pwrdm.ptr->prcm_offs, PM_WKDEP); in omap2_clkdm_del_wkdep()
214 return omap2_prm_read_mod_bits_shift(clkdm1->pwrdm.ptr->prcm_offs, in omap2_clkdm_read_wkdep()
233 omap2_prm_clear_mod_reg_bits(mask, clkdm->pwrdm.ptr->prcm_offs, in omap2_clkdm_clear_all_wkdeps()