/arch/arm/mach-omap2/ |
D | pm44xx.c | 57 struct power_state *pwrst; in omap4_pm_suspend() local 62 list_for_each_entry(pwrst, &pwrst_list, node) { in omap4_pm_suspend() 63 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 64 pwrst->saved_logic_state = pwrdm_read_logic_retst(pwrst->pwrdm); in omap4_pm_suspend() 68 list_for_each_entry(pwrst, &pwrst_list, node) { in omap4_pm_suspend() 69 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap4_pm_suspend() 70 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->next_logic_state); in omap4_pm_suspend() 85 list_for_each_entry(pwrst, &pwrst_list, node) { in omap4_pm_suspend() 86 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 87 if (state > pwrst->next_state) { in omap4_pm_suspend() [all …]
|
D | pm34xx.c | 314 struct power_state *pwrst; in omap3_pm_suspend() local 318 list_for_each_entry(pwrst, &pwrst_list, node) in omap3_pm_suspend() 319 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 321 list_for_each_entry(pwrst, &pwrst_list, node) { in omap3_pm_suspend() 322 if (omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state)) in omap3_pm_suspend() 324 if (pwrdm_clear_all_prev_pwrst(pwrst->pwrdm)) in omap3_pm_suspend() 334 list_for_each_entry(pwrst, &pwrst_list, node) { in omap3_pm_suspend() 335 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 336 if (state > pwrst->next_state) { in omap3_pm_suspend() 338 pwrst->pwrdm->name, pwrst->next_state); in omap3_pm_suspend() [all …]
|
D | powerdomain.c | 236 u8 curr_pwrst, u8 pwrst, in _pwrdm_save_clkdm_state_and_activate() argument 242 if (curr_pwrst > pwrst && in _pwrdm_save_clkdm_state_and_activate() 511 int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in pwrdm_set_next_pwrst() argument 518 if (!(pwrdm->pwrsts & (1 << pwrst))) in pwrdm_set_next_pwrst() 522 pwrdm->name, pwrst); in pwrdm_set_next_pwrst() 526 trace_power_domain_target(pwrdm->name, pwrst, in pwrdm_set_next_pwrst() 529 ret = arch_pwrdm->pwrdm_set_next_pwrst(pwrdm, pwrst); in pwrdm_set_next_pwrst() 613 int pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in pwrdm_set_logic_retst() argument 620 if (!(pwrdm->pwrsts_logic_ret & (1 << pwrst))) in pwrdm_set_logic_retst() 624 pwrdm->name, pwrst); in pwrdm_set_logic_retst() [all …]
|
D | prm2xxx.c | 84 u8 pwrst; in omap2xxx_pwrst_to_common_pwrst() local 88 pwrst = PWRDM_POWER_OFF; in omap2xxx_pwrst_to_common_pwrst() 91 pwrst = PWRDM_POWER_RET; in omap2xxx_pwrst_to_common_pwrst() 94 pwrst = PWRDM_POWER_ON; in omap2xxx_pwrst_to_common_pwrst() 100 return pwrst; in omap2xxx_pwrst_to_common_pwrst() 152 static int omap2xxx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap2xxx_pwrdm_set_next_pwrst() argument 156 switch (pwrst) { in omap2xxx_pwrdm_set_next_pwrst()
|
D | powerdomain.h | 182 int (*pwrdm_set_next_pwrst)(struct powerdomain *pwrdm, u8 pwrst); 186 int (*pwrdm_set_logic_retst)(struct powerdomain *pwrdm, u8 pwrst); 187 int (*pwrdm_set_mem_onst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 188 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 | prm2xxx_3xxx.c | 115 u8 pwrst) in omap2_pwrdm_set_mem_onst() argument 121 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_onst() 128 u8 pwrst) in omap2_pwrdm_set_mem_retst() argument 134 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_retst() 160 int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap2_pwrdm_set_logic_retst() argument 164 v = pwrst << __ffs(OMAP_LOGICRETSTATE_MASK); in omap2_pwrdm_set_logic_retst()
|
D | prm33xx.c | 149 static int am33xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in am33xx_pwrdm_set_next_pwrst() argument 152 (pwrst << OMAP_POWERSTATE_SHIFT), in am33xx_pwrdm_set_next_pwrst() 195 static int am33xx_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in am33xx_pwrdm_set_logic_retst() argument 203 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_logic_retst() 236 u8 pwrst) in am33xx_pwrdm_set_mem_onst() argument 244 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_onst() 251 u8 pwrst) in am33xx_pwrdm_set_mem_retst() argument 259 am33xx_prm_rmw_reg_bits(m, (pwrst << __ffs(m)), in am33xx_pwrdm_set_mem_retst()
|
D | prm2xxx_3xxx.h | 110 extern int omap2_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst); 114 u8 pwrst); 116 u8 pwrst); 119 extern int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst);
|
D | prm44xx.c | 423 static int omap4_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_next_pwrst() argument 426 (pwrst << OMAP_POWERSTATE_SHIFT), in omap4_pwrdm_set_next_pwrst() 486 static int omap4_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_logic_retst() argument 490 v = pwrst << __ffs(OMAP4430_LOGICRETSTATE_MASK); in omap4_pwrdm_set_logic_retst() 499 u8 pwrst) in omap4_pwrdm_set_mem_onst() argument 505 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_onst() 513 u8 pwrst) in omap4_pwrdm_set_mem_retst() argument 519 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_retst()
|
D | powerdomains3xxx_data.c | 514 static int ti81xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in ti81xx_pwrdm_set_next_pwrst() argument 517 (pwrst << OMAP_POWERSTATE_SHIFT), in ti81xx_pwrdm_set_next_pwrst()
|
D | prm3xxx.c | 536 static int omap3_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap3_pwrdm_set_next_pwrst() argument 539 (pwrst << OMAP_POWERSTATE_SHIFT), in omap3_pwrdm_set_next_pwrst()
|