Lines Matching full:npcm

1917 	struct npcm8xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev);  in npcm8xx_get_drive_strength()  local
1919 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_get_drive_strength()
1936 static int npcm8xx_set_drive_strength(struct npcm8xx_pinctrl *npcm, in npcm8xx_set_drive_strength() argument
1940 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_set_drive_strength()
2029 struct npcm8xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm8xx_pinmux_set_mux() local
2031 npcm8xx_setfunc(npcm->gcr_regmap, npcm8xx_pingroups[group].pins, in npcm8xx_pinmux_set_mux()
2041 struct npcm8xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm8xx_gpio_request_enable() local
2048 npcm8xx_setfunc(npcm->gcr_regmap, &offset, 1, mode); in npcm8xx_gpio_request_enable()
2057 struct npcm8xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm8xx_gpio_request_free() local
2060 virq = irq_find_mapping(npcm->domain, offset); in npcm8xx_gpio_request_free()
2069 struct npcm8xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm_gpio_set_direction() local
2071 &npcm->gpio_bank[offset / NPCM8XX_GPIO_PER_BANK]; in npcm_gpio_set_direction()
2158 static int npcm_set_debounce(struct npcm8xx_pinctrl *npcm, unsigned int pin, in npcm_set_debounce() argument
2162 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm_set_debounce()
2170 …dev_err(npcm->dev, "Pin %d, All four debounce timing values are used, please use one of exist debo… in npcm_set_debounce()
2187 struct npcm8xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm8xx_config_get() local
2189 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_config_get()
2232 rc = npcm8xx_get_slew_rate(bank, npcm->gcr_regmap, pin); in npcm8xx_config_get()
2246 static int npcm8xx_config_set_one(struct npcm8xx_pinctrl *npcm, in npcm8xx_config_set_one() argument
2251 &npcm->gpio_bank[pin / NPCM8XX_GPIO_PER_BANK]; in npcm8xx_config_set_one()
2283 return npcm_set_debounce(npcm, pin, arg * 1000); in npcm8xx_config_set_one()
2285 return npcm8xx_set_slew_rate(bank, npcm->gcr_regmap, pin, arg); in npcm8xx_config_set_one()
2287 return npcm8xx_set_drive_strength(npcm, pin, arg); in npcm8xx_config_set_one()
2298 struct npcm8xx_pinctrl *npcm = pinctrl_dev_get_drvdata(pctldev); in npcm8xx_config_set() local
2302 rc = npcm8xx_config_set_one(npcm, pin, *configs++); in npcm8xx_config_set()