Lines Matching refs:bgc
67 struct bgpio_chip bgc; member
96 val = gpio_get_value(port->bgc.gc.base + d->hwirq); in mxs_gpio_set_irq_type()
223 struct bgpio_chip *bgc = to_bgpio_chip(gc); in mxs_gpio_to_irq() local
225 container_of(bgc, struct mxs_gpio_port, bgc); in mxs_gpio_to_irq()
232 struct bgpio_chip *bgc = to_bgpio_chip(gc); in mxs_gpio_get_direction() local
234 container_of(bgc, struct mxs_gpio_port, bgc); in mxs_gpio_get_direction()
326 err = bgpio_init(&port->bgc, &pdev->dev, 4, in mxs_gpio_probe()
334 port->bgc.gc.to_irq = mxs_gpio_to_irq; in mxs_gpio_probe()
335 port->bgc.gc.get_direction = mxs_gpio_get_direction; in mxs_gpio_probe()
336 port->bgc.gc.base = port->id * 32; in mxs_gpio_probe()
338 err = gpiochip_add(&port->bgc.gc); in mxs_gpio_probe()
345 bgpio_remove(&port->bgc); in mxs_gpio_probe()