Lines Matching refs:gpio
11 #include <linux/gpio/consumer.h>
21 struct gpio_desc *gpio[UART_GPIO_MAX];
63 if (gpios->gpio[i] && mctrl_gpio_flags_is_dir_out(i)) {
64 desc_array[count] = gpios->gpio[i];
85 return gpios->gpio[gidx];
105 if (gpios->gpio[i] && !mctrl_gpio_flags_is_dir_out(i)) {
106 if (gpiod_get_value(gpios->gpio[i]))
126 if (gpios->gpio[i] && mctrl_gpio_flags_is_dir_out(i)) {
127 if (gpiod_get_value(gpios->gpio[i]))
162 gpios->gpio[i] =
168 if (IS_ERR(gpios->gpio[i]))
169 return ERR_CAST(gpios->gpio[i]);
216 * @idx: index of the gpio in the @port's device
222 * gpio input lines in your driver, too.
238 if (!gpios->gpio[i] || mctrl_gpio_flags_is_dir_out(i))
241 ret = gpiod_to_irq(gpios->gpio[i]);
289 if (gpios->gpio[i])
290 devm_gpiod_put(dev, gpios->gpio[i]);