Home
last modified time | relevance | path

Searched refs:pctl_desc (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/pinctrl/
Dpinctrl-digicolor.c274 struct pinctrl_desc *pctl_desc; in dc_pinctrl_probe() local
309 pctl_desc = devm_kzalloc(&pdev->dev, sizeof(*pctl_desc), GFP_KERNEL); in dc_pinctrl_probe()
310 if (!pctl_desc) in dc_pinctrl_probe()
313 pctl_desc->name = DRIVER_NAME, in dc_pinctrl_probe()
314 pctl_desc->owner = THIS_MODULE, in dc_pinctrl_probe()
315 pctl_desc->pctlops = &dc_pinctrl_ops, in dc_pinctrl_probe()
316 pctl_desc->pmxops = &dc_pmxops, in dc_pinctrl_probe()
317 pctl_desc->npins = PINS_COUNT; in dc_pinctrl_probe()
318 pctl_desc->pins = pins; in dc_pinctrl_probe()
319 pmap->desc = pctl_desc; in dc_pinctrl_probe()
[all …]
Dpinctrl-equilibrium.c734 if (pin_id >= drvdata->pctl_desc.npins) { in eqbr_build_groups()
764 struct pinctrl_desc *pctl_desc; in pinctrl_reg() local
772 pctl_desc = &drvdata->pctl_desc; in pinctrl_reg()
773 pctl_desc->name = "eqbr-pinctrl"; in pinctrl_reg()
774 pctl_desc->owner = THIS_MODULE; in pinctrl_reg()
775 pctl_desc->pctlops = &eqbr_pctl_ops; in pinctrl_reg()
776 pctl_desc->pmxops = &eqbr_pinmux_ops; in pinctrl_reg()
777 pctl_desc->confops = &eqbr_pinconf_ops; in pinctrl_reg()
796 pctl_desc->pins = pdesc; in pinctrl_reg()
797 pctl_desc->npins = nr_pins; in pinctrl_reg()
[all …]
Dpinctrl-stmfx.c84 struct pinctrl_desc pctl_desc; member
645 pctl->pctl_desc.name = "stmfx-pinctrl"; in stmfx_pinctrl_probe()
646 pctl->pctl_desc.pctlops = &stmfx_pinctrl_ops; in stmfx_pinctrl_probe()
647 pctl->pctl_desc.confops = &stmfx_pinconf_ops; in stmfx_pinctrl_probe()
648 pctl->pctl_desc.pins = stmfx_pins; in stmfx_pinctrl_probe()
649 pctl->pctl_desc.npins = ARRAY_SIZE(stmfx_pins); in stmfx_pinctrl_probe()
650 pctl->pctl_desc.owner = THIS_MODULE; in stmfx_pinctrl_probe()
651 pctl->pctl_desc.link_consumers = true; in stmfx_pinctrl_probe()
653 ret = devm_pinctrl_register_and_init(pctl->dev, &pctl->pctl_desc, in stmfx_pinctrl_probe()
676 pctl->gpio_chip.ngpio = pctl->pctl_desc.npins; in stmfx_pinctrl_probe()
Dpinctrl-st.c1578 struct pinctrl_desc *pctl_desc, struct st_pinctrl *info) in st_pctl_probe_dt() argument
1634 pctl_desc->npins = info->nbanks * ST_GPIO_PINS_PER_BANK; in st_pctl_probe_dt()
1636 pctl_desc->npins, sizeof(*pdesc), GFP_KERNEL); in st_pctl_probe_dt()
1640 pctl_desc->pins = pdesc; in st_pctl_probe_dt()
1679 struct pinctrl_desc *pctl_desc; in st_pctl_probe() local
1687 pctl_desc = devm_kzalloc(&pdev->dev, sizeof(*pctl_desc), GFP_KERNEL); in st_pctl_probe()
1688 if (!pctl_desc) in st_pctl_probe()
1697 ret = st_pctl_probe_dt(pdev, pctl_desc, info); in st_pctl_probe()
1701 pctl_desc->owner = THIS_MODULE; in st_pctl_probe()
1702 pctl_desc->pctlops = &st_pctlops; in st_pctl_probe()
[all …]
Dpinctrl-equilibrium.h134 struct pinctrl_desc pctl_desc; member
Dpinctrl-ingenic.c2737 struct pinctrl_desc *pctl_desc; in ingenic_pinctrl_probe() local
2762 pctl_desc = devm_kzalloc(&pdev->dev, sizeof(*pctl_desc), GFP_KERNEL); in ingenic_pinctrl_probe()
2763 if (!pctl_desc) in ingenic_pinctrl_probe()
2767 pctl_desc->name = dev_name(dev); in ingenic_pinctrl_probe()
2768 pctl_desc->owner = THIS_MODULE; in ingenic_pinctrl_probe()
2769 pctl_desc->pctlops = &ingenic_pctlops; in ingenic_pinctrl_probe()
2770 pctl_desc->pmxops = &ingenic_pmxops; in ingenic_pinctrl_probe()
2771 pctl_desc->confops = &ingenic_confops; in ingenic_pinctrl_probe()
2772 pctl_desc->npins = chip_info->num_chips * PINS_PER_GPIO_CHIP; in ingenic_pinctrl_probe()
2773 pctl_desc->pins = jzpc->pdesc = devm_kcalloc(&pdev->dev, in ingenic_pinctrl_probe()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/visconti/
Dpinctrl-common.c28 struct pinctrl_desc pctl_desc; member
286 priv->pctl_desc.name = dev_name(dev); in visconti_pinctrl_probe()
287 priv->pctl_desc.owner = THIS_MODULE; in visconti_pinctrl_probe()
288 priv->pctl_desc.pins = pins; in visconti_pinctrl_probe()
289 priv->pctl_desc.npins = devdata->nr_pins; in visconti_pinctrl_probe()
290 priv->pctl_desc.confops = &visconti_pinconf_ops; in visconti_pinctrl_probe()
291 priv->pctl_desc.pctlops = &visconti_pinctrl_ops; in visconti_pinctrl_probe()
292 priv->pctl_desc.pmxops = &visconti_pinmux_ops; in visconti_pinctrl_probe()
294 ret = devm_pinctrl_register_and_init(dev, &priv->pctl_desc, in visconti_pinctrl_probe()
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/
Dpinctrl.c36 struct pinctrl_desc pctl_desc; member
815 pmx->pctl_desc.name = DRV_NAME; in sh_pfc_register_pinctrl()
816 pmx->pctl_desc.owner = THIS_MODULE; in sh_pfc_register_pinctrl()
817 pmx->pctl_desc.pctlops = &sh_pfc_pinctrl_ops; in sh_pfc_register_pinctrl()
818 pmx->pctl_desc.pmxops = &sh_pfc_pinmux_ops; in sh_pfc_register_pinctrl()
819 pmx->pctl_desc.confops = &sh_pfc_pinconf_ops; in sh_pfc_register_pinctrl()
820 pmx->pctl_desc.pins = pmx->pins; in sh_pfc_register_pinctrl()
821 pmx->pctl_desc.npins = pfc->info->nr_pins; in sh_pfc_register_pinctrl()
823 ret = devm_pinctrl_register_and_init(pfc->dev, &pmx->pctl_desc, pmx, in sh_pfc_register_pinctrl()
/kernel/linux/linux-5.10/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c595 struct pinctrl_desc *pctl_desc; in imx1_pinctrl_core_probe() local
618 pctl_desc = &imx1_pinctrl_desc; in imx1_pinctrl_core_probe()
619 pctl_desc->name = dev_name(&pdev->dev); in imx1_pinctrl_core_probe()
620 pctl_desc->pins = info->pins; in imx1_pinctrl_core_probe()
621 pctl_desc->npins = info->npins; in imx1_pinctrl_core_probe()
632 ipctl->pctl = devm_pinctrl_register(&pdev->dev, pctl_desc, ipctl); in imx1_pinctrl_core_probe()
/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c1074 pctl->pctl_desc.name = dev_name(&pdev->dev); in mtk_pctrl_init()
1075 pctl->pctl_desc.owner = THIS_MODULE; in mtk_pctrl_init()
1076 pctl->pctl_desc.pins = pins; in mtk_pctrl_init()
1077 pctl->pctl_desc.npins = pctl->devdata->npins; in mtk_pctrl_init()
1078 pctl->pctl_desc.confops = &mtk_pconf_ops; in mtk_pctrl_init()
1079 pctl->pctl_desc.pctlops = &mtk_pctrl_ops; in mtk_pctrl_init()
1080 pctl->pctl_desc.pmxops = &mtk_pmx_ops; in mtk_pctrl_init()
1083 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, &pctl->pctl_desc, in mtk_pctrl_init()
Dpinctrl-mtk-common.h262 struct pinctrl_desc pctl_desc; member
/kernel/linux/linux-5.10/drivers/pinctrl/bcm/
Dpinctrl-bcm2835.c88 struct pinctrl_desc pctl_desc; member
844 if (pin >= pc->pctl_desc.npins) { in bcm2835_pctl_dt_node_to_map()
1152 const struct pinctrl_desc *pctl_desc; member
1158 .pctl_desc = &bcm2835_pinctrl_desc,
1164 .pctl_desc = &bcm2711_pinctrl_desc,
1247 pc->pctl_desc = *pdata->pctl_desc; in bcm2835_pinctrl_probe()
1248 pc->pctl_dev = devm_pinctrl_register(dev, &pc->pctl_desc, pc); in bcm2835_pinctrl_probe()
/kernel/linux/linux-5.10/drivers/pinctrl/stm32/
Dpinctrl-stm32.c102 struct pinctrl_desc pctl_desc; member
1512 pctl->pctl_desc.name = dev_name(&pdev->dev); in stm32_pctl_probe()
1513 pctl->pctl_desc.owner = THIS_MODULE; in stm32_pctl_probe()
1514 pctl->pctl_desc.pins = pins; in stm32_pctl_probe()
1515 pctl->pctl_desc.npins = pctl->npins; in stm32_pctl_probe()
1516 pctl->pctl_desc.link_consumers = true; in stm32_pctl_probe()
1517 pctl->pctl_desc.confops = &stm32_pconf_ops; in stm32_pctl_probe()
1518 pctl->pctl_desc.pctlops = &stm32_pctrl_ops; in stm32_pctl_probe()
1519 pctl->pctl_desc.pmxops = &stm32_pmx_ops; in stm32_pctl_probe()
1522 pctl->pctl_dev = devm_pinctrl_register(&pdev->dev, &pctl->pctl_desc, in stm32_pctl_probe()
/kernel/linux/linux-5.10/drivers/pinctrl/sirf/
Dpinctrl-atlas7.c361 struct pinctrl_desc pctl_desc; member
5432 pmx->pctl_desc.name = "pinctrl-atlas7"; in atlas7_pinmux_probe()
5433 pmx->pctl_desc.pins = pmx->pctl_data->pads; in atlas7_pinmux_probe()
5434 pmx->pctl_desc.npins = pmx->pctl_data->pads_cnt; in atlas7_pinmux_probe()
5435 pmx->pctl_desc.pctlops = &atlas7_pinctrl_ops; in atlas7_pinmux_probe()
5436 pmx->pctl_desc.pmxops = &atlas7_pinmux_ops; in atlas7_pinmux_probe()
5437 pmx->pctl_desc.confops = &atlas7_pinconf_ops; in atlas7_pinmux_probe()
5450 pmx->pctl = pinctrl_register(&pmx->pctl_desc, &pdev->dev, pmx); in atlas7_pinmux_probe()
5485 for (idx = 0; idx < pmx->pctl_desc.npins; idx++) { in atlas7_pinmux_suspend_noirq()
5540 for (idx = 0; idx < pmx->pctl_desc.npins; idx++) { in atlas7_pinmux_resume_noirq()