Lines Matching refs:grp
820 const struct st_pctl_group *grp; in st_pctl_dt_node_to_map() local
826 grp = st_pctl_find_group_by_name(info, np->name); in st_pctl_dt_node_to_map()
827 if (!grp) { in st_pctl_dt_node_to_map()
832 map_num = grp->npins + 1; in st_pctl_dt_node_to_map()
852 for (i = 0; i < grp->npins; i++) { in st_pctl_dt_node_to_map()
855 pin_get_name(pctldev, grp->pins[i]); in st_pctl_dt_node_to_map()
856 new_map[i].data.configs.configs = &grp->pin_conf[i].config; in st_pctl_dt_node_to_map()
860 (*map)->data.mux.function, grp->name, map_num); in st_pctl_dt_node_to_map()
1199 struct st_pctl_group *grp, struct st_pinctrl *info, int idx) in st_pctl_dt_parse_groups() argument
1229 grp->npins = npins; in st_pctl_dt_parse_groups()
1230 grp->name = np->name; in st_pctl_dt_parse_groups()
1231 grp->pins = devm_kcalloc(dev, npins, sizeof(*grp->pins), GFP_KERNEL); in st_pctl_dt_parse_groups()
1232 grp->pin_conf = devm_kcalloc(dev, npins, sizeof(*grp->pin_conf), GFP_KERNEL); in st_pctl_dt_parse_groups()
1234 if (!grp->pins || !grp->pin_conf) { in st_pctl_dt_parse_groups()
1245 conf = &grp->pin_conf[i]; in st_pctl_dt_parse_groups()
1252 grp->pins[i] = conf->pin; in st_pctl_dt_parse_groups()
1283 struct st_pctl_group *grp; in st_pctl_parse_functions() local
1298 grp = &info->groups[*grp_index]; in st_pctl_parse_functions()
1300 ret = st_pctl_dt_parse_groups(child, grp, info, i++); in st_pctl_parse_functions()