Lines Matching full:npcm

1504 	struct npcm7xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev);  in npcm7xx_get_drive_strength()  local
1506 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_get_drive_strength()
1527 static int npcm7xx_set_drive_strength(struct npcm7xx_pinctrl *npcm, in npcm7xx_set_drive_strength() argument
1532 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_set_drive_strength()
1562 struct npcm7xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm7xx_get_groups_count() local
1564 dev_dbg(npcm->dev, "group size: %zu\n", ARRAY_SIZE(npcm7xx_groups)); in npcm7xx_get_groups_count()
1627 struct npcm7xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm7xx_pinmux_set_mux() local
1629 dev_dbg(npcm->dev, "set_mux: %d, %d[%s]\n", function, group, in npcm7xx_pinmux_set_mux()
1632 npcm7xx_setfunc(npcm->gcr_regmap, npcm7xx_groups[group].pins, in npcm7xx_pinmux_set_mux()
1642 struct npcm7xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm7xx_gpio_request_enable() local
1645 dev_err(npcm->dev, "invalid range\n"); in npcm7xx_gpio_request_enable()
1649 dev_err(npcm->dev, "invalid gpiochip\n"); in npcm7xx_gpio_request_enable()
1653 npcm7xx_setfunc(npcm->gcr_regmap, &offset, 1, fn_gpio); in npcm7xx_gpio_request_enable()
1663 struct npcm7xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm7xx_gpio_request_free() local
1666 virq = irq_find_mapping(npcm->domain, offset); in npcm7xx_gpio_request_free()
1676 struct npcm7xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm_gpio_set_direction() local
1678 &npcm->gpio_bank[offset / NPCM7XX_GPIO_PER_BANK]; in npcm_gpio_set_direction()
1706 struct npcm7xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm7xx_config_get() local
1708 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_config_get()
1751 rc = npcm7xx_get_slew_rate(bank, npcm->gcr_regmap, pin); in npcm7xx_config_get()
1765 static int npcm7xx_config_set_one(struct npcm7xx_pinctrl *npcm, in npcm7xx_config_set_one() argument
1771 &npcm->gpio_bank[pin / NPCM7XX_GPIO_PER_BANK]; in npcm7xx_config_set_one()
1806 return npcm7xx_set_slew_rate(bank, npcm->gcr_regmap, pin, arg); in npcm7xx_config_set_one()
1808 return npcm7xx_set_drive_strength(npcm, pin, arg); in npcm7xx_config_set_one()
1820 struct npcm7xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm7xx_config_set() local
1824 rc = npcm7xx_config_set_one(npcm, pin, *configs++); in npcm7xx_config_set()