Home
last modified time | relevance | path

Searched refs:pwrst (Results 1 – 13 of 13) sorted by relevance

/arch/arm/mach-omap2/
Dpm44xx.c54 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 …]
Dpm34xx.c308 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 …]
Dpowerdomain.c237 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 …]
Dprm2xxx.c81 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()
Dpowerdomain.h180 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);
Dprm2xxx_3xxx.c112 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()
Dprm33xx.c149 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()
Domap-iommu.c114 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()
Dprm2xxx_3xxx.h107 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);
Dprm44xx.c427 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()
Dpowerdomains3xxx_data.c513 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()
Dpdata-quirks.c48 u8 *pwrst);
51 bool request, u8 *pwrst) in omap_iommu_set_pwrdm_constraint() argument
Dprm3xxx.c536 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()