Lines Matching refs:gpio_chip

20 	struct gpio_chip gpio_chip;  member
24 static int rc5t583_gpio_get(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_get()
38 static void rc5t583_gpio_set(struct gpio_chip *gc, unsigned int offset, int val) in rc5t583_gpio_set()
48 static int rc5t583_gpio_dir_input(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_dir_input()
62 static int rc5t583_gpio_dir_output(struct gpio_chip *gc, unsigned offset, in rc5t583_gpio_dir_output()
78 static int rc5t583_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in rc5t583_gpio_to_irq()
88 static void rc5t583_gpio_free(struct gpio_chip *gc, unsigned offset) in rc5t583_gpio_free()
107 rc5t583_gpio->gpio_chip.label = "gpio-rc5t583", in rc5t583_gpio_probe()
108 rc5t583_gpio->gpio_chip.owner = THIS_MODULE, in rc5t583_gpio_probe()
109 rc5t583_gpio->gpio_chip.free = rc5t583_gpio_free, in rc5t583_gpio_probe()
110 rc5t583_gpio->gpio_chip.direction_input = rc5t583_gpio_dir_input, in rc5t583_gpio_probe()
111 rc5t583_gpio->gpio_chip.direction_output = rc5t583_gpio_dir_output, in rc5t583_gpio_probe()
112 rc5t583_gpio->gpio_chip.set = rc5t583_gpio_set, in rc5t583_gpio_probe()
113 rc5t583_gpio->gpio_chip.get = rc5t583_gpio_get, in rc5t583_gpio_probe()
114 rc5t583_gpio->gpio_chip.to_irq = rc5t583_gpio_to_irq, in rc5t583_gpio_probe()
115 rc5t583_gpio->gpio_chip.ngpio = RC5T583_MAX_GPIO, in rc5t583_gpio_probe()
116 rc5t583_gpio->gpio_chip.can_sleep = true, in rc5t583_gpio_probe()
117 rc5t583_gpio->gpio_chip.parent = &pdev->dev; in rc5t583_gpio_probe()
118 rc5t583_gpio->gpio_chip.base = -1; in rc5t583_gpio_probe()
122 rc5t583_gpio->gpio_chip.base = pdata->gpio_base; in rc5t583_gpio_probe()
124 return devm_gpiochip_add_data(&pdev->dev, &rc5t583_gpio->gpio_chip, in rc5t583_gpio_probe()