Home
last modified time | relevance | path

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

/arch/arm/mach-omap2/
Dpm44xx.c42 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 …]
Dpm34xx.c362 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 …]
Dprm2xxx.c87 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()
Dpowerdomain.c230 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 …]
Dprm2xxx_3xxx.c107 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()
Dpowerdomain.h181 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);
Dprm33xx.c139 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()
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.c382 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()
Dprm3xxx.c280 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()