Lines Matching refs:pinctrl
591 struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); in adi_get_groups_count() local
593 return pinctrl->soc->ngroups; in adi_get_groups_count()
599 struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); in adi_get_group_name() local
601 return pinctrl->soc->groups[selector].name; in adi_get_group_name()
608 struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); in adi_get_group_pins() local
610 *pins = pinctrl->soc->groups[selector].pins; in adi_get_group_pins()
611 *num_pins = pinctrl->soc->groups[selector].num; in adi_get_group_pins()
624 struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); in adi_pinmux_set() local
630 mux = (unsigned short *)pinctrl->soc->groups[group_id].mux; in adi_pinmux_set()
656 struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); in adi_pinmux_get_funcs_count() local
658 return pinctrl->soc->nfunctions; in adi_pinmux_get_funcs_count()
664 struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); in adi_pinmux_get_func_name() local
666 return pinctrl->soc->functions[selector].name; in adi_pinmux_get_func_name()
673 struct adi_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev); in adi_pinmux_get_groups() local
675 *groups = pinctrl->soc->functions[selector].groups; in adi_pinmux_get_groups()
676 *num_groups = pinctrl->soc->functions[selector].num_groups; in adi_pinmux_get_groups()
1047 struct adi_pinctrl *pinctrl; in adi_pinctrl_probe() local
1049 pinctrl = devm_kzalloc(&pdev->dev, sizeof(*pinctrl), GFP_KERNEL); in adi_pinctrl_probe()
1050 if (!pinctrl) in adi_pinctrl_probe()
1053 pinctrl->dev = &pdev->dev; in adi_pinctrl_probe()
1055 adi_pinctrl_soc_init(&pinctrl->soc); in adi_pinctrl_probe()
1057 adi_pinmux_desc.pins = pinctrl->soc->pins; in adi_pinctrl_probe()
1058 adi_pinmux_desc.npins = pinctrl->soc->npins; in adi_pinctrl_probe()
1061 pinctrl->pctl = devm_pinctrl_register(&pdev->dev, &adi_pinmux_desc, in adi_pinctrl_probe()
1062 pinctrl); in adi_pinctrl_probe()
1063 if (IS_ERR(pinctrl->pctl)) { in adi_pinctrl_probe()
1065 return PTR_ERR(pinctrl->pctl); in adi_pinctrl_probe()
1068 platform_set_drvdata(pdev, pinctrl); in adi_pinctrl_probe()