Lines Matching refs:gc

101 static inline struct pca953x_chip *to_pca(struct gpio_chip *gc)  in to_pca()  argument
103 return container_of(gc, struct pca953x_chip, gpio_chip); in to_pca()
206 static int pca953x_gpio_direction_input(struct gpio_chip *gc, unsigned off) in pca953x_gpio_direction_input() argument
208 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_direction_input()
234 static int pca953x_gpio_direction_output(struct gpio_chip *gc, in pca953x_gpio_direction_output() argument
237 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_direction_output()
285 static int pca953x_gpio_get_value(struct gpio_chip *gc, unsigned off) in pca953x_gpio_get_value() argument
287 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_get_value()
313 static void pca953x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) in pca953x_gpio_set_value() argument
315 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_set_value()
346 struct gpio_chip *gc; in pca953x_setup_gpio() local
348 gc = &chip->gpio_chip; in pca953x_setup_gpio()
350 gc->direction_input = pca953x_gpio_direction_input; in pca953x_setup_gpio()
351 gc->direction_output = pca953x_gpio_direction_output; in pca953x_setup_gpio()
352 gc->get = pca953x_gpio_get_value; in pca953x_setup_gpio()
353 gc->set = pca953x_gpio_set_value; in pca953x_setup_gpio()
354 gc->can_sleep = true; in pca953x_setup_gpio()
356 gc->base = chip->gpio_start; in pca953x_setup_gpio()
357 gc->ngpio = gpios; in pca953x_setup_gpio()
358 gc->label = chip->client->name; in pca953x_setup_gpio()
359 gc->dev = &chip->client->dev; in pca953x_setup_gpio()
360 gc->owner = THIS_MODULE; in pca953x_setup_gpio()
361 gc->names = chip->names; in pca953x_setup_gpio()
367 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_mask() local
368 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_mask()
375 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_unmask() local
376 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_unmask()
383 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_bus_lock() local
384 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_bus_lock()
391 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_bus_sync_unlock() local
392 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_bus_sync_unlock()
414 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_set_type() local
415 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_set_type()