Lines Matching refs:state
36 int state; member
116 struct regulator_gpio_state *state = &rg->states[i]; in regulator_gpio_set_voltage() local
118 if (state->value < best_val && in regulator_gpio_set_voltage()
119 state->value >= min_uvolt && in regulator_gpio_set_voltage()
120 state->value <= max_uvolt) in regulator_gpio_set_voltage()
122 target = state->gpios; in regulator_gpio_set_voltage()
123 best_val = state->value; in regulator_gpio_set_voltage()
134 int state = (target >> i) & 1; in regulator_gpio_set_voltage() local
138 rt_pin_write(gpiod->pin, gpiod->flags == PIND_OUT_HIGH ? state : !state); in regulator_gpio_set_voltage()
141 rg->state = target; in regulator_gpio_set_voltage()
152 if (rg->states[i].gpios == rg->state) in regulator_gpio_get_voltage()
239 rg->state |= 1 << i; in regulator_gpio_probe()