Lines Matching refs:gpio_chip
32 struct gpio_chip chip;
40 static void at91_gpiolib_dbg_show(struct seq_file *s, struct gpio_chip *chip);
41 static void at91_gpiolib_set(struct gpio_chip *chip, unsigned offset, int val);
42 static int at91_gpiolib_get(struct gpio_chip *chip, unsigned offset);
43 static int at91_gpiolib_direction_output(struct gpio_chip *chip,
45 static int at91_gpiolib_direction_input(struct gpio_chip *chip,
62 static struct at91_gpio_chip gpio_chip[] = {
77 return gpio_chip[pin].regbase;
290 set_irq_wake(gpio_chip[bank].bank->id, state);
300 void __iomem *pio = gpio_chip[i].regbase;
307 clk_disable(gpio_chip[i].bank->clock);
321 void __iomem *pio = gpio_chip[i].regbase;
324 clk_enable(gpio_chip[i].bank->clock);
512 for (pioc = 0, pin = PIN_BASE, this = gpio_chip, prev = NULL;
546 static int at91_gpiolib_direction_input(struct gpio_chip *chip,
557 static int at91_gpiolib_direction_output(struct gpio_chip *chip,
569 static int at91_gpiolib_get(struct gpio_chip *chip, unsigned offset)
580 static void at91_gpiolib_set(struct gpio_chip *chip, unsigned offset, int val)
589 static void at91_gpiolib_dbg_show(struct seq_file *s, struct gpio_chip *chip)
628 at91_gpio = &gpio_chip[i];