Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/pinctrl/bcm/
A Dpinctrl-bcm63xx.c93 pc->pctl_dev = devm_pinctrl_register(dev, &pc->pctl_desc, pc); in bcm63xx_pinctrl_probe()
94 if (IS_ERR(pc->pctl_dev)) in bcm63xx_pinctrl_probe()
95 return PTR_ERR(pc->pctl_dev); in bcm63xx_pinctrl_probe()
A Dpinctrl-bcm63xx.h31 struct pinctrl_dev *pctl_dev; member
A Dpinctrl-bcm2835.c87 struct pinctrl_dev *pctl_dev; member
1272 pc->pctl_dev = devm_pinctrl_register(dev, &pc->pctl_desc, pc); in bcm2835_pinctrl_probe()
1273 if (IS_ERR(pc->pctl_dev)) { in bcm2835_pinctrl_probe()
1275 return PTR_ERR(pc->pctl_dev); in bcm2835_pinctrl_probe()
1281 pinctrl_add_gpio_range(pc->pctl_dev, &pc->gpio_range); in bcm2835_pinctrl_probe()
1358 pinctrl_remove_gpio_range(pc->pctl_dev, &pc->gpio_range); in bcm2835_pinctrl_probe()
/linux-6.3-rc2/drivers/pinctrl/
A Dpinctrl-stmfx.c85 struct pinctrl_dev *pctl_dev; member
598 struct pinctrl_dev *pctl_dev = pctl->pctl_dev; in stmfx_pinctrl_gpio_function_enable() local
603 gpio_range = pinctrl_find_gpio_range_from_pin(pctl_dev, 16); in stmfx_pinctrl_gpio_function_enable()
609 gpio_range = pinctrl_find_gpio_range_from_pin(pctl_dev, 20); in stmfx_pinctrl_gpio_function_enable()
656 pctl, &pctl->pctl_dev); in stmfx_pinctrl_probe()
662 ret = pinctrl_enable(pctl->pctl_dev); in stmfx_pinctrl_probe()
A Dpinctrl-axp209.c66 struct pinctrl_dev *pctl_dev; member
465 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, pctrl_desc, pctl); in axp20x_pctl_probe()
466 if (IS_ERR(pctl->pctl_dev)) { in axp20x_pctl_probe()
468 return PTR_ERR(pctl->pctl_dev); in axp20x_pctl_probe()
A Dpinctrl-equilibrium.h137 struct pinctrl_dev *pctl_dev; member
A Dpinctrl-equilibrium.c682 ret = pinmux_generic_add_function(drvdata->pctl_dev, in eqbr_build_functions()
756 err = pinctrl_generic_add_group(drvdata->pctl_dev, group.name, in eqbr_build_groups()
810 &drvdata->pctl_dev); in pinctrl_reg()
826 return pinctrl_enable(drvdata->pctl_dev); in pinctrl_reg()
A Dpinctrl-rockchip.h460 struct pinctrl_dev *pctl_dev; member
A Dpinctrl-rockchip.c3180 info->pctl_dev = devm_pinctrl_register(dev, ctrldesc, info); in rockchip_pinctrl_register()
3181 if (IS_ERR(info->pctl_dev)) in rockchip_pinctrl_register()
3182 return dev_err_probe(dev, PTR_ERR(info->pctl_dev), "could not register pinctrl driver\n"); in rockchip_pinctrl_register()
3315 int ret = pinctrl_force_sleep(info->pctl_dev); in rockchip_pinctrl_suspend()
3328 pinctrl_force_default(info->pctl_dev); in rockchip_pinctrl_suspend()
3349 return pinctrl_force_default(info->pctl_dev); in rockchip_pinctrl_resume()
/linux-6.3-rc2/drivers/pinctrl/intel/
A Dpinctrl-baytrail.c767 static int byt_gpio_request_enable(struct pinctrl_dev *pctl_dev, in byt_gpio_request_enable() argument
771 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_gpio_request_enable()
804 static void byt_gpio_disable_free(struct pinctrl_dev *pctl_dev, in byt_gpio_disable_free() argument
808 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_gpio_disable_free()
829 static int byt_gpio_set_direction(struct pinctrl_dev *pctl_dev, in byt_gpio_set_direction() argument
834 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_gpio_set_direction()
907 static int byt_pin_config_get(struct pinctrl_dev *pctl_dev, unsigned int offset, in byt_pin_config_get() argument
910 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_pin_config_get()
990 static int byt_pin_config_set(struct pinctrl_dev *pctl_dev, in byt_pin_config_set() argument
995 struct intel_pinctrl *vg = pinctrl_dev_get_drvdata(pctl_dev); in byt_pin_config_set()
/linux-6.3-rc2/drivers/pinctrl/vt8500/
A Dpinctrl-wmt.h53 struct pinctrl_dev *pctl_dev; member
A Dpinctrl-wmt.c574 data->pctl_dev = devm_pinctrl_register(&pdev->dev, &wmt_desc, data); in wmt_pinctrl_probe()
575 if (IS_ERR(data->pctl_dev)) { in wmt_pinctrl_probe()
577 return PTR_ERR(data->pctl_dev); in wmt_pinctrl_probe()
/linux-6.3-rc2/drivers/pinctrl/pxa/
A Dpinctrl-pxa2xx.h73 struct pinctrl_dev *pctl_dev; member
A 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()
/linux-6.3-rc2/drivers/pinctrl/sunxi/
A Dpinctrl-sunxi.c917 return sunxi_pmx_gpio_set_direction(pctl->pctl_dev, NULL, in sunxi_pinctrl_gpio_direction_input()
932 sunxi_pmx_set(pctl->pctl_dev, pin, SUN4I_FUNC_INPUT); in sunxi_pinctrl_gpio_get()
937 sunxi_pmx_set(pctl->pctl_dev, pin, SUN4I_FUNC_IRQ); in sunxi_pinctrl_gpio_get()
971 return sunxi_pmx_gpio_set_direction(pctl->pctl_dev, NULL, in sunxi_pinctrl_gpio_direction_output()
1035 sunxi_pmx_set(pctl->pctl_dev, pctl->irq_array[d->hwirq], func->muxval); in sunxi_pinctrl_irq_request_resources()
1562 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, pctrl_desc, pctl); in sunxi_pinctrl_init_with_variant()
1563 if (IS_ERR(pctl->pctl_dev)) { in sunxi_pinctrl_init_with_variant()
1565 return PTR_ERR(pctl->pctl_dev); in sunxi_pinctrl_init_with_variant()
A Dpinctrl-sunxi.h176 struct pinctrl_dev *pctl_dev; member
/linux-6.3-rc2/drivers/pinctrl/sunplus/
A Dsppctl.h133 struct pinctrl_dev *pctl_dev; member
A Dsppctl.c1044 sppctl, &sppctl->pctl_dev); in sppctl_pinctrl_init()
1048 pinctrl_enable(sppctl->pctl_dev); in sppctl_pinctrl_init()
1095 pinctrl_add_gpio_range(sppctl->pctl_dev, &sppctl->pctl_grange); in sppctl_probe()
/linux-6.3-rc2/drivers/pinctrl/stm32/
A Dpinctrl-stm32.c106 struct pinctrl_dev *pctl_dev; member
215 range = pinctrl_find_gpio_range_from_pin_nolock(pctl->pctl_dev, pin); in stm32_gpio_request()
1326 pinctrl_add_gpio_range(pctl->pctl_dev, in stm32_gpiolib_register_bank()
1573 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, &pctl->pctl_desc, in stm32_pctl_probe()
1576 if (IS_ERR(pctl->pctl_dev)) { in stm32_pctl_probe()
1578 return PTR_ERR(pctl->pctl_dev); in stm32_pctl_probe()
1633 const struct pin_desc *desc = pin_desc_get(pctl->pctl_dev, pin); in stm32_pinctrl_restore_gpio_regs()
1640 range = pinctrl_find_gpio_range_from_pin(pctl->pctl_dev, pin); in stm32_pinctrl_restore_gpio_regs()
/linux-6.3-rc2/drivers/pinctrl/mediatek/
A Dpinctrl-mtk-common.c1001 mtk_pmx_set_mode(pctl->pctl_dev, pin->pin.number, pin->eint.eintmux); in mtk_xt_set_gpio_as_eint()
1003 mtk_pmx_gpio_set_direction(pctl->pctl_dev, NULL, pin->pin.number, in mtk_xt_set_gpio_as_eint()
1110 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, &pctl->pctl_desc, in mtk_pctrl_init()
1112 if (IS_ERR(pctl->pctl_dev)) in mtk_pctrl_init()
1113 return dev_err_probe(dev, PTR_ERR(pctl->pctl_dev), in mtk_pctrl_init()
A Dpinctrl-mtk-common.h291 struct pinctrl_dev *pctl_dev; member
/linux-6.3-rc2/drivers/pinctrl/samsung/
A 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()
A Dpinctrl-samsung.h285 struct pinctrl_dev *pctl_dev; member
/linux-6.3-rc2/drivers/soc/tegra/
A Dpmc.c453 struct pinctrl_dev *pctl_dev; member
2048 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinctrl_get_groups_count()
2061 static int tegra_io_pad_pinctrl_get_group_pins(struct pinctrl_dev *pctl_dev, in tegra_io_pad_pinctrl_get_group_pins() argument
2066 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinctrl_get_group_pins()
2082 static int tegra_io_pad_pinconf_get(struct pinctrl_dev *pctl_dev, in tegra_io_pad_pinconf_get() argument
2086 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinconf_get()
2121 static int tegra_io_pad_pinconf_set(struct pinctrl_dev *pctl_dev, in tegra_io_pad_pinconf_set() argument
2125 struct tegra_pmc *pmc = pinctrl_dev_get_drvdata(pctl_dev); in tegra_io_pad_pinconf_set()
2187 pmc->pctl_dev = devm_pinctrl_register(pmc->dev, &tegra_pmc_pctl_desc, in tegra_pmc_pinctrl_init()
2189 if (IS_ERR(pmc->pctl_dev)) { in tegra_pmc_pinctrl_init()
[all …]
/linux-6.3-rc2/drivers/pinctrl/mvebu/
A Dpinctrl-armada-37xx.c107 struct pinctrl_dev *pctl_dev; member
995 info->pctl_dev = devm_pinctrl_register(dev, ctrldesc, info); in armada_37xx_pinctrl_register()
996 if (IS_ERR(info->pctl_dev)) in armada_37xx_pinctrl_register()
997 return dev_err_probe(dev, PTR_ERR(info->pctl_dev), "could not register pinctrl driver\n"); in armada_37xx_pinctrl_register()

Completed in 306 milliseconds