Lines Matching refs:gc
112 static inline struct pca953x_chip *to_pca(struct gpio_chip *gc) in to_pca() argument
114 return container_of(gc, struct pca953x_chip, gpio_chip); in to_pca()
217 static int pca953x_gpio_direction_input(struct gpio_chip *gc, unsigned off) in pca953x_gpio_direction_input() argument
219 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_direction_input()
245 static int pca953x_gpio_direction_output(struct gpio_chip *gc, in pca953x_gpio_direction_output() argument
248 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_direction_output()
296 static int pca953x_gpio_get_value(struct gpio_chip *gc, unsigned off) in pca953x_gpio_get_value() argument
298 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_get_value()
324 static void pca953x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) in pca953x_gpio_set_value() argument
326 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_set_value()
357 struct gpio_chip *gc; in pca953x_setup_gpio() local
359 gc = &chip->gpio_chip; in pca953x_setup_gpio()
361 gc->direction_input = pca953x_gpio_direction_input; in pca953x_setup_gpio()
362 gc->direction_output = pca953x_gpio_direction_output; in pca953x_setup_gpio()
363 gc->get = pca953x_gpio_get_value; in pca953x_setup_gpio()
364 gc->set = pca953x_gpio_set_value; in pca953x_setup_gpio()
365 gc->can_sleep = true; in pca953x_setup_gpio()
367 gc->base = chip->gpio_start; in pca953x_setup_gpio()
368 gc->ngpio = gpios; in pca953x_setup_gpio()
369 gc->label = chip->client->name; in pca953x_setup_gpio()
370 gc->dev = &chip->client->dev; in pca953x_setup_gpio()
371 gc->owner = THIS_MODULE; in pca953x_setup_gpio()
372 gc->names = chip->names; in pca953x_setup_gpio()
378 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_mask() local
379 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_mask()
386 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_unmask() local
387 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_unmask()
394 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_bus_lock() local
395 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_bus_lock()
402 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_bus_sync_unlock() local
403 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_bus_sync_unlock()
425 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pca953x_irq_set_type() local
426 struct pca953x_chip *chip = to_pca(gc); in pca953x_irq_set_type()