Lines Matching refs:gpio_chip
32 struct gpio_chip gpio_chip; member
66 static int adp5588_gpio_get_value(struct gpio_chip *chip, unsigned off) in adp5588_gpio_get_value()
69 container_of(chip, struct adp5588_gpio, gpio_chip); in adp5588_gpio_get_value()
86 static void adp5588_gpio_set_value(struct gpio_chip *chip, in adp5588_gpio_set_value()
91 container_of(chip, struct adp5588_gpio, gpio_chip); in adp5588_gpio_set_value()
107 static int adp5588_gpio_direction_input(struct gpio_chip *chip, unsigned off) in adp5588_gpio_direction_input()
112 container_of(chip, struct adp5588_gpio, gpio_chip); in adp5588_gpio_direction_input()
124 static int adp5588_gpio_direction_output(struct gpio_chip *chip, in adp5588_gpio_direction_output()
130 container_of(chip, struct adp5588_gpio, gpio_chip); in adp5588_gpio_direction_output()
153 static int adp5588_gpio_to_irq(struct gpio_chip *chip, unsigned off) in adp5588_gpio_to_irq()
156 container_of(chip, struct adp5588_gpio, gpio_chip); in adp5588_gpio_to_irq()
228 adp5588_gpio_direction_input(&dev->gpio_chip, gpio); in adp5588_irq_set_type()
302 for (gpio = 0; gpio < dev->gpio_chip.ngpio; gpio++) { in adp5588_irq_setup()
322 dev->gpio_chip.to_irq = adp5588_gpio_to_irq; in adp5588_irq_setup()
359 struct gpio_chip *gc; in adp5588_gpio_probe()
379 gc = &dev->gpio_chip; in adp5588_gpio_probe()
421 ret = gpiochip_add(&dev->gpio_chip); in adp5588_gpio_probe()
453 dev->gpio_chip.base, dev->gpio_chip.ngpio, in adp5588_gpio_remove()
464 gpiochip_remove(&dev->gpio_chip); in adp5588_gpio_remove()