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()
330 dev->gpio_chip.to_irq = adp5588_gpio_to_irq; in adp5588_irq_setup()
367 struct gpio_chip *gc; in adp5588_gpio_probe()
387 gc = &dev->gpio_chip; in adp5588_gpio_probe()
429 ret = gpiochip_add(&dev->gpio_chip); in adp5588_gpio_probe()
461 dev->gpio_chip.base, dev->gpio_chip.ngpio, in adp5588_gpio_remove()
472 gpiochip_remove(&dev->gpio_chip); in adp5588_gpio_remove()