• Home
  • Raw
  • Download

Lines Matching refs:pctldev

208 static int sprd_pctrl_group_count(struct pinctrl_dev *pctldev)  in sprd_pctrl_group_count()  argument
210 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pctrl_group_count()
216 static const char *sprd_pctrl_group_name(struct pinctrl_dev *pctldev, in sprd_pctrl_group_name() argument
219 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pctrl_group_name()
225 static int sprd_pctrl_group_pins(struct pinctrl_dev *pctldev, in sprd_pctrl_group_pins() argument
230 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pctrl_group_pins()
242 static int sprd_dt_node_to_map(struct pinctrl_dev *pctldev, in sprd_dt_node_to_map() argument
247 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_dt_node_to_map()
282 ret = pinconf_generic_parse_dt_config(np, pctldev, &configs, in sprd_dt_node_to_map()
298 ret = pinctrl_utils_reserve_map(pctldev, map, &reserved_maps, in sprd_dt_node_to_map()
304 ret = pinctrl_utils_add_map_mux(pctldev, map, in sprd_dt_node_to_map()
317 group_or_pin = pin_get_name(pctldev, pin_id); in sprd_dt_node_to_map()
322 ret = pinctrl_utils_add_map_configs(pctldev, map, in sprd_dt_node_to_map()
333 static void sprd_pctrl_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, in sprd_pctrl_dbg_show() argument
336 seq_printf(s, "%s", dev_name(pctldev->dev)); in sprd_pctrl_dbg_show()
348 static int sprd_pmx_get_function_count(struct pinctrl_dev *pctldev) in sprd_pmx_get_function_count() argument
353 static const char *sprd_pmx_get_function_name(struct pinctrl_dev *pctldev, in sprd_pmx_get_function_name() argument
370 static int sprd_pmx_get_function_groups(struct pinctrl_dev *pctldev, in sprd_pmx_get_function_groups() argument
375 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pmx_get_function_groups()
384 static int sprd_pmx_set_mux(struct pinctrl_dev *pctldev, in sprd_pmx_set_mux() argument
388 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pmx_set_mux()
438 static int sprd_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin_id, in sprd_pinconf_get() argument
441 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pinconf_get()
590 static int sprd_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin_id, in sprd_pinconf_set() argument
593 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pinconf_set()
741 static int sprd_pinconf_group_get(struct pinctrl_dev *pctldev, in sprd_pinconf_group_get() argument
744 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pinconf_group_get()
755 return sprd_pinconf_get(pctldev, pin_id, config); in sprd_pinconf_group_get()
758 static int sprd_pinconf_group_set(struct pinctrl_dev *pctldev, in sprd_pinconf_group_set() argument
763 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pinconf_group_set()
776 ret = sprd_pinconf_set(pctldev, pin_id, configs, num_configs); in sprd_pinconf_group_set()
784 static int sprd_pinconf_get_config(struct pinctrl_dev *pctldev, in sprd_pinconf_get_config() argument
788 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pinconf_get_config()
804 static void sprd_pinconf_dbg_show(struct pinctrl_dev *pctldev, in sprd_pinconf_dbg_show() argument
810 ret = sprd_pinconf_get_config(pctldev, pin_id, &config); in sprd_pinconf_dbg_show()
817 static void sprd_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, in sprd_pinconf_group_dbg_show() argument
821 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in sprd_pinconf_group_dbg_show()
837 name = pin_get_name(pctldev, pin_id); in sprd_pinconf_group_dbg_show()
838 ret = sprd_pinconf_get_config(pctldev, pin_id, &config); in sprd_pinconf_group_dbg_show()