Lines Matching refs:pctldev
93 static int zynqmp_pctrl_get_groups_count(struct pinctrl_dev *pctldev) in zynqmp_pctrl_get_groups_count() argument
95 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_groups_count()
100 static const char *zynqmp_pctrl_get_group_name(struct pinctrl_dev *pctldev, in zynqmp_pctrl_get_group_name() argument
103 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_group_name()
108 static int zynqmp_pctrl_get_group_pins(struct pinctrl_dev *pctldev, in zynqmp_pctrl_get_group_pins() argument
113 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pctrl_get_group_pins()
129 static int zynqmp_pinmux_request_pin(struct pinctrl_dev *pctldev, in zynqmp_pinmux_request_pin() argument
136 dev_err(pctldev->dev, "request failed for pin %u\n", pin); in zynqmp_pinmux_request_pin()
143 static int zynqmp_pmux_get_functions_count(struct pinctrl_dev *pctldev) in zynqmp_pmux_get_functions_count() argument
145 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pmux_get_functions_count()
150 static const char *zynqmp_pmux_get_function_name(struct pinctrl_dev *pctldev, in zynqmp_pmux_get_function_name() argument
153 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pmux_get_function_name()
167 static int zynqmp_pmux_get_function_groups(struct pinctrl_dev *pctldev, in zynqmp_pmux_get_function_groups() argument
172 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pmux_get_function_groups()
191 static int zynqmp_pinmux_set_mux(struct pinctrl_dev *pctldev, in zynqmp_pinmux_set_mux() argument
195 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pinmux_set_mux()
204 dev_err(pctldev->dev, "set mux failed for pin %u\n", in zynqmp_pinmux_set_mux()
213 static int zynqmp_pinmux_release_pin(struct pinctrl_dev *pctldev, in zynqmp_pinmux_release_pin() argument
220 dev_err(pctldev->dev, "free pin failed for pin %u\n", in zynqmp_pinmux_release_pin()
248 static int zynqmp_pinconf_cfg_get(struct pinctrl_dev *pctldev, in zynqmp_pinconf_cfg_get() argument
310 dev_warn(pctldev->dev, in zynqmp_pinconf_cfg_get()
342 static int zynqmp_pinconf_cfg_set(struct pinctrl_dev *pctldev, in zynqmp_pinconf_cfg_set() argument
393 dev_warn(pctldev->dev, in zynqmp_pinconf_cfg_set()
407 dev_warn(pctldev->dev, in zynqmp_pinconf_cfg_set()
422 dev_warn(pctldev->dev, in zynqmp_pinconf_cfg_set()
432 dev_warn(pctldev->dev, in zynqmp_pinconf_cfg_set()
451 static int zynqmp_pinconf_group_set(struct pinctrl_dev *pctldev, in zynqmp_pinconf_group_set() argument
457 struct zynqmp_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in zynqmp_pinconf_group_set()
461 ret = zynqmp_pinconf_cfg_set(pctldev, pgrp->pins[i], configs, in zynqmp_pinconf_group_set()