Lines Matching full:states
39 struct gpio_regulator_state *states; member
51 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value()
52 return data->states[ptr].value; in gpio_regulator_get_value()
65 if (data->states[ptr].value < best_val && in gpio_regulator_set_voltage()
66 data->states[ptr].value >= min_uV && in gpio_regulator_set_voltage()
67 data->states[ptr].value <= max_uV) { in gpio_regulator_set_voltage()
68 target = data->states[ptr].gpios; in gpio_regulator_set_voltage()
69 best_val = data->states[ptr].value; in gpio_regulator_set_voltage()
94 return data->states[selector].value; in gpio_regulator_list_voltage()
104 if (data->states[ptr].value > best_val && in gpio_regulator_set_current_limit()
105 data->states[ptr].value >= min_uA && in gpio_regulator_set_current_limit()
106 data->states[ptr].value <= max_uA) { in gpio_regulator_set_current_limit()
107 target = data->states[ptr].gpios; in gpio_regulator_set_current_limit()
108 best_val = data->states[ptr].value; in gpio_regulator_set_current_limit()
176 ret = of_property_read_u32_index(np, "gpios-states", i, in of_get_gpio_regulator_config()
189 /* Fetch states. */ in of_get_gpio_regulator_config()
190 proplen = of_property_count_u32_elems(np, "states"); in of_get_gpio_regulator_config()
192 dev_err(dev, "No 'states' property found\n"); in of_get_gpio_regulator_config()
196 config->states = devm_kcalloc(dev, in of_get_gpio_regulator_config()
200 if (!config->states) in of_get_gpio_regulator_config()
204 of_property_read_u32_index(np, "states", i * 2, in of_get_gpio_regulator_config()
205 &config->states[i].value); in of_get_gpio_regulator_config()
206 of_property_read_u32_index(np, "states", i * 2 + 1, in of_get_gpio_regulator_config()
207 &config->states[i].gpios); in of_get_gpio_regulator_config()
291 drvdata->states = devm_kmemdup(dev, in gpio_regulator_probe()
292 config->states, in gpio_regulator_probe()
296 if (drvdata->states == NULL) { in gpio_regulator_probe()