Lines Matching refs:bgc
70 struct bgpio_chip bgc; member
181 return container_of(gc, struct etraxfs_gpio_chip, bgc.gc); in to_etraxfs()
223 return 4 * etraxfs_gpio_chip_to_port(&chip->bgc.gc) + gpio / 8; in etraxfs_gpio_to_group_pin()
311 ret = gpiochip_lock_as_irq(&chip->bgc.gc, d->hwirq); in etraxfs_gpio_irq_request_resources()
339 gpiochip_unlock_as_irq(&chip->bgc.gc, d->hwirq); in etraxfs_gpio_irq_release_resources()
422 struct bgpio_chip *bgc = &chip->bgc; in etraxfs_gpio_probe() local
436 ret = bgpio_init(bgc, dev, 4, in etraxfs_gpio_probe()
445 bgc->gc.ngpio = port->ngpio; in etraxfs_gpio_probe()
446 bgc->gc.label = port->label; in etraxfs_gpio_probe()
448 bgc->gc.of_node = dev->of_node; in etraxfs_gpio_probe()
449 bgc->gc.of_gpio_n_cells = 3; in etraxfs_gpio_probe()
450 bgc->gc.of_xlate = etraxfs_gpio_of_xlate; in etraxfs_gpio_probe()
452 ret = gpiochip_add(&bgc->gc); in etraxfs_gpio_probe()
455 bgc->gc.label); in etraxfs_gpio_probe()
462 ret = gpiochip_irqchip_add(&bgc->gc, &etraxfs_gpio_irq_chip, 0, in etraxfs_gpio_probe()
466 bgc->gc.label); in etraxfs_gpio_probe()