npct 730 drivers/pinctrl/nomadik/pinctrl-abx500.c struct abx500_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 733 drivers/pinctrl/nomadik/pinctrl-abx500.c for (i = 0; i < npct->soc->npins; i++) npct 734 drivers/pinctrl/nomadik/pinctrl-abx500.c if (npct->soc->pins[i].number == pin_number) npct 735 drivers/pinctrl/nomadik/pinctrl-abx500.c return npct->soc->pins[i].name; npct 446 drivers/pinctrl/nomadik/pinctrl-nomadik.c static void nmk_prcm_altcx_set_mode(struct nmk_pinctrl *npct, npct 456 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!npct->prcm_base) npct 460 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_err(npct->dev, "PRCM GPIOCR: alternate-C%i is invalid\n", npct 465 drivers/pinctrl/nomadik/pinctrl-nomadik.c for (i = 0 ; i < npct->soc->npins_altcx ; i++) { npct 466 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (npct->soc->altcx_pins[i].pin == offset) npct 469 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (i == npct->soc->npins_altcx) { npct 470 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(npct->dev, "PRCM GPIOCR: pin %i is not found\n", npct 475 drivers/pinctrl/nomadik/pinctrl-nomadik.c pin_desc = npct->soc->altcx_pins + i; npct 476 drivers/pinctrl/nomadik/pinctrl-nomadik.c gpiocr_regs = npct->soc->prcm_gpiocr_registers; npct 487 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (readl(npct->prcm_base + reg) & BIT(bit)) { npct 488 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_write_masked(npct->prcm_base + reg, BIT(bit), 0); npct 489 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(npct->dev, npct 500 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_warn(npct->dev, npct 516 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (readl(npct->prcm_base + reg) & BIT(bit)) { npct 517 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_write_masked(npct->prcm_base + reg, BIT(bit), 0); npct 518 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(npct->dev, npct 527 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(npct->dev, "PRCM GPIOCR: pin %i: alternate-C%i has been selected\n", npct 529 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_write_masked(npct->prcm_base + reg, BIT(bit), BIT(bit)); npct 583 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 587 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!npct->prcm_base) npct 590 drivers/pinctrl/nomadik/pinctrl-nomadik.c for (i = 0; i < npct->soc->npins_altcx; i++) { npct 591 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (npct->soc->altcx_pins[i].pin == gpio) npct 594 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (i == npct->soc->npins_altcx) npct 597 drivers/pinctrl/nomadik/pinctrl-nomadik.c pin_desc = npct->soc->altcx_pins + i; npct 598 drivers/pinctrl/nomadik/pinctrl-nomadik.c gpiocr_regs = npct->soc->prcm_gpiocr_registers; npct 603 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (readl(npct->prcm_base + reg) & BIT(bit)) npct 1210 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1212 drivers/pinctrl/nomadik/pinctrl-nomadik.c return npct->soc->ngroups; npct 1218 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1220 drivers/pinctrl/nomadik/pinctrl-nomadik.c return npct->soc->groups[selector].name; npct 1227 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1229 drivers/pinctrl/nomadik/pinctrl-nomadik.c *pins = npct->soc->groups[selector].pins; npct 1230 drivers/pinctrl/nomadik/pinctrl-nomadik.c *num_pins = npct->soc->groups[selector].npins; npct 1397 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1400 drivers/pinctrl/nomadik/pinctrl-nomadik.c for (i = 0; i < npct->soc->npins; i++) npct 1401 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (npct->soc->pins[i].number == pin_number) npct 1402 drivers/pinctrl/nomadik/pinctrl-nomadik.c return npct->soc->pins[i].name; npct 1530 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1532 drivers/pinctrl/nomadik/pinctrl-nomadik.c return npct->soc->nfunctions; npct 1538 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1540 drivers/pinctrl/nomadik/pinctrl-nomadik.c return npct->soc->functions[function].name; npct 1548 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1550 drivers/pinctrl/nomadik/pinctrl-nomadik.c *groups = npct->soc->functions[function].groups; npct 1551 drivers/pinctrl/nomadik/pinctrl-nomadik.c *num_groups = npct->soc->functions[function].ngroups; npct 1559 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1567 drivers/pinctrl/nomadik/pinctrl-nomadik.c g = &npct->soc->groups[group]; npct 1572 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(npct->dev, "enable group %s, %u pins\n", g->name, g->npins); npct 1618 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_err(npct->dev, npct 1623 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(npct->dev, "setting pin %d to altsetting %d\n", g->pins[i], g->altsetting); npct 1649 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_prcm_altcx_set_mode(npct, g->pins[i], npct 1669 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1675 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_err(npct->dev, "invalid range\n"); npct 1679 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_err(npct->dev, "missing GPIO chip in range\n"); npct 1685 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(npct->dev, "enable pin %u as GPIO\n", offset); npct 1700 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1702 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_dbg(npct->dev, "disable pin %u as GPIO\n", offset); npct 1736 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 1745 drivers/pinctrl/nomadik/pinctrl-nomadik.c dev_err(npct->dev, npct 1853 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct; npct 1855 drivers/pinctrl/nomadik/pinctrl-nomadik.c npct = dev_get_drvdata(dev); npct 1856 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!npct) npct 1859 drivers/pinctrl/nomadik/pinctrl-nomadik.c return pinctrl_force_sleep(npct->pctl); npct 1864 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct; npct 1866 drivers/pinctrl/nomadik/pinctrl-nomadik.c npct = dev_get_drvdata(dev); npct 1867 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!npct) npct 1870 drivers/pinctrl/nomadik/pinctrl-nomadik.c return pinctrl_force_default(npct->pctl); npct 1879 drivers/pinctrl/nomadik/pinctrl-nomadik.c struct nmk_pinctrl *npct; npct 1883 drivers/pinctrl/nomadik/pinctrl-nomadik.c npct = devm_kzalloc(&pdev->dev, sizeof(*npct), GFP_KERNEL); npct 1884 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!npct) npct 1894 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_pinctrl_stn8815_init(&npct->soc); npct 1896 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_pinctrl_db8500_init(&npct->soc); npct 1898 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_pinctrl_db8540_init(&npct->soc); npct 1927 drivers/pinctrl/nomadik/pinctrl-nomadik.c npct->prcm_base = of_iomap(prcm_np, 0); npct 1928 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (!npct->prcm_base) { npct 1939 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_pinctrl_desc.pins = npct->soc->pins; npct 1940 drivers/pinctrl/nomadik/pinctrl-nomadik.c nmk_pinctrl_desc.npins = npct->soc->npins; npct 1941 drivers/pinctrl/nomadik/pinctrl-nomadik.c npct->dev = &pdev->dev; npct 1943 drivers/pinctrl/nomadik/pinctrl-nomadik.c npct->pctl = devm_pinctrl_register(&pdev->dev, &nmk_pinctrl_desc, npct); npct 1944 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (IS_ERR(npct->pctl)) { npct 1946 drivers/pinctrl/nomadik/pinctrl-nomadik.c return PTR_ERR(npct->pctl); npct 1949 drivers/pinctrl/nomadik/pinctrl-nomadik.c platform_set_drvdata(pdev, npct); npct 912 drivers/pinctrl/pinctrl-at91.c struct at91_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 918 drivers/pinctrl/pinctrl-at91.c dev_err(npct->dev, "invalid range\n"); npct 922 drivers/pinctrl/pinctrl-at91.c dev_err(npct->dev, "missing GPIO chip in range\n"); npct 928 drivers/pinctrl/pinctrl-at91.c dev_dbg(npct->dev, "enable pin %u as GPIO\n", offset); npct 932 drivers/pinctrl/pinctrl-at91.c dev_dbg(npct->dev, "enable pin %u as PIO%c%d 0x%x\n", npct 944 drivers/pinctrl/pinctrl-at91.c struct at91_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); npct 946 drivers/pinctrl/pinctrl-at91.c dev_dbg(npct->dev, "disable pin %u as GPIO\n", offset);