Lines Matching refs:gpio_chip
29 struct gpio_chip gpio_chip; member
56 static int exar_get_direction(struct gpio_chip *chip, unsigned int offset) in exar_get_direction()
68 static int exar_get_value(struct gpio_chip *chip, unsigned int offset) in exar_get_value()
77 static void exar_set_value(struct gpio_chip *chip, unsigned int offset, in exar_set_value()
90 static int exar_direction_output(struct gpio_chip *chip, unsigned int offset, in exar_direction_output()
103 static int exar_direction_input(struct gpio_chip *chip, unsigned int offset) in exar_direction_input()
173 exar_gpio->gpio_chip.label = exar_gpio->name; in gpio_exar_probe()
174 exar_gpio->gpio_chip.parent = dev; in gpio_exar_probe()
175 exar_gpio->gpio_chip.direction_output = exar_direction_output; in gpio_exar_probe()
176 exar_gpio->gpio_chip.direction_input = exar_direction_input; in gpio_exar_probe()
177 exar_gpio->gpio_chip.get_direction = exar_get_direction; in gpio_exar_probe()
178 exar_gpio->gpio_chip.get = exar_get_value; in gpio_exar_probe()
179 exar_gpio->gpio_chip.set = exar_set_value; in gpio_exar_probe()
180 exar_gpio->gpio_chip.base = -1; in gpio_exar_probe()
181 exar_gpio->gpio_chip.ngpio = ngpios; in gpio_exar_probe()
185 ret = devm_gpiochip_add_data(dev, &exar_gpio->gpio_chip, exar_gpio); in gpio_exar_probe()