Lines Matching refs:gc

15 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off)  in ucb1400_gpio_dir_in()  argument
18 gpio = container_of(gc, struct ucb1400_gpio, gc); in ucb1400_gpio_dir_in()
23 static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_dir_out() argument
26 gpio = container_of(gc, struct ucb1400_gpio, gc); in ucb1400_gpio_dir_out()
32 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_get() argument
35 gpio = container_of(gc, struct ucb1400_gpio, gc); in ucb1400_gpio_get()
39 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_set() argument
42 gpio = container_of(gc, struct ucb1400_gpio, gc); in ucb1400_gpio_set()
58 ucb->gc.label = "ucb1400_gpio"; in ucb1400_gpio_probe()
59 ucb->gc.base = ucb->gpio_offset; in ucb1400_gpio_probe()
60 ucb->gc.ngpio = 10; in ucb1400_gpio_probe()
61 ucb->gc.owner = THIS_MODULE; in ucb1400_gpio_probe()
63 ucb->gc.direction_input = ucb1400_gpio_dir_in; in ucb1400_gpio_probe()
64 ucb->gc.direction_output = ucb1400_gpio_dir_out; in ucb1400_gpio_probe()
65 ucb->gc.get = ucb1400_gpio_get; in ucb1400_gpio_probe()
66 ucb->gc.set = ucb1400_gpio_set; in ucb1400_gpio_probe()
67 ucb->gc.can_sleep = true; in ucb1400_gpio_probe()
69 err = gpiochip_add(&ucb->gc); in ucb1400_gpio_probe()
74 err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio); in ucb1400_gpio_probe()
87 err = ucb->gpio_teardown(&dev->dev, ucb->gc.ngpio); in ucb1400_gpio_remove()
92 gpiochip_remove(&ucb->gc); in ucb1400_gpio_remove()