Lines Matching refs:gpios
42 struct gpio *gpios; member
57 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value()
74 target = data->states[ptr].gpios; in gpio_regulator_set_voltage()
85 gpio_set_value_cansleep(data->gpios[ptr].gpio, state); in gpio_regulator_set_voltage()
113 target = data->states[ptr].gpios; in gpio_regulator_set_current_limit()
122 gpio_set_value_cansleep(data->gpios[ptr].gpio, state); in gpio_regulator_set_current_limit()
168 config->gpios = devm_kzalloc(dev, in of_get_gpio_regulator_config()
171 if (!config->gpios) in of_get_gpio_regulator_config()
178 config->gpios[i].gpio = gpio; in of_get_gpio_regulator_config()
200 config->states[i].gpios = in of_get_gpio_regulator_config()
248 drvdata->gpios = kmemdup(config->gpios, in gpio_regulator_probe()
251 if (drvdata->gpios == NULL) { in gpio_regulator_probe()
290 ret = gpio_request_array(drvdata->gpios, drvdata->nr_gpios); in gpio_regulator_probe()
300 if (config->gpios[ptr].flags & GPIOF_OUT_INIT_HIGH) in gpio_regulator_probe()
337 gpio_free_array(drvdata->gpios, drvdata->nr_gpios); in gpio_regulator_probe()
341 kfree(drvdata->gpios); in gpio_regulator_probe()
354 gpio_free_array(drvdata->gpios, drvdata->nr_gpios); in gpio_regulator_remove()
357 kfree(drvdata->gpios); in gpio_regulator_remove()