Lines Matching refs:pwrst
226 * @pwrst: power state to switch to
237 u8 curr_pwrst, u8 pwrst)
242 if (curr_pwrst > pwrst &&
258 * _pwrdm_restore_clkdm_state - restore the clkdm hwsup state after pwrst change
521 * @pwrst: one of the PWRDM_POWER_* macros
523 * Set the powerdomain @pwrdm's next power state to @pwrst. The powerdomain
529 int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst)
536 if (!(pwrdm->pwrsts & (1 << pwrst)))
540 pwrdm->name, pwrst);
544 trace_power_domain_target(pwrdm->name, pwrst,
547 ret = arch_pwrdm->pwrdm_set_next_pwrst(pwrdm, pwrst);
623 * @pwrst: one of the PWRDM_POWER_* macros
625 * Set the next power state @pwrst that the logic portion of the
631 int pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst)
638 if (!(pwrdm->pwrsts_logic_ret & (1 << pwrst)))
642 pwrdm->name, pwrst);
645 ret = arch_pwrdm->pwrdm_set_logic_retst(pwrdm, pwrst);
654 * @pwrst: one of the PWRDM_POWER_* macros
656 * Set the next power state @pwrst that memory bank @bank of the
665 int pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, u8 pwrst)
675 if (!(pwrdm->pwrsts_mem_on[bank] & (1 << pwrst)))
679 pwrdm->name, bank, pwrst);
682 ret = arch_pwrdm->pwrdm_set_mem_onst(pwrdm, bank, pwrst);
691 * @pwrst: one of the PWRDM_POWER_* macros
693 * Set the next power state @pwrst that memory bank @bank of the
696 * different types of memory, depending on the powerdomain. @pwrst
703 int pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, u8 pwrst)
713 if (!(pwrdm->pwrsts_mem_ret[bank] & (1 << pwrst)))
717 pwrdm->name, bank, pwrst);
720 ret = arch_pwrdm->pwrdm_set_mem_retst(pwrdm, bank, pwrst);
1098 * @pwrst: power state to change to
1101 * represented by @pwrdm to the power state represented by @pwrst.
1104 * upon success or if @pwrdm does not support @pwrst or any
1106 * support @pwrst or any lower-power state: this should be an error.
1108 int omap_set_pwrdm_state(struct powerdomain *pwrdm, u8 pwrst)
1117 while (!(pwrdm->pwrsts & (1 << pwrst))) {
1118 if (pwrst == PWRDM_POWER_OFF)
1120 pwrst--;
1132 if (curr_pwrst == pwrst && next_pwrst == pwrst)
1136 pwrst);
1138 ret = pwrdm_set_next_pwrst(pwrdm, pwrst);