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()
3645 struct regulator_state *rstate; in _regulator_do_set_suspend_voltage() local
3648 rstate = regulator_get_suspend_state(rdev, state); in _regulator_do_set_suspend_voltage()
3649 if (rstate == NULL) in _regulator_do_set_suspend_voltage()
3652 if (min_uV < rstate->min_uV) in _regulator_do_set_suspend_voltage()
3653 min_uV = rstate->min_uV; in _regulator_do_set_suspend_voltage()
3654 if (max_uV > rstate->max_uV) in _regulator_do_set_suspend_voltage()
3655 max_uV = rstate->max_uV; in _regulator_do_set_suspend_voltage()
3663 rstate->uV = uV; in _regulator_do_set_suspend_voltage()
4117 struct regulator_state *rstate; in regulator_suspend_toggle() local
4119 rstate = regulator_get_suspend_state(rdev, state); in regulator_suspend_toggle()
4120 if (rstate == NULL) in regulator_suspend_toggle()
4123 if (!rstate->changeable) in regulator_suspend_toggle()
4126 rstate->enabled = (en) ? ENABLE_IN_SUSPEND : DISABLE_IN_SUSPEND; in regulator_suspend_toggle()
4163 struct regulator_state *rstate; in _regulator_set_suspend_voltage() local
4165 rstate = regulator_get_suspend_state(rdev, state); in _regulator_set_suspend_voltage()
4166 if (rstate == NULL) in _regulator_set_suspend_voltage()
4169 if (rstate->min_uV == rstate->max_uV) { in _regulator_set_suspend_voltage()
5717 const struct regulator_state *rstate; in regulator_suspend() local
5719 rstate = regulator_get_suspend_state_check(rdev, state); in regulator_suspend()
5720 if (!rstate) in regulator_suspend()
5724 ret = __suspend_set_state(rdev, rstate); in regulator_suspend()
5734 struct regulator_state *rstate; in regulator_resume() local
5737 rstate = regulator_get_suspend_state(rdev, state); in regulator_resume()
5738 if (rstate == NULL) in regulator_resume()
5747 if (rstate->enabled == ENABLE_IN_SUSPEND || in regulator_resume()
5748 rstate->enabled == DISABLE_IN_SUSPEND) in regulator_resume()