Lines Matching defs:gpio
16 #include <linux/gpio/legacy-of-mm-gpiochip.h>
17 #include <linux/gpio/consumer.h>
18 #include <linux/gpio/driver.h>
51 static int qe_gpio_get(struct gpio_chip *gc, unsigned int gpio)
55 u32 pin_mask = 1 << (QE_PIO_PINS - 1 - gpio);
60 static void qe_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val)
66 u32 pin_mask = 1 << (QE_PIO_PINS - 1 - gpio);
107 static int qe_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio)
115 __par_io_config_pin(mm_gc->regs, gpio, QE_PIO_DIR_IN, 0, 0, 0);
122 static int qe_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
128 qe_gpio_set(gc, gpio, val);
132 __par_io_config_pin(mm_gc->regs, gpio, QE_PIO_DIR_OUT, 0, 0, 0);
172 * Request gpio as nonexclusive as it was likely reserved by the
174 * the descriptor to the to the gpio chip structure.