Lines Matching refs:grp

40 	const struct group_desc *grp = NULL;  in imx_pinctrl_find_group_by_name()  local
44 grp = pinctrl_generic_get_group(pctldev, i); in imx_pinctrl_find_group_by_name()
45 if (grp && !strcmp(grp->grp.name, name)) in imx_pinctrl_find_group_by_name()
49 return grp; in imx_pinctrl_find_group_by_name()
64 const struct group_desc *grp; in imx_dt_node_to_map() local
75 grp = imx_pinctrl_find_group_by_name(pctldev, np->name); in imx_dt_node_to_map()
76 if (!grp) { in imx_dt_node_to_map()
82 map_num += grp->grp.npins; in imx_dt_node_to_map()
84 for (i = 0; i < grp->grp.npins; i++) { in imx_dt_node_to_map()
85 pin = &((struct imx_pin *)(grp->data))[i]; in imx_dt_node_to_map()
112 for (i = j = 0; i < grp->grp.npins; i++) { in imx_dt_node_to_map()
113 pin = &((struct imx_pin *)(grp->data))[i]; in imx_dt_node_to_map()
249 struct group_desc *grp; in imx_pmx_set() local
258 grp = pinctrl_generic_get_group(pctldev, group); in imx_pmx_set()
259 if (!grp) in imx_pmx_set()
266 npins = grp->grp.npins; in imx_pmx_set()
269 func->func.name, grp->grp.name); in imx_pmx_set()
277 pin = &((struct imx_pin *)(grp->data))[i]; in imx_pmx_set()
413 struct group_desc *grp; in imx_pinconf_group_dbg_show() local
422 grp = pinctrl_generic_get_group(pctldev, group); in imx_pinconf_group_dbg_show()
423 if (!grp) in imx_pinconf_group_dbg_show()
426 for (i = 0; i < grp->grp.npins; i++) { in imx_pinconf_group_dbg_show()
427 struct imx_pin *pin = &((struct imx_pin *)(grp->data))[i]; in imx_pinconf_group_dbg_show()
508 struct group_desc *grp, in imx_pinctrl_parse_groups() argument
529 grp->grp.name = np->name; in imx_pinctrl_parse_groups()
557 grp->grp.npins = size / pin_size; in imx_pinctrl_parse_groups()
558 grp->data = devm_kcalloc(ipctl->dev, grp->grp.npins, sizeof(*pin), GFP_KERNEL); in imx_pinctrl_parse_groups()
559 if (!grp->data) in imx_pinctrl_parse_groups()
562 pins = devm_kcalloc(ipctl->dev, grp->grp.npins, sizeof(*pins), GFP_KERNEL); in imx_pinctrl_parse_groups()
565 grp->grp.pins = pins; in imx_pinctrl_parse_groups()
567 for (i = 0; i < grp->grp.npins; i++) { in imx_pinctrl_parse_groups()
568 pin = &((struct imx_pin *)(grp->data))[i]; in imx_pinctrl_parse_groups()
584 struct group_desc *grp; in imx_pinctrl_parse_functions() local
613 grp = devm_kzalloc(ipctl->dev, sizeof(*grp), GFP_KERNEL); in imx_pinctrl_parse_functions()
614 if (!grp) in imx_pinctrl_parse_functions()
619 ipctl->group_index++, grp); in imx_pinctrl_parse_functions()
622 imx_pinctrl_parse_groups(child, grp, ipctl, i++); in imx_pinctrl_parse_functions()