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()
4291 struct regulator_state *rstate; in regulator_suspend_toggle() local
4293 rstate = regulator_get_suspend_state(rdev, state); in regulator_suspend_toggle()
4294 if (rstate == NULL) in regulator_suspend_toggle()
4297 if (!rstate->changeable) in regulator_suspend_toggle()
4300 rstate->enabled = (en) ? ENABLE_IN_SUSPEND : DISABLE_IN_SUSPEND; in regulator_suspend_toggle()
4337 struct regulator_state *rstate; in _regulator_set_suspend_voltage() local
4339 rstate = regulator_get_suspend_state(rdev, state); in _regulator_set_suspend_voltage()
4340 if (rstate == NULL) in _regulator_set_suspend_voltage()
4343 if (rstate->min_uV == rstate->max_uV) { in _regulator_set_suspend_voltage()
6068 const struct regulator_state *rstate; in regulator_suspend() local
6070 rstate = regulator_get_suspend_state_check(rdev, state); in regulator_suspend()
6071 if (!rstate) in regulator_suspend()
6075 ret = __suspend_set_state(rdev, rstate); in regulator_suspend()
6085 struct regulator_state *rstate; in regulator_resume() local
6088 rstate = regulator_get_suspend_state(rdev, state); in regulator_resume()
6089 if (rstate == NULL) in regulator_resume()
6098 if (rstate->enabled == ENABLE_IN_SUSPEND || in regulator_resume()
6099 rstate->enabled == DISABLE_IN_SUSPEND) in regulator_resume()