Lines Matching refs:pctldev
427 struct pinctrl_dev *pctldev; member
511 static int mrfld_get_groups_count(struct pinctrl_dev *pctldev) in mrfld_get_groups_count() argument
513 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_groups_count()
518 static const char *mrfld_get_group_name(struct pinctrl_dev *pctldev, in mrfld_get_group_name() argument
521 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_group_name()
526 static int mrfld_get_group_pins(struct pinctrl_dev *pctldev, unsigned int group, in mrfld_get_group_pins() argument
529 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_group_pins()
536 static void mrfld_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in mrfld_pin_dbg_show() argument
539 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_pin_dbg_show()
565 static int mrfld_get_functions_count(struct pinctrl_dev *pctldev) in mrfld_get_functions_count() argument
567 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_functions_count()
572 static const char *mrfld_get_function_name(struct pinctrl_dev *pctldev, in mrfld_get_function_name() argument
575 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_function_name()
580 static int mrfld_get_function_groups(struct pinctrl_dev *pctldev, in mrfld_get_function_groups() argument
585 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_get_function_groups()
592 static int mrfld_pinmux_set_mux(struct pinctrl_dev *pctldev, in mrfld_pinmux_set_mux() argument
596 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_pinmux_set_mux()
621 static int mrfld_gpio_request_enable(struct pinctrl_dev *pctldev, in mrfld_gpio_request_enable() argument
625 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_gpio_request_enable()
648 static int mrfld_config_get(struct pinctrl_dev *pctldev, unsigned int pin, in mrfld_config_get() argument
651 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_config_get()
812 static int mrfld_config_set(struct pinctrl_dev *pctldev, unsigned int pin, in mrfld_config_set() argument
815 struct mrfld_pinctrl *mp = pinctrl_dev_get_drvdata(pctldev); in mrfld_config_set()
842 static int mrfld_config_group_get(struct pinctrl_dev *pctldev, in mrfld_config_group_get() argument
849 ret = mrfld_get_group_pins(pctldev, group, &pins, &npins); in mrfld_config_group_get()
853 ret = mrfld_config_get(pctldev, pins[0], config); in mrfld_config_group_get()
860 static int mrfld_config_group_set(struct pinctrl_dev *pctldev, in mrfld_config_group_set() argument
868 ret = mrfld_get_group_pins(pctldev, group, &pins, &npins); in mrfld_config_group_set()
873 ret = mrfld_config_set(pctldev, pins[i], configs, num_configs); in mrfld_config_group_set()
944 mp->pctldev = devm_pinctrl_register(&pdev->dev, &mp->pctldesc, mp); in mrfld_pinctrl_probe()
945 if (IS_ERR(mp->pctldev)) { in mrfld_pinctrl_probe()
947 return PTR_ERR(mp->pctldev); in mrfld_pinctrl_probe()