Lines Matching refs:grp
197 const struct sprd_pin_group *grp = NULL; in sprd_pinctrl_find_group_by_name() local
202 grp = &info->groups[i]; in sprd_pinctrl_find_group_by_name()
207 return grp; in sprd_pinctrl_find_group_by_name()
250 const struct sprd_pin_group *grp; in sprd_dt_node_to_map() local
259 grp = sprd_pinctrl_find_group_by_name(pctl, np->name); in sprd_dt_node_to_map()
260 if (!grp) { in sprd_dt_node_to_map()
308 grp->name, function); in sprd_dt_node_to_map()
318 pin_id = grp->pins[0]; in sprd_dt_node_to_map()
321 group_or_pin = grp->name; in sprd_dt_node_to_map()
392 struct sprd_pin_group *grp = &info->groups[group_selector]; in sprd_pmx_set_mux() local
393 unsigned int i, grp_pins = grp->npins; in sprd_pmx_set_mux()
418 unsigned int pin_id = grp->pins[i]; in sprd_pmx_set_mux()
748 struct sprd_pin_group *grp; in sprd_pinconf_group_get() local
754 grp = &info->groups[selector]; in sprd_pinconf_group_get()
755 pin_id = grp->pins[0]; in sprd_pinconf_group_get()
767 struct sprd_pin_group *grp; in sprd_pinconf_group_set() local
773 grp = &info->groups[selector]; in sprd_pinconf_group_set()
775 for (i = 0; i < grp->npins; i++) { in sprd_pinconf_group_set()
776 unsigned int pin_id = grp->pins[i]; in sprd_pinconf_group_set()
825 struct sprd_pin_group *grp; in sprd_pinconf_group_dbg_show() local
833 grp = &info->groups[selector]; in sprd_pinconf_group_dbg_show()
836 for (i = 0; i < grp->npins; i++, config++) { in sprd_pinconf_group_dbg_show()
837 unsigned int pin_id = grp->pins[i]; in sprd_pinconf_group_dbg_show()
884 struct sprd_pin_group *grp) in sprd_pinctrl_parse_groups() argument
894 grp->name = np->name; in sprd_pinctrl_parse_groups()
895 grp->npins = ret; in sprd_pinctrl_parse_groups()
896 grp->pins = devm_kcalloc(sprd_pctl->dev, in sprd_pinctrl_parse_groups()
897 grp->npins, sizeof(unsigned int), in sprd_pinctrl_parse_groups()
899 if (!grp->pins) in sprd_pinctrl_parse_groups()
905 grp->pins[i++] = ret; in sprd_pinctrl_parse_groups()
908 for (i = 0; i < grp->npins; i++) { in sprd_pinctrl_parse_groups()
911 grp->name, grp->npins, grp->pins[i]); in sprd_pinctrl_parse_groups()
938 struct sprd_pin_group *grp; in sprd_pinctrl_parse_dt() local
963 grp = info->groups; in sprd_pinctrl_parse_dt()
966 ret = sprd_pinctrl_parse_groups(child, sprd_pctl, grp); in sprd_pinctrl_parse_dt()
972 *temp++ = grp->name; in sprd_pinctrl_parse_dt()
973 grp++; in sprd_pinctrl_parse_dt()
978 sprd_pctl, grp); in sprd_pinctrl_parse_dt()
985 *temp++ = grp->name; in sprd_pinctrl_parse_dt()
986 grp++; in sprd_pinctrl_parse_dt()