Lines Matching refs:gpio_chip
35 struct gpio_chip gpio_chip; member
75 static int exar_get_direction(struct gpio_chip *chip, unsigned int offset) in exar_get_direction()
87 static int exar_get_value(struct gpio_chip *chip, unsigned int offset) in exar_get_value()
96 static void exar_set_value(struct gpio_chip *chip, unsigned int offset, in exar_set_value()
109 static int exar_direction_output(struct gpio_chip *chip, unsigned int offset, in exar_direction_output()
122 static int exar_direction_input(struct gpio_chip *chip, unsigned int offset) in exar_direction_input()
204 exar_gpio->gpio_chip.label = exar_gpio->name; in gpio_exar_probe()
205 exar_gpio->gpio_chip.parent = dev; in gpio_exar_probe()
206 exar_gpio->gpio_chip.direction_output = exar_direction_output; in gpio_exar_probe()
207 exar_gpio->gpio_chip.direction_input = exar_direction_input; in gpio_exar_probe()
208 exar_gpio->gpio_chip.get_direction = exar_get_direction; in gpio_exar_probe()
209 exar_gpio->gpio_chip.get = exar_get_value; in gpio_exar_probe()
210 exar_gpio->gpio_chip.set = exar_set_value; in gpio_exar_probe()
211 exar_gpio->gpio_chip.base = -1; in gpio_exar_probe()
212 exar_gpio->gpio_chip.ngpio = ngpios; in gpio_exar_probe()
216 ret = devm_gpiochip_add_data(dev, &exar_gpio->gpio_chip, exar_gpio); in gpio_exar_probe()