Lines Matching defs:gc
114 static int pca953x_gpio_direction_input(struct gpio_chip *gc, unsigned off)
120 chip = container_of(gc, struct pca953x_chip, gpio_chip);
131 static int pca953x_gpio_direction_output(struct gpio_chip *gc,
138 chip = container_of(gc, struct pca953x_chip, gpio_chip);
162 static int pca953x_gpio_get_value(struct gpio_chip *gc, unsigned off)
168 chip = container_of(gc, struct pca953x_chip, gpio_chip);
182 static void pca953x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val)
188 chip = container_of(gc, struct pca953x_chip, gpio_chip);
204 struct gpio_chip *gc;
206 gc = &chip->gpio_chip;
208 gc->direction_input = pca953x_gpio_direction_input;
209 gc->direction_output = pca953x_gpio_direction_output;
210 gc->get = pca953x_gpio_get_value;
211 gc->set = pca953x_gpio_set_value;
212 gc->can_sleep = 1;
214 gc->base = chip->gpio_start;
215 gc->ngpio = gpios;
216 gc->label = chip->client->name;
217 gc->dev = &chip->client->dev;
218 gc->owner = THIS_MODULE;
219 gc->names = chip->names;
223 static int pca953x_gpio_to_irq(struct gpio_chip *gc, unsigned off)
227 chip = container_of(gc, struct pca953x_chip, gpio_chip);