Lines Matching refs:alias_idx
1814 int alias_idx = of_alias_get_id(np, "gpio"); in at91_gpio_probe() local
1818 BUG_ON(alias_idx >= ARRAY_SIZE(gpio_chips)); in at91_gpio_probe()
1819 if (gpio_chips[alias_idx]) { in at91_gpio_probe()
1845 at91_chip->pioc_idx = alias_idx; in at91_gpio_probe()
1861 at91_chip->id = alias_idx; in at91_gpio_probe()
1867 chip->base = alias_idx * MAX_NB_GPIO_PER_BANK; in at91_gpio_probe()
1872 alias_idx, MAX_NB_GPIO_PER_BANK, MAX_NB_GPIO_PER_BANK); in at91_gpio_probe()
1886 names[i] = kasprintf(GFP_KERNEL, "pio%c%d", alias_idx + 'A', i); in at91_gpio_probe()
1892 range->id = alias_idx; in at91_gpio_probe()
1906 gpio_chips[alias_idx] = at91_chip; in at91_gpio_probe()
1908 gpio_banks = max(gpio_banks, alias_idx + 1); in at91_gpio_probe()
1918 dev_err(&pdev->dev, "Failure %i for GPIO %i\n", ret, alias_idx); in at91_gpio_probe()