Lines Matching defs:gpio
37 #include <linux/gpio/driver.h>
52 struct gpio_chip gpio;
69 static int bt8xxgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
71 struct bt8xxgpio *bg = gpiochip_get_data(gpio);
90 static int bt8xxgpio_gpio_get(struct gpio_chip *gpio, unsigned nr)
92 struct bt8xxgpio *bg = gpiochip_get_data(gpio);
103 static int bt8xxgpio_gpio_direction_output(struct gpio_chip *gpio,
106 struct bt8xxgpio *bg = gpiochip_get_data(gpio);
128 static void bt8xxgpio_gpio_set(struct gpio_chip *gpio,
131 struct bt8xxgpio *bg = gpiochip_get_data(gpio);
149 struct gpio_chip *c = &bg->gpio;
202 /* gpio init */
208 err = gpiochip_add_data(&bg->gpio, bg);
226 gpiochip_remove(&bg->gpio);