/drivers/pinctrl/ |
D | pinctrl-stmfx.c | 83 struct pinctrl_dev *pctl_dev; member 596 struct pinctrl_dev *pctl_dev = pctl->pctl_dev; in stmfx_pinctrl_gpio_function_enable() local 601 gpio_range = pinctrl_find_gpio_range_from_pin(pctl_dev, 16); in stmfx_pinctrl_gpio_function_enable() 607 gpio_range = pinctrl_find_gpio_range_from_pin(pctl_dev, 20); in stmfx_pinctrl_gpio_function_enable() 654 pctl, &pctl->pctl_dev); in stmfx_pinctrl_probe() 660 ret = pinctrl_enable(pctl->pctl_dev); in stmfx_pinctrl_probe()
|
D | pinctrl-axp209.c | 64 struct pinctrl_dev *pctl_dev; member 455 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, pctrl_desc, pctl); in axp20x_pctl_probe() 456 if (IS_ERR(pctl->pctl_dev)) { in axp20x_pctl_probe() 458 return PTR_ERR(pctl->pctl_dev); in axp20x_pctl_probe()
|
D | pinctrl-equilibrium.h | 135 struct pinctrl_dev *pctl_dev; member
|
D | pinctrl-equilibrium.c | 682 ret = pinmux_generic_add_function(drvdata->pctl_dev, in eqbr_build_functions() 748 err = pinctrl_generic_add_group(drvdata->pctl_dev, group.name, in eqbr_build_groups() 801 &drvdata->pctl_dev); in pinctrl_reg() 817 return pinctrl_enable(drvdata->pctl_dev); in pinctrl_reg()
|
D | pinctrl-rockchip.c | 427 struct pinctrl_dev *pctl_dev; member 2793 info->pctl_dev = devm_pinctrl_register(&pdev->dev, ctrldesc, info); in rockchip_pinctrl_register() 2794 if (IS_ERR(info->pctl_dev)) { in rockchip_pinctrl_register() 2796 return PTR_ERR(info->pctl_dev); in rockchip_pinctrl_register() 2807 pinctrl_add_gpio_range(info->pctl_dev, &pin_bank->grange); in rockchip_pinctrl_register() 3488 int ret = pinctrl_force_sleep(info->pctl_dev); in rockchip_pinctrl_suspend() 3501 pinctrl_force_default(info->pctl_dev); in rockchip_pinctrl_suspend() 3522 return pinctrl_force_default(info->pctl_dev); in rockchip_pinctrl_resume()
|
/drivers/pinctrl/intel/ |
D | pinctrl-baytrail.c | 756 static int byt_gpio_request_enable(struct pinctrl_dev *pctl_dev, in byt_gpio_request_enable() argument 760 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_gpio_request_enable() 793 static void byt_gpio_disable_free(struct pinctrl_dev *pctl_dev, in byt_gpio_disable_free() argument 797 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_gpio_disable_free() 818 static int byt_gpio_set_direction(struct pinctrl_dev *pctl_dev, in byt_gpio_set_direction() argument 823 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_gpio_set_direction() 896 static int byt_pin_config_get(struct pinctrl_dev *pctl_dev, unsigned int offset, in byt_pin_config_get() argument 899 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_pin_config_get() 979 static int byt_pin_config_set(struct pinctrl_dev *pctl_dev, in byt_pin_config_set() argument 984 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_pin_config_set()
|
/drivers/pinctrl/pxa/ |
D | pinctrl-pxa2xx.c | 416 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, &pctl->desc, pctl); in pxa2xx_pinctrl_init() 417 if (IS_ERR(pctl->pctl_dev)) { in pxa2xx_pinctrl_init() 419 return PTR_ERR(pctl->pctl_dev); in pxa2xx_pinctrl_init()
|
D | pinctrl-pxa2xx.h | 73 struct pinctrl_dev *pctl_dev; member
|
/drivers/pinctrl/bcm/ |
D | pinctrl-bcm2835.c | 86 struct pinctrl_dev *pctl_dev; member 1248 pc->pctl_dev = devm_pinctrl_register(dev, &pc->pctl_desc, pc); in bcm2835_pinctrl_probe() 1249 if (IS_ERR(pc->pctl_dev)) { in bcm2835_pinctrl_probe() 1251 return PTR_ERR(pc->pctl_dev); in bcm2835_pinctrl_probe() 1257 pinctrl_add_gpio_range(pc->pctl_dev, &pc->gpio_range); in bcm2835_pinctrl_probe() 1330 pinctrl_remove_gpio_range(pc->pctl_dev, &pc->gpio_range); in bcm2835_pinctrl_probe()
|
/drivers/pinctrl/vt8500/ |
D | pinctrl-wmt.h | 53 struct pinctrl_dev *pctl_dev; member
|
D | pinctrl-wmt.c | 575 data->pctl_dev = devm_pinctrl_register(&pdev->dev, &wmt_desc, data); in wmt_pinctrl_probe() 576 if (IS_ERR(data->pctl_dev)) { in wmt_pinctrl_probe() 578 return PTR_ERR(data->pctl_dev); in wmt_pinctrl_probe()
|
/drivers/pinctrl/stm32/ |
D | pinctrl-stm32.c | 101 struct pinctrl_dev *pctl_dev; member 214 range = pinctrl_find_gpio_range_from_pin_nolock(pctl->pctl_dev, pin); in stm32_gpio_request() 1290 pinctrl_add_gpio_range(pctl->pctl_dev, in stm32_gpiolib_register_bank() 1546 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, &pctl->pctl_desc, in stm32_pctl_probe() 1549 if (IS_ERR(pctl->pctl_dev)) { in stm32_pctl_probe() 1551 return PTR_ERR(pctl->pctl_dev); in stm32_pctl_probe() 1609 const struct pin_desc *desc = pin_desc_get(pctl->pctl_dev, pin); in stm32_pinctrl_restore_gpio_regs() 1616 range = pinctrl_find_gpio_range_from_pin(pctl->pctl_dev, pin); in stm32_pinctrl_restore_gpio_regs()
|
/drivers/soc/tegra/ |
D | pmc.c | 402 struct pinctrl_dev *pctl_dev; member 1738 static int tegra_io_pad_pinctrl_get_groups_count(struct pinctrl_dev *pctl_dev) in tegra_io_pad_pinctrl_get_groups_count() argument 1740 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinctrl_get_groups_count() 1753 static int tegra_io_pad_pinctrl_get_group_pins(struct pinctrl_dev *pctl_dev, in tegra_io_pad_pinctrl_get_group_pins() argument 1758 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinctrl_get_group_pins() 1774 static int tegra_io_pad_pinconf_get(struct pinctrl_dev *pctl_dev, in tegra_io_pad_pinconf_get() argument 1778 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinconf_get() 1813 static int tegra_io_pad_pinconf_set(struct pinctrl_dev *pctl_dev, in tegra_io_pad_pinconf_set() argument 1817 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinconf_set() 1879 pmc->pctl_dev = devm_pinctrl_register(pmc->dev, &tegra_pmc_pctl_desc, in tegra_pmc_pinctrl_init() [all …]
|
/drivers/pinctrl/mediatek/ |
D | pinctrl-mtk-common.c | 968 mtk_pmx_set_mode(pctl->pctl_dev, pin->pin.number, pin->eint.eintmux); in mtk_xt_set_gpio_as_eint() 970 mtk_pmx_gpio_set_direction(pctl->pctl_dev, NULL, pin->pin.number, in mtk_xt_set_gpio_as_eint() 1085 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, &pctl->pctl_desc, in mtk_pctrl_init() 1087 if (IS_ERR(pctl->pctl_dev)) { in mtk_pctrl_init() 1089 return PTR_ERR(pctl->pctl_dev); in mtk_pctrl_init()
|
D | pinctrl-mtk-common.h | 268 struct pinctrl_dev *pctl_dev; member
|
/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.c | 862 sunxi_pmx_set(pctl->pctl_dev, pin, SUN4I_FUNC_INPUT); in sunxi_pinctrl_gpio_get() 867 sunxi_pmx_set(pctl->pctl_dev, pin, SUN4I_FUNC_IRQ); in sunxi_pinctrl_gpio_get() 962 sunxi_pmx_set(pctl->pctl_dev, pctl->irq_array[d->hwirq], func->muxval); in sunxi_pinctrl_irq_request_resources() 1481 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, pctrl_desc, pctl); in sunxi_pinctrl_init_with_variant() 1482 if (IS_ERR(pctl->pctl_dev)) { in sunxi_pinctrl_init_with_variant() 1484 return PTR_ERR(pctl->pctl_dev); in sunxi_pinctrl_init_with_variant()
|
D | pinctrl-sunxi.h | 171 struct pinctrl_dev *pctl_dev; member
|
/drivers/pinctrl/samsung/ |
D | pinctrl-samsung.c | 907 drvdata->pctl_dev = devm_pinctrl_register(&pdev->dev, ctrldesc, in samsung_pinctrl_register() 909 if (IS_ERR(drvdata->pctl_dev)) { in samsung_pinctrl_register() 911 return PTR_ERR(drvdata->pctl_dev); in samsung_pinctrl_register() 923 pinctrl_add_gpio_range(drvdata->pctl_dev, &pin_bank->grange); in samsung_pinctrl_register() 937 pinctrl_remove_gpio_range(drvdata->pctl_dev, &bank->grange); in samsung_pinctrl_unregister()
|
D | pinctrl-samsung.h | 277 struct pinctrl_dev *pctl_dev; member
|
/drivers/pinctrl/mvebu/ |
D | pinctrl-armada-37xx.c | 105 struct pinctrl_dev *pctl_dev; member 1013 info->pctl_dev = devm_pinctrl_register(&pdev->dev, ctrldesc, info); in armada_37xx_pinctrl_register() 1014 if (IS_ERR(info->pctl_dev)) { in armada_37xx_pinctrl_register() 1016 return PTR_ERR(info->pctl_dev); in armada_37xx_pinctrl_register()
|