Lines Matching refs:rstate

630 	const struct regulator_state *rstate;  in regulator_get_suspend_state_check()  local
632 rstate = regulator_get_suspend_state(rdev, state); in regulator_get_suspend_state_check()
633 if (rstate == NULL) in regulator_get_suspend_state_check()
640 if (rstate->enabled != ENABLE_IN_SUSPEND && in regulator_get_suspend_state_check()
641 rstate->enabled != DISABLE_IN_SUSPEND) { in regulator_get_suspend_state_check()
648 return rstate; in regulator_get_suspend_state_check()
1104 const struct regulator_state *rstate) in __suspend_set_state() argument
1108 if (rstate->enabled == ENABLE_IN_SUSPEND && in __suspend_set_state()
1111 else if (rstate->enabled == DISABLE_IN_SUSPEND && in __suspend_set_state()
1122 if (rdev->desc->ops->set_suspend_voltage && rstate->uV > 0) { in __suspend_set_state()
1123 ret = rdev->desc->ops->set_suspend_voltage(rdev, rstate->uV); in __suspend_set_state()
1130 if (rdev->desc->ops->set_suspend_mode && rstate->mode > 0) { in __suspend_set_state()
1131 ret = rdev->desc->ops->set_suspend_mode(rdev, rstate->mode); in __suspend_set_state()
1143 const struct regulator_state *rstate; in suspend_set_initial_state() local
1145 rstate = regulator_get_suspend_state_check(rdev, in suspend_set_initial_state()
1147 if (!rstate) in suspend_set_initial_state()
1150 return __suspend_set_state(rdev, rstate); in suspend_set_initial_state()
3711 struct regulator_state *rstate; in _regulator_do_set_suspend_voltage() local
3714 rstate = regulator_get_suspend_state(rdev, state); in _regulator_do_set_suspend_voltage()
3715 if (rstate == NULL) in _regulator_do_set_suspend_voltage()
3718 if (min_uV < rstate->min_uV) in _regulator_do_set_suspend_voltage()
3719 min_uV = rstate->min_uV; in _regulator_do_set_suspend_voltage()
3720 if (max_uV > rstate->max_uV) in _regulator_do_set_suspend_voltage()
3721 max_uV = rstate->max_uV; in _regulator_do_set_suspend_voltage()
3729 rstate->uV = uV; in _regulator_do_set_suspend_voltage()
4183 struct regulator_state *rstate; in regulator_suspend_toggle() local
4185 rstate = regulator_get_suspend_state(rdev, state); in regulator_suspend_toggle()
4186 if (rstate == NULL) in regulator_suspend_toggle()
4189 if (!rstate->changeable) in regulator_suspend_toggle()
4192 rstate->enabled = (en) ? ENABLE_IN_SUSPEND : DISABLE_IN_SUSPEND; in regulator_suspend_toggle()
4229 struct regulator_state *rstate; in _regulator_set_suspend_voltage() local
4231 rstate = regulator_get_suspend_state(rdev, state); in _regulator_set_suspend_voltage()
4232 if (rstate == NULL) in _regulator_set_suspend_voltage()
4235 if (rstate->min_uV == rstate->max_uV) { in _regulator_set_suspend_voltage()
5783 const struct regulator_state *rstate; in regulator_suspend() local
5785 rstate = regulator_get_suspend_state_check(rdev, state); in regulator_suspend()
5786 if (!rstate) in regulator_suspend()
5790 ret = __suspend_set_state(rdev, rstate); in regulator_suspend()
5800 struct regulator_state *rstate; in regulator_resume() local
5803 rstate = regulator_get_suspend_state(rdev, state); in regulator_resume()
5804 if (rstate == NULL) in regulator_resume()
5813 if (rstate->enabled == ENABLE_IN_SUSPEND || in regulator_resume()
5814 rstate->enabled == DISABLE_IN_SUSPEND) in regulator_resume()