Lines Matching defs:gc
58 struct gpio_chip gc;
61 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset)
63 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc);
67 if (offset >= gc->ngpio)
79 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset,
82 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc);
86 if (offset >= gc->ngpio)
105 static int pl061_get_value(struct gpio_chip *gc, unsigned offset)
107 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc);
112 static void pl061_set_value(struct gpio_chip *gc, unsigned offset, int value)
114 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc);
119 static int pl061_to_irq(struct gpio_chip *gc, unsigned offset)
121 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc);
230 generic_handle_irq(pl061_to_irq(&chip->gc, offset));
267 chip->gc.direction_input = pl061_direction_input;
268 chip->gc.direction_output = pl061_direction_output;
269 chip->gc.get = pl061_get_value;
270 chip->gc.set = pl061_set_value;
271 chip->gc.to_irq = pl061_to_irq;
272 chip->gc.base = pdata->gpio_base;
273 chip->gc.ngpio = PL061_GPIO_NR;
274 chip->gc.label = dev_name(&dev->dev);
275 chip->gc.dev = &dev->dev;
276 chip->gc.owner = THIS_MODULE;
280 ret = gpiochip_add(&chip->gc);
313 pl061_direction_output(&chip->gc, i,
316 pl061_direction_input(&chip->gc, i);