Lines Matching refs:pctldev

134 static int tng_get_groups_count(struct pinctrl_dev *pctldev)  in tng_get_groups_count()  argument
136 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_get_groups_count()
141 static const char *tng_get_group_name(struct pinctrl_dev *pctldev, in tng_get_group_name() argument
144 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_get_group_name()
149 static int tng_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group, in tng_get_group_pins() argument
152 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_get_group_pins()
159 static void tng_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in tng_pin_dbg_show() argument
162 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_pin_dbg_show()
188 static int tng_get_functions_count(struct pinctrl_dev *pctldev) in tng_get_functions_count() argument
190 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_get_functions_count()
195 static const char *tng_get_function_name(struct pinctrl_dev *pctldev, in tng_get_function_name() argument
198 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_get_function_name()
203 static int tng_get_function_groups(struct pinctrl_dev *pctldev, in tng_get_function_groups() argument
208 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_get_function_groups()
215 static int tng_pinmux_set_mux(struct pinctrl_dev *pctldev, in tng_pinmux_set_mux() argument
219 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_pinmux_set_mux()
244 static int tng_gpio_request_enable(struct pinctrl_dev *pctldev, in tng_gpio_request_enable() argument
248 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_gpio_request_enable()
271 static int tng_config_get(struct pinctrl_dev *pctldev, unsigned int pin, in tng_config_get() argument
274 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_config_get()
442 static int tng_config_set(struct pinctrl_dev *pctldev, unsigned int pin, in tng_config_set() argument
445 struct tng_pinctrl *tp = pinctrl_dev_get_drvdata(pctldev); in tng_config_set()
473 static int tng_config_group_get(struct pinctrl_dev *pctldev, in tng_config_group_get() argument
480 ret = tng_get_group_pins(pctldev, group, &pins, &npins); in tng_config_group_get()
484 return tng_config_get(pctldev, pins[0], config); in tng_config_group_get()
487 static int tng_config_group_set(struct pinctrl_dev *pctldev, in tng_config_group_set() argument
495 ret = tng_get_group_pins(pctldev, group, &pins, &npins); in tng_config_group_set()
500 ret = tng_config_set(pctldev, pins[i], configs, num_configs); in tng_config_group_set()
566 tp->pctldev = devm_pinctrl_register(dev, &tp->pctldesc, tp); in tng_pinctrl_probe()
567 if (IS_ERR(tp->pctldev)) in tng_pinctrl_probe()
568 return dev_err_probe(dev, PTR_ERR(tp->pctldev), in tng_pinctrl_probe()