Lines Matching defs:gc
148 static int max732x_gpio_get_value(struct gpio_chip *gc, unsigned off)
154 chip = container_of(gc, struct max732x_chip, gpio_chip);
163 static void max732x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val)
169 chip = container_of(gc, struct max732x_chip, gpio_chip);
189 static int max732x_gpio_direction_input(struct gpio_chip *gc, unsigned off)
194 chip = container_of(gc, struct max732x_chip, gpio_chip);
207 max732x_gpio_set_value(gc, off, 1);
212 static int max732x_gpio_direction_output(struct gpio_chip *gc,
218 chip = container_of(gc, struct max732x_chip, gpio_chip);
226 max732x_gpio_set_value(gc, off, val);
289 static int max732x_gpio_to_irq(struct gpio_chip *gc, unsigned off)
293 chip = container_of(gc, struct max732x_chip, gpio_chip);
500 struct gpio_chip *gc = &chip->gpio_chip;
528 gc->direction_input = max732x_gpio_direction_input;
530 gc->direction_output = max732x_gpio_direction_output;
531 gc->set = max732x_gpio_set_value;
533 gc->get = max732x_gpio_get_value;
534 gc->can_sleep = 1;
536 gc->base = gpio_start;
537 gc->ngpio = port;
538 gc->label = chip->client->name;
539 gc->owner = THIS_MODULE;