/arch/arm/mach-omap2/ |
D | pm44xx.c | 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() [all …]
|
D | pm34xx.c | 308 struct power_state *pwrst; in omap3_pm_suspend() local 312 list_for_each_entry(pwrst, &pwrst_list, node) in omap3_pm_suspend() 313 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 315 list_for_each_entry(pwrst, &pwrst_list, node) { in omap3_pm_suspend() 316 if (omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state)) in omap3_pm_suspend() 318 if (pwrdm_clear_all_prev_pwrst(pwrst->pwrdm)) in omap3_pm_suspend() 328 list_for_each_entry(pwrst, &pwrst_list, node) { in omap3_pm_suspend() 329 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 330 if (state > pwrst->next_state) { in omap3_pm_suspend() 332 pwrst->pwrdm->name, pwrst->next_state); in omap3_pm_suspend() [all …]
|
D | powerdomain.c | 237 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() 529 int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in pwrdm_set_next_pwrst() argument 536 if (!(pwrdm->pwrsts & (1 << pwrst))) in pwrdm_set_next_pwrst() 540 pwrdm->name, pwrst); in pwrdm_set_next_pwrst() 544 trace_power_domain_target_rcuidle(pwrdm->name, pwrst, in pwrdm_set_next_pwrst() 547 ret = arch_pwrdm->pwrdm_set_next_pwrst(pwrdm, pwrst); in pwrdm_set_next_pwrst() 631 int pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in pwrdm_set_logic_retst() argument 638 if (!(pwrdm->pwrsts_logic_ret & (1 << pwrst))) in pwrdm_set_logic_retst() 642 pwrdm->name, pwrst); in pwrdm_set_logic_retst() [all …]
|
D | prm2xxx.c | 81 u8 pwrst; in omap2xxx_pwrst_to_common_pwrst() local 85 pwrst = PWRDM_POWER_OFF; in omap2xxx_pwrst_to_common_pwrst() 88 pwrst = PWRDM_POWER_RET; in omap2xxx_pwrst_to_common_pwrst() 91 pwrst = PWRDM_POWER_ON; in omap2xxx_pwrst_to_common_pwrst() 97 return pwrst; in omap2xxx_pwrst_to_common_pwrst() 149 static int omap2xxx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap2xxx_pwrdm_set_next_pwrst() argument 153 switch (pwrst) { in omap2xxx_pwrdm_set_next_pwrst()
|
D | powerdomain.h | 180 int (*pwrdm_set_next_pwrst)(struct powerdomain *pwrdm, u8 pwrst); 184 int (*pwrdm_set_logic_retst)(struct powerdomain *pwrdm, u8 pwrst); 185 int (*pwrdm_set_mem_onst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 186 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 | 112 u8 pwrst) 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() 125 u8 pwrst) 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() 157 int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap2_pwrdm_set_logic_retst() argument 161 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 | omap-iommu.c | 114 u8 *pwrst) in omap_iommu_set_pwrdm_constraint() argument 125 *pwrst = pwrdm_read_next_pwrst(pwrdm); in omap_iommu_set_pwrdm_constraint() 129 if (*pwrst > PWRDM_POWER_RET) in omap_iommu_set_pwrdm_constraint() 132 next_pwrst = request ? PWRDM_POWER_ON : *pwrst; in omap_iommu_set_pwrdm_constraint()
|
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 | 427 static int omap4_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_next_pwrst() argument 430 (pwrst << OMAP_POWERSTATE_SHIFT), in omap4_pwrdm_set_next_pwrst() 490 static int omap4_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_logic_retst() argument 494 v = pwrst << __ffs(OMAP4430_LOGICRETSTATE_MASK); in omap4_pwrdm_set_logic_retst() 503 u8 pwrst) in omap4_pwrdm_set_mem_onst() argument 509 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_onst() 517 u8 pwrst) in omap4_pwrdm_set_mem_retst() argument 523 omap4_prminst_rmw_inst_reg_bits(m, (pwrst << __ffs(m)), in omap4_pwrdm_set_mem_retst()
|
D | powerdomains3xxx_data.c | 513 static int ti81xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in ti81xx_pwrdm_set_next_pwrst() argument 516 (pwrst << OMAP_POWERSTATE_SHIFT), in ti81xx_pwrdm_set_next_pwrst()
|
D | pdata-quirks.c | 48 u8 *pwrst); 51 bool request, u8 *pwrst) in omap_iommu_set_pwrdm_constraint() argument
|
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()
|