Lines Matching refs:rstate

572 	const struct regulator_state *rstate;  in regulator_get_suspend_state_check()  local
574 rstate = regulator_get_suspend_state(rdev, state); in regulator_get_suspend_state_check()
575 if (rstate == NULL) in regulator_get_suspend_state_check()
582 if (rstate->enabled != ENABLE_IN_SUSPEND && in regulator_get_suspend_state_check()
583 rstate->enabled != DISABLE_IN_SUSPEND) { in regulator_get_suspend_state_check()
590 return rstate; in regulator_get_suspend_state_check()
1013 const struct regulator_state *rstate) in __suspend_set_state() argument
1017 if (rstate->enabled == ENABLE_IN_SUSPEND && in __suspend_set_state()
1020 else if (rstate->enabled == DISABLE_IN_SUSPEND && in __suspend_set_state()
1031 if (rdev->desc->ops->set_suspend_voltage && rstate->uV > 0) { in __suspend_set_state()
1032 ret = rdev->desc->ops->set_suspend_voltage(rdev, rstate->uV); in __suspend_set_state()
1039 if (rdev->desc->ops->set_suspend_mode && rstate->mode > 0) { in __suspend_set_state()
1040 ret = rdev->desc->ops->set_suspend_mode(rdev, rstate->mode); in __suspend_set_state()
1052 const struct regulator_state *rstate; in suspend_set_initial_state() local
1054 rstate = regulator_get_suspend_state_check(rdev, in suspend_set_initial_state()
1056 if (!rstate) in suspend_set_initial_state()
1059 return __suspend_set_state(rdev, rstate); in suspend_set_initial_state()
3449 struct regulator_state *rstate; in _regulator_do_set_suspend_voltage() local
3452 rstate = regulator_get_suspend_state(rdev, state); in _regulator_do_set_suspend_voltage()
3453 if (rstate == NULL) in _regulator_do_set_suspend_voltage()
3456 if (min_uV < rstate->min_uV) in _regulator_do_set_suspend_voltage()
3457 min_uV = rstate->min_uV; in _regulator_do_set_suspend_voltage()
3458 if (max_uV > rstate->max_uV) in _regulator_do_set_suspend_voltage()
3459 max_uV = rstate->max_uV; in _regulator_do_set_suspend_voltage()
3467 rstate->uV = uV; in _regulator_do_set_suspend_voltage()
3921 struct regulator_state *rstate; in regulator_suspend_toggle() local
3923 rstate = regulator_get_suspend_state(rdev, state); in regulator_suspend_toggle()
3924 if (rstate == NULL) in regulator_suspend_toggle()
3927 if (!rstate->changeable) in regulator_suspend_toggle()
3930 rstate->enabled = (en) ? ENABLE_IN_SUSPEND : DISABLE_IN_SUSPEND; in regulator_suspend_toggle()
3967 struct regulator_state *rstate; in _regulator_set_suspend_voltage() local
3969 rstate = regulator_get_suspend_state(rdev, state); in _regulator_set_suspend_voltage()
3970 if (rstate == NULL) in _regulator_set_suspend_voltage()
3973 if (rstate->min_uV == rstate->max_uV) { in _regulator_set_suspend_voltage()
5425 const struct regulator_state *rstate; in regulator_suspend() local
5427 rstate = regulator_get_suspend_state_check(rdev, state); in regulator_suspend()
5428 if (!rstate) in regulator_suspend()
5432 ret = __suspend_set_state(rdev, rstate); in regulator_suspend()
5442 struct regulator_state *rstate; in regulator_resume() local
5445 rstate = regulator_get_suspend_state(rdev, state); in regulator_resume()
5446 if (rstate == NULL) in regulator_resume()
5455 if (rstate->enabled == ENABLE_IN_SUSPEND || in regulator_resume()
5456 rstate->enabled == DISABLE_IN_SUSPEND) in regulator_resume()