Lines Matching refs:gc

26 	struct gpio_chip gc;  member
29 static int tps68470_gpio_get(struct gpio_chip *gc, unsigned int offset) in tps68470_gpio_get() argument
31 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_get()
43 dev_err(tps68470_gpio->gc.parent, "reg 0x%x read failed\n", in tps68470_gpio_get()
50 static int tps68470_gpio_get_direction(struct gpio_chip *gc, in tps68470_gpio_get_direction() argument
53 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_get_direction()
63 dev_err(tps68470_gpio->gc.parent, "reg 0x%x read failed\n", in tps68470_gpio_get_direction()
73 static void tps68470_gpio_set(struct gpio_chip *gc, unsigned int offset, in tps68470_gpio_set() argument
76 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_set()
88 static int tps68470_gpio_output(struct gpio_chip *gc, unsigned int offset, in tps68470_gpio_output() argument
91 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_output()
99 tps68470_gpio_set(gc, offset, value); in tps68470_gpio_output()
106 static int tps68470_gpio_input(struct gpio_chip *gc, unsigned int offset) in tps68470_gpio_input() argument
108 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_input()
135 tps68470_gpio->gc.label = "tps68470-gpio"; in tps68470_gpio_probe()
136 tps68470_gpio->gc.owner = THIS_MODULE; in tps68470_gpio_probe()
137 tps68470_gpio->gc.direction_input = tps68470_gpio_input; in tps68470_gpio_probe()
138 tps68470_gpio->gc.direction_output = tps68470_gpio_output; in tps68470_gpio_probe()
139 tps68470_gpio->gc.get = tps68470_gpio_get; in tps68470_gpio_probe()
140 tps68470_gpio->gc.get_direction = tps68470_gpio_get_direction; in tps68470_gpio_probe()
141 tps68470_gpio->gc.set = tps68470_gpio_set; in tps68470_gpio_probe()
142 tps68470_gpio->gc.can_sleep = true; in tps68470_gpio_probe()
143 tps68470_gpio->gc.names = tps68470_names; in tps68470_gpio_probe()
144 tps68470_gpio->gc.ngpio = TPS68470_N_GPIO; in tps68470_gpio_probe()
145 tps68470_gpio->gc.base = -1; in tps68470_gpio_probe()
146 tps68470_gpio->gc.parent = &pdev->dev; in tps68470_gpio_probe()
148 return devm_gpiochip_add_data(&pdev->dev, &tps68470_gpio->gc, tps68470_gpio); in tps68470_gpio_probe()