Lines Matching refs:grp

161 	const struct imx1_pin_group *grp = NULL;  in imx1_pinctrl_find_group_by_name()  local
166 grp = &info->groups[i]; in imx1_pinctrl_find_group_by_name()
171 return grp; in imx1_pinctrl_find_group_by_name()
227 const struct imx1_pin_group *grp; in imx1_dt_node_to_map() local
237 grp = imx1_pinctrl_find_group_by_name(info, np->name); in imx1_dt_node_to_map()
238 if (!grp) { in imx1_dt_node_to_map()
244 for (i = 0; i < grp->npins; i++) in imx1_dt_node_to_map()
268 for (i = j = 0; i < grp->npins; i++) { in imx1_dt_node_to_map()
271 pin_get_name(pctldev, grp->pins[i].pin_id); in imx1_dt_node_to_map()
272 new_map[j].data.configs.configs = &grp->pins[i].config; in imx1_dt_node_to_map()
429 struct imx1_pin_group *grp; in imx1_pinconf_group_dbg_show() local
438 grp = &info->groups[group]; in imx1_pinconf_group_dbg_show()
439 for (i = 0; i < grp->npins; i++) { in imx1_pinconf_group_dbg_show()
440 name = pin_get_name(pctldev, grp->pins[i].pin_id); in imx1_pinconf_group_dbg_show()
441 ret = imx1_pinconf_get(pctldev, grp->pins[i].pin_id, &config); in imx1_pinconf_group_dbg_show()
463 struct imx1_pin_group *grp, in imx1_pinctrl_parse_groups() argument
474 grp->name = np->name; in imx1_pinctrl_parse_groups()
487 grp->npins = size / 12; in imx1_pinctrl_parse_groups()
488 grp->pins = devm_kcalloc(info->dev, in imx1_pinctrl_parse_groups()
489 grp->npins, sizeof(struct imx1_pin), GFP_KERNEL); in imx1_pinctrl_parse_groups()
490 grp->pin_ids = devm_kcalloc(info->dev, in imx1_pinctrl_parse_groups()
491 grp->npins, sizeof(unsigned int), GFP_KERNEL); in imx1_pinctrl_parse_groups()
493 if (!grp->pins || !grp->pin_ids) in imx1_pinctrl_parse_groups()
496 for (i = 0; i < grp->npins; i++) { in imx1_pinctrl_parse_groups()
497 grp->pins[i].pin_id = be32_to_cpu(*list++); in imx1_pinctrl_parse_groups()
498 grp->pins[i].mux_id = be32_to_cpu(*list++); in imx1_pinctrl_parse_groups()
499 grp->pins[i].config = be32_to_cpu(*list++); in imx1_pinctrl_parse_groups()
501 grp->pin_ids[i] = grp->pins[i].pin_id; in imx1_pinctrl_parse_groups()
513 struct imx1_pin_group *grp; in imx1_pinctrl_parse_functions() local
536 grp = &info->groups[grp_index++]; in imx1_pinctrl_parse_functions()
537 ret = imx1_pinctrl_parse_groups(child, grp, info, i++); in imx1_pinctrl_parse_functions()