Searched refs:npct (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/pinctrl/nomadik/ |
D | pinctrl-nomadik.c | 442 static void nmk_prcm_altcx_set_mode(struct nmk_pinctrl *npct, in nmk_prcm_altcx_set_mode() argument 452 if (!npct->prcm_base) in nmk_prcm_altcx_set_mode() 456 dev_err(npct->dev, "PRCM GPIOCR: alternate-C%i is invalid\n", in nmk_prcm_altcx_set_mode() 461 for (i = 0 ; i < npct->soc->npins_altcx ; i++) { in nmk_prcm_altcx_set_mode() 462 if (npct->soc->altcx_pins[i].pin == offset) in nmk_prcm_altcx_set_mode() 465 if (i == npct->soc->npins_altcx) { in nmk_prcm_altcx_set_mode() 466 dev_dbg(npct->dev, "PRCM GPIOCR: pin %i is not found\n", in nmk_prcm_altcx_set_mode() 471 pin_desc = npct->soc->altcx_pins + i; in nmk_prcm_altcx_set_mode() 472 gpiocr_regs = npct->soc->prcm_gpiocr_registers; in nmk_prcm_altcx_set_mode() 483 if (readl(npct->prcm_base + reg) & BIT(bit)) { in nmk_prcm_altcx_set_mode() [all …]
|
D | pinctrl-abx500.c | 730 struct abx500_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); in abx500_find_pin_name() local 733 for (i = 0; i < npct->soc->npins; i++) in abx500_find_pin_name() 734 if (npct->soc->pins[i].number == pin_number) in abx500_find_pin_name() 735 return npct->soc->pins[i].name; in abx500_find_pin_name()
|
/Linux-v6.1/drivers/pinctrl/ |
D | pinctrl-at91.c | 934 struct at91_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); in at91_gpio_request_enable() local 940 dev_err(npct->dev, "invalid range\n"); in at91_gpio_request_enable() 944 dev_err(npct->dev, "missing GPIO chip in range\n"); in at91_gpio_request_enable() 950 dev_dbg(npct->dev, "enable pin %u as GPIO\n", offset); in at91_gpio_request_enable() 954 dev_dbg(npct->dev, "enable pin %u as PIO%c%d 0x%x\n", in at91_gpio_request_enable() 966 struct at91_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); in at91_gpio_disable_free() local 968 dev_dbg(npct->dev, "disable pin %u as GPIO\n", offset); in at91_gpio_disable_free()
|