Home
last modified time | relevance | path

Searched refs:pctl_dev (Results 1 – 20 of 20) sorted by relevance

/drivers/pinctrl/
Dpinctrl-stmfx.c83 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()
Dpinctrl-axp209.c64 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()
Dpinctrl-equilibrium.h135 struct pinctrl_dev *pctl_dev; member
Dpinctrl-equilibrium.c682 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()
Dpinctrl-rockchip.c427 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/
Dpinctrl-baytrail.c756 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/
Dpinctrl-pxa2xx.c416 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()
Dpinctrl-pxa2xx.h73 struct pinctrl_dev *pctl_dev; member
/drivers/pinctrl/bcm/
Dpinctrl-bcm2835.c86 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/
Dpinctrl-wmt.h53 struct pinctrl_dev *pctl_dev; member
Dpinctrl-wmt.c575 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/
Dpinctrl-stm32.c101 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/
Dpmc.c402 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/
Dpinctrl-mtk-common.c968 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()
Dpinctrl-mtk-common.h268 struct pinctrl_dev *pctl_dev; member
/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c862 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()
Dpinctrl-sunxi.h171 struct pinctrl_dev *pctl_dev; member
/drivers/pinctrl/samsung/
Dpinctrl-samsung.c907 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()
Dpinctrl-samsung.h277 struct pinctrl_dev *pctl_dev; member
/drivers/pinctrl/mvebu/
Dpinctrl-armada-37xx.c105 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()