Lines Matching refs:rstate

569 	const struct regulator_state *rstate;  in regulator_get_suspend_state_check()  local
571 rstate = regulator_get_suspend_state(rdev, state); in regulator_get_suspend_state_check()
572 if (rstate == NULL) in regulator_get_suspend_state_check()
579 if (rstate->enabled != ENABLE_IN_SUSPEND && in regulator_get_suspend_state_check()
580 rstate->enabled != DISABLE_IN_SUSPEND) { in regulator_get_suspend_state_check()
587 return rstate; in regulator_get_suspend_state_check()
1063 const struct regulator_state *rstate) in __suspend_set_state() argument
1067 if (rstate->enabled == ENABLE_IN_SUSPEND && in __suspend_set_state()
1070 else if (rstate->enabled == DISABLE_IN_SUSPEND && in __suspend_set_state()
1081 if (rdev->desc->ops->set_suspend_voltage && rstate->uV > 0) { in __suspend_set_state()
1082 ret = rdev->desc->ops->set_suspend_voltage(rdev, rstate->uV); in __suspend_set_state()
1089 if (rdev->desc->ops->set_suspend_mode && rstate->mode > 0) { in __suspend_set_state()
1090 ret = rdev->desc->ops->set_suspend_mode(rdev, rstate->mode); in __suspend_set_state()
1102 const struct regulator_state *rstate; in suspend_set_initial_state() local
1104 rstate = regulator_get_suspend_state_check(rdev, in suspend_set_initial_state()
1106 if (!rstate) in suspend_set_initial_state()
1109 return __suspend_set_state(rdev, rstate); in suspend_set_initial_state()
3777 struct regulator_state *rstate; in _regulator_do_set_suspend_voltage() local
3780 rstate = regulator_get_suspend_state(rdev, state); in _regulator_do_set_suspend_voltage()
3781 if (rstate == NULL) in _regulator_do_set_suspend_voltage()
3784 if (min_uV < rstate->min_uV) in _regulator_do_set_suspend_voltage()
3785 min_uV = rstate->min_uV; in _regulator_do_set_suspend_voltage()
3786 if (max_uV > rstate->max_uV) in _regulator_do_set_suspend_voltage()
3787 max_uV = rstate->max_uV; in _regulator_do_set_suspend_voltage()
3795 rstate->uV = uV; in _regulator_do_set_suspend_voltage()
4250 struct regulator_state *rstate; in regulator_suspend_toggle() local
4252 rstate = regulator_get_suspend_state(rdev, state); in regulator_suspend_toggle()
4253 if (rstate == NULL) in regulator_suspend_toggle()
4256 if (!rstate->changeable) in regulator_suspend_toggle()
4259 rstate->enabled = (en) ? ENABLE_IN_SUSPEND : DISABLE_IN_SUSPEND; in regulator_suspend_toggle()
4296 struct regulator_state *rstate; in _regulator_set_suspend_voltage() local
4298 rstate = regulator_get_suspend_state(rdev, state); in _regulator_set_suspend_voltage()
4299 if (rstate == NULL) in _regulator_set_suspend_voltage()
4302 if (rstate->min_uV == rstate->max_uV) { in _regulator_set_suspend_voltage()
6026 const struct regulator_state *rstate; in regulator_suspend() local
6028 rstate = regulator_get_suspend_state_check(rdev, state); in regulator_suspend()
6029 if (!rstate) in regulator_suspend()
6033 ret = __suspend_set_state(rdev, rstate); in regulator_suspend()
6043 struct regulator_state *rstate; in regulator_resume() local
6046 rstate = regulator_get_suspend_state(rdev, state); in regulator_resume()
6047 if (rstate == NULL) in regulator_resume()
6056 if (rstate->enabled == ENABLE_IN_SUSPEND || in regulator_resume()
6057 rstate->enabled == DISABLE_IN_SUSPEND) in regulator_resume()