Lines Matching refs:ngpio
240 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_dir_output()
250 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_dir_input()
260 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_get()
268 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_set()
305 int ngpio; in xlp_gpio_probe() local
340 ngpio = 41; in xlp_gpio_probe()
351 ngpio = (soc_type == XLP_GPIO_VARIANT_XLP208) ? 42 : 57; in xlp_gpio_probe()
362 ngpio = (soc_type == XLP_GPIO_VARIANT_XLP980) ? 66 : 67; in xlp_gpio_probe()
377 gc->ngpio = ngpio; in xlp_gpio_probe()
385 irq_base = irq_alloc_descs(-1, XLP_GPIO_IRQ_BASE, gc->ngpio, 0); in xlp_gpio_probe()
405 dev_info(&pdev->dev, "registered %d GPIOs\n", gc->ngpio); in xlp_gpio_probe()
412 irq_free_descs(irq_base, gc->ngpio); in xlp_gpio_probe()