Lines Matching refs:gc
88 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in mxs_gpio_set_irq_type() local
89 struct mxs_gpio_port *port = gc->private; in mxs_gpio_set_irq_type()
96 val = gpio_get_value(port->bgc.gc.base + d->hwirq); in mxs_gpio_set_irq_type()
188 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in mxs_gpio_set_wake_irq() local
189 struct mxs_gpio_port *port = gc->private; in mxs_gpio_set_wake_irq()
201 struct irq_chip_generic *gc; in mxs_gpio_init_gc() local
204 gc = irq_alloc_generic_chip("gpio-mxs", 1, irq_base, in mxs_gpio_init_gc()
206 if (!gc) in mxs_gpio_init_gc()
209 gc->private = port; in mxs_gpio_init_gc()
211 ct = gc->chip_types; in mxs_gpio_init_gc()
220 irq_setup_generic_chip(gc, IRQ_MSK(32), IRQ_GC_INIT_NESTED_LOCK, in mxs_gpio_init_gc()
226 static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in mxs_gpio_to_irq() argument
228 struct bgpio_chip *bgc = to_bgpio_chip(gc); in mxs_gpio_to_irq()
235 static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned offset) in mxs_gpio_get_direction() argument
237 struct bgpio_chip *bgc = to_bgpio_chip(gc); in mxs_gpio_get_direction()
341 port->bgc.gc.to_irq = mxs_gpio_to_irq; in mxs_gpio_probe()
342 port->bgc.gc.get_direction = mxs_gpio_get_direction; in mxs_gpio_probe()
343 port->bgc.gc.base = port->id * 32; in mxs_gpio_probe()
345 err = gpiochip_add(&port->bgc.gc); in mxs_gpio_probe()