Lines Matching refs:gpio_bank
94 struct npcm7xx_gpio gpio_bank[NPCM7XX_GPIO_BANK_NUM]; member
1506 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_get_drive_strength()
1532 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_set_drive_strength()
1691 &npcm->gpio_bank[offset / NPCM7XX_GPIO_PER_BANK]; in npcm_gpio_set_direction()
1721 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_config_get()
1784 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_config_set_one()
1880 pctrl->gpio_bank[id].base = ioremap(res.start, resource_size(&res)); in npcm7xx_gpio_of()
1882 ret = bgpio_init(&pctrl->gpio_bank[id].gc, dev, 4, in npcm7xx_gpio_of()
1883 pctrl->gpio_bank[id].base + NPCM7XX_GP_N_DIN, in npcm7xx_gpio_of()
1884 pctrl->gpio_bank[id].base + NPCM7XX_GP_N_DOUT, in npcm7xx_gpio_of()
1887 pctrl->gpio_bank[id].base + NPCM7XX_GP_N_IEM, in npcm7xx_gpio_of()
1905 pctrl->gpio_bank[id].irq = ret; in npcm7xx_gpio_of()
1906 pctrl->gpio_bank[id].irq_chip = npcmgpio_irqchip; in npcm7xx_gpio_of()
1907 pctrl->gpio_bank[id].irqbase = id * NPCM7XX_GPIO_PER_BANK; in npcm7xx_gpio_of()
1908 pctrl->gpio_bank[id].pinctrl_id = args.args[0]; in npcm7xx_gpio_of()
1909 pctrl->gpio_bank[id].gc.base = args.args[1]; in npcm7xx_gpio_of()
1910 pctrl->gpio_bank[id].gc.ngpio = args.args[2]; in npcm7xx_gpio_of()
1911 pctrl->gpio_bank[id].gc.owner = THIS_MODULE; in npcm7xx_gpio_of()
1912 pctrl->gpio_bank[id].gc.parent = dev; in npcm7xx_gpio_of()
1913 pctrl->gpio_bank[id].gc.fwnode = child; in npcm7xx_gpio_of()
1914 pctrl->gpio_bank[id].gc.label = devm_kasprintf(dev, GFP_KERNEL, "%pfw", child); in npcm7xx_gpio_of()
1915 if (pctrl->gpio_bank[id].gc.label == NULL) in npcm7xx_gpio_of()
1918 pctrl->gpio_bank[id].gc.dbg_show = npcmgpio_dbg_show; in npcm7xx_gpio_of()
1919 pctrl->gpio_bank[id].direction_input = pctrl->gpio_bank[id].gc.direction_input; in npcm7xx_gpio_of()
1920 pctrl->gpio_bank[id].gc.direction_input = npcmgpio_direction_input; in npcm7xx_gpio_of()
1921 pctrl->gpio_bank[id].direction_output = pctrl->gpio_bank[id].gc.direction_output; in npcm7xx_gpio_of()
1922 pctrl->gpio_bank[id].gc.direction_output = npcmgpio_direction_output; in npcm7xx_gpio_of()
1923 pctrl->gpio_bank[id].request = pctrl->gpio_bank[id].gc.request; in npcm7xx_gpio_of()
1924 pctrl->gpio_bank[id].gc.request = npcmgpio_gpio_request; in npcm7xx_gpio_of()
1925 pctrl->gpio_bank[id].gc.free = npcmgpio_gpio_free; in npcm7xx_gpio_of()
1940 girq = &pctrl->gpio_bank[id].gc.irq; in npcm7xx_gpio_register()
1941 girq->chip = &pctrl->gpio_bank[id].irq_chip; in npcm7xx_gpio_register()
1951 girq->parents[0] = pctrl->gpio_bank[id].irq; in npcm7xx_gpio_register()
1955 &pctrl->gpio_bank[id].gc, in npcm7xx_gpio_register()
1956 &pctrl->gpio_bank[id]); in npcm7xx_gpio_register()
1962 ret = gpiochip_add_pin_range(&pctrl->gpio_bank[id].gc, in npcm7xx_gpio_register()
1964 pctrl->gpio_bank[id].pinctrl_id, in npcm7xx_gpio_register()
1965 pctrl->gpio_bank[id].gc.base, in npcm7xx_gpio_register()
1966 pctrl->gpio_bank[id].gc.ngpio); in npcm7xx_gpio_register()
1969 gpiochip_remove(&pctrl->gpio_bank[id].gc); in npcm7xx_gpio_register()
1978 gpiochip_remove(&pctrl->gpio_bank[id - 1].gc); in npcm7xx_gpio_register()