/arch/arm/mach-omap2/ |
D | pm44xx.c | 42 struct power_state *pwrst; in omap4_pm_suspend() local 47 list_for_each_entry(pwrst, &pwrst_list, node) { in omap4_pm_suspend() 48 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 49 pwrst->saved_logic_state = pwrdm_read_logic_retst(pwrst->pwrdm); in omap4_pm_suspend() 53 list_for_each_entry(pwrst, &pwrst_list, node) { in omap4_pm_suspend() 54 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap4_pm_suspend() 55 pwrdm_set_logic_retst(pwrst->pwrdm, PWRDM_POWER_OFF); in omap4_pm_suspend() 70 list_for_each_entry(pwrst, &pwrst_list, node) { in omap4_pm_suspend() 71 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 72 if (state > pwrst->next_state) { in omap4_pm_suspend() [all …]
|
D | pm34xx.c | 362 struct power_state *pwrst; in omap3_pm_suspend() local 366 list_for_each_entry(pwrst, &pwrst_list, node) in omap3_pm_suspend() 367 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 369 list_for_each_entry(pwrst, &pwrst_list, node) { in omap3_pm_suspend() 370 if (omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state)) in omap3_pm_suspend() 372 if (pwrdm_clear_all_prev_pwrst(pwrst->pwrdm)) in omap3_pm_suspend() 382 list_for_each_entry(pwrst, &pwrst_list, node) { in omap3_pm_suspend() 383 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 384 if (state > pwrst->next_state) { in omap3_pm_suspend() 386 pwrst->pwrdm->name, pwrst->next_state); in omap3_pm_suspend() [all …]
|
D | prm2xxx.c | 87 u8 pwrst; in omap2xxx_pwrst_to_common_pwrst() local 91 pwrst = PWRDM_POWER_OFF; in omap2xxx_pwrst_to_common_pwrst() 94 pwrst = PWRDM_POWER_RET; in omap2xxx_pwrst_to_common_pwrst() 97 pwrst = PWRDM_POWER_ON; in omap2xxx_pwrst_to_common_pwrst() 103 return pwrst; in omap2xxx_pwrst_to_common_pwrst() 136 static int omap2xxx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap2xxx_pwrdm_set_next_pwrst() argument 140 switch (pwrst) { in omap2xxx_pwrdm_set_next_pwrst()
|
D | powerdomain.c | 230 u8 curr_pwrst, u8 pwrst, in _pwrdm_save_clkdm_state_and_activate() argument 236 if (curr_pwrst > pwrst && in _pwrdm_save_clkdm_state_and_activate() 585 int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in pwrdm_set_next_pwrst() argument 592 if (!(pwrdm->pwrsts & (1 << pwrst))) in pwrdm_set_next_pwrst() 596 pwrdm->name, pwrst); in pwrdm_set_next_pwrst() 600 trace_power_domain_target(pwrdm->name, pwrst, in pwrdm_set_next_pwrst() 603 ret = arch_pwrdm->pwrdm_set_next_pwrst(pwrdm, pwrst); in pwrdm_set_next_pwrst() 687 int pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in pwrdm_set_logic_retst() argument 694 if (!(pwrdm->pwrsts_logic_ret & (1 << pwrst))) in pwrdm_set_logic_retst() 698 pwrdm->name, pwrst); in pwrdm_set_logic_retst() [all …]
|
D | prm2xxx_3xxx.c | 107 u8 pwrst) in omap2_pwrdm_set_mem_onst() argument 113 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_onst() 120 u8 pwrst) in omap2_pwrdm_set_mem_retst() argument 126 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_retst() 152 int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap2_pwrdm_set_logic_retst() argument 156 v = pwrst << __ffs(OMAP_LOGICRETSTATE_MASK); in omap2_pwrdm_set_logic_retst()
|
D | powerdomain.h | 181 int (*pwrdm_set_next_pwrst)(struct powerdomain *pwrdm, u8 pwrst); 185 int (*pwrdm_set_logic_retst)(struct powerdomain *pwrdm, u8 pwrst); 186 int (*pwrdm_set_mem_onst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 187 int (*pwrdm_set_mem_retst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 221 int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst); 227 int pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst); 228 int pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 229 int pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, u8 pwrst);
|
D | prm33xx.c | 139 static int am33xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in am33xx_pwrdm_set_next_pwrst() argument 142 (pwrst << OMAP_POWERSTATE_SHIFT), in am33xx_pwrdm_set_next_pwrst() 196 static int am33xx_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in am33xx_pwrdm_set_logic_retst() argument 204 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_logic_retst() 237 u8 pwrst) in am33xx_pwrdm_set_mem_onst() argument 245 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_onst() 252 u8 pwrst) in am33xx_pwrdm_set_mem_retst() argument 260 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_retst()
|
D | prm2xxx_3xxx.h | 107 extern int omap2_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst); 111 u8 pwrst); 113 u8 pwrst); 116 extern int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst);
|
D | prm44xx.c | 382 static int omap4_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_next_pwrst() argument 385 (pwrst << OMAP_POWERSTATE_SHIFT), in omap4_pwrdm_set_next_pwrst() 445 static int omap4_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_logic_retst() argument 449 v = pwrst << __ffs(OMAP4430_LOGICRETSTATE_MASK); in omap4_pwrdm_set_logic_retst() 458 u8 pwrst) in omap4_pwrdm_set_mem_onst() argument 464 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_onst() 472 u8 pwrst) in omap4_pwrdm_set_mem_retst() argument 478 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_retst()
|
D | prm3xxx.c | 280 static int omap3_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap3_pwrdm_set_next_pwrst() argument 283 (pwrst << OMAP_POWERSTATE_SHIFT), in omap3_pwrdm_set_next_pwrst()
|