Lines Matching refs:states
45 struct gpio_regulator_state *states; member
57 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value()
58 return data->states[ptr].value; in gpio_regulator_get_value()
71 if (data->states[ptr].value < best_val && in gpio_regulator_set_voltage()
72 data->states[ptr].value >= min_uV && in gpio_regulator_set_voltage()
73 data->states[ptr].value <= max_uV) { in gpio_regulator_set_voltage()
74 target = data->states[ptr].gpios; in gpio_regulator_set_voltage()
75 best_val = data->states[ptr].value; in gpio_regulator_set_voltage()
100 return data->states[selector].value; in gpio_regulator_list_voltage()
110 if (data->states[ptr].value > best_val && in gpio_regulator_set_current_limit()
111 data->states[ptr].value >= min_uA && in gpio_regulator_set_current_limit()
112 data->states[ptr].value <= max_uA) { in gpio_regulator_set_current_limit()
113 target = data->states[ptr].gpios; in gpio_regulator_set_current_limit()
114 best_val = data->states[ptr].value; in gpio_regulator_set_current_limit()
213 config->states = devm_kzalloc(dev, in of_get_gpio_regulator_config()
217 if (!config->states) in of_get_gpio_regulator_config()
222 &config->states[i].value); in of_get_gpio_regulator_config()
224 &config->states[i].gpios); in of_get_gpio_regulator_config()
296 drvdata->states = kmemdup(config->states, in gpio_regulator_probe()
300 if (drvdata->states == NULL) { in gpio_regulator_probe()
371 kfree(drvdata->states); in gpio_regulator_probe()
388 kfree(drvdata->states); in gpio_regulator_remove()