Lines Matching defs:gc
11 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off)
14 gpio = gpiochip_get_data(gc);
19 static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val)
22 gpio = gpiochip_get_data(gc);
28 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off)
32 gpio = gpiochip_get_data(gc);
36 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val)
39 gpio = gpiochip_get_data(gc);
55 ucb->gc.label = "ucb1400_gpio";
56 ucb->gc.base = ucb->gpio_offset;
57 ucb->gc.ngpio = 10;
58 ucb->gc.owner = THIS_MODULE;
60 ucb->gc.direction_input = ucb1400_gpio_dir_in;
61 ucb->gc.direction_output = ucb1400_gpio_dir_out;
62 ucb->gc.get = ucb1400_gpio_get;
63 ucb->gc.set = ucb1400_gpio_set;
64 ucb->gc.can_sleep = true;
66 err = devm_gpiochip_add_data(&dev->dev, &ucb->gc, ucb);
71 err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio);
84 err = ucb->gpio_teardown(&dev->dev, ucb->gc.ngpio);