Lines Matching defs:gc
38 struct gpio_chip *gc;
50 gc = of_node_to_gpiochip(gpio_np);
51 if (!gc) {
60 be32_to_cpup(gpio_cells) != gc->of_gpio_n_cells) {
71 ret = gc->of_xlate(gc, np, gpio_spec, flags);
75 ret += gc->base;
120 * @gc: pointer to the gpio_chip structure
129 static int of_gpio_simple_xlate(struct gpio_chip *gc, struct device_node *np,
141 if (gc->of_gpio_n_cells < 2) {
146 if (n > gc->ngpio)
178 struct gpio_chip *gc = &mm_gc->gc;
180 gc->label = kstrdup(np->full_name, GFP_KERNEL);
181 if (!gc->label)
188 gc->base = -1;
193 mm_gc->gc.of_node = np;
195 ret = gpiochip_add(gc);
200 np->full_name, gc->base);
205 kfree(gc->label);