Lines Matching refs:gpio_chip
122 struct gpio_chip gpio_chip; member
2107 static int davinci_mcasp_gpio_request(struct gpio_chip *chip, unsigned offset) in davinci_mcasp_gpio_request()
2122 static void davinci_mcasp_gpio_free(struct gpio_chip *chip, unsigned offset) in davinci_mcasp_gpio_free()
2135 static int davinci_mcasp_gpio_direction_out(struct gpio_chip *chip, in davinci_mcasp_gpio_direction_out()
2158 static void davinci_mcasp_gpio_set(struct gpio_chip *chip, unsigned offset, in davinci_mcasp_gpio_set()
2169 static int davinci_mcasp_gpio_direction_in(struct gpio_chip *chip, in davinci_mcasp_gpio_direction_in()
2187 static int davinci_mcasp_gpio_get(struct gpio_chip *chip, unsigned offset) in davinci_mcasp_gpio_get()
2199 static int davinci_mcasp_gpio_get_direction(struct gpio_chip *chip, in davinci_mcasp_gpio_get_direction()
2212 static const struct gpio_chip davinci_mcasp_template_chip = {
2230 mcasp->gpio_chip = davinci_mcasp_template_chip; in davinci_mcasp_init_gpiochip()
2231 mcasp->gpio_chip.label = dev_name(mcasp->dev); in davinci_mcasp_init_gpiochip()
2232 mcasp->gpio_chip.parent = mcasp->dev; in davinci_mcasp_init_gpiochip()
2234 mcasp->gpio_chip.of_node = mcasp->dev->of_node; in davinci_mcasp_init_gpiochip()
2237 return devm_gpiochip_add_data(mcasp->dev, &mcasp->gpio_chip, mcasp); in davinci_mcasp_init_gpiochip()