Lines Matching defs:gpio
3 * Microsemi/Microchip SoCs serial gpio driver
13 #include <linux/gpio/driver.h>
107 static const char * const functions[] = { "gpio" };
112 struct gpio_chip gpio;
527 static int microchip_sgpio_direction_input(struct gpio_chip *gc, unsigned int gpio)
536 unsigned int gpio, int value)
546 sgpio_pin_to_addr(priv, gpio, &addr);
551 static int microchip_sgpio_get_direction(struct gpio_chip *gc, unsigned int gpio)
559 unsigned int gpio, int value)
561 microchip_sgpio_direction_output(gc, gpio, value);
564 static int microchip_sgpio_get_value(struct gpio_chip *gc, unsigned int gpio)
570 sgpio_pin_to_addr(priv, gpio, &addr);
646 unsigned int gpio = irqd_to_hwirq(data);
651 sgpio_pin_to_addr(bank->priv, gpio, &addr);
681 unsigned int gpio = irqd_to_hwirq(data);
684 sgpio_pin_to_addr(bank->priv, gpio, &addr);
712 unsigned int gpio = irqd_to_hwirq(data);
715 sgpio_pin_to_addr(bank->priv, gpio, &addr);
751 .name = "gpio",
766 int bit, port, gpio;
777 gpio = sgpio_addr_to_pin(priv, port, bit);
778 generic_handle_domain_irq(chip->irq.domain, gpio);
852 gc = &bank->gpio;
971 if (priv->in.gpio.ngpio != priv->out.gpio.ngpio) {