Lines Matching refs:rstate

564 	const struct regulator_state *rstate;  in regulator_get_suspend_state_check()  local
566 rstate = regulator_get_suspend_state(rdev, state); in regulator_get_suspend_state_check()
567 if (rstate == NULL) in regulator_get_suspend_state_check()
574 if (rstate->enabled != ENABLE_IN_SUSPEND && in regulator_get_suspend_state_check()
575 rstate->enabled != DISABLE_IN_SUSPEND) { in regulator_get_suspend_state_check()
582 return rstate; in regulator_get_suspend_state_check()
1038 const struct regulator_state *rstate) in __suspend_set_state() argument
1042 if (rstate->enabled == ENABLE_IN_SUSPEND && in __suspend_set_state()
1045 else if (rstate->enabled == DISABLE_IN_SUSPEND && in __suspend_set_state()
1056 if (rdev->desc->ops->set_suspend_voltage && rstate->uV > 0) { in __suspend_set_state()
1057 ret = rdev->desc->ops->set_suspend_voltage(rdev, rstate->uV); in __suspend_set_state()
1064 if (rdev->desc->ops->set_suspend_mode && rstate->mode > 0) { in __suspend_set_state()
1065 ret = rdev->desc->ops->set_suspend_mode(rdev, rstate->mode); in __suspend_set_state()
1077 const struct regulator_state *rstate; in suspend_set_initial_state() local
1079 rstate = regulator_get_suspend_state_check(rdev, in suspend_set_initial_state()
1081 if (!rstate) in suspend_set_initial_state()
1084 return __suspend_set_state(rdev, rstate); in suspend_set_initial_state()
3637 struct regulator_state *rstate; in _regulator_do_set_suspend_voltage() local
3640 rstate = regulator_get_suspend_state(rdev, state); in _regulator_do_set_suspend_voltage()
3641 if (rstate == NULL) in _regulator_do_set_suspend_voltage()
3644 if (min_uV < rstate->min_uV) in _regulator_do_set_suspend_voltage()
3645 min_uV = rstate->min_uV; in _regulator_do_set_suspend_voltage()
3646 if (max_uV > rstate->max_uV) in _regulator_do_set_suspend_voltage()
3647 max_uV = rstate->max_uV; in _regulator_do_set_suspend_voltage()
3655 rstate->uV = uV; in _regulator_do_set_suspend_voltage()
4109 struct regulator_state *rstate; in regulator_suspend_toggle() local
4111 rstate = regulator_get_suspend_state(rdev, state); in regulator_suspend_toggle()
4112 if (rstate == NULL) in regulator_suspend_toggle()
4115 if (!rstate->changeable) in regulator_suspend_toggle()
4118 rstate->enabled = (en) ? ENABLE_IN_SUSPEND : DISABLE_IN_SUSPEND; in regulator_suspend_toggle()
4155 struct regulator_state *rstate; in _regulator_set_suspend_voltage() local
4157 rstate = regulator_get_suspend_state(rdev, state); in _regulator_set_suspend_voltage()
4158 if (rstate == NULL) in _regulator_set_suspend_voltage()
4161 if (rstate->min_uV == rstate->max_uV) { in _regulator_set_suspend_voltage()
5708 const struct regulator_state *rstate; in regulator_suspend() local
5710 rstate = regulator_get_suspend_state_check(rdev, state); in regulator_suspend()
5711 if (!rstate) in regulator_suspend()
5715 ret = __suspend_set_state(rdev, rstate); in regulator_suspend()
5725 struct regulator_state *rstate; in regulator_resume() local
5728 rstate = regulator_get_suspend_state(rdev, state); in regulator_resume()
5729 if (rstate == NULL) in regulator_resume()
5738 if (rstate->enabled == ENABLE_IN_SUSPEND || in regulator_resume()
5739 rstate->enabled == DISABLE_IN_SUSPEND) in regulator_resume()