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->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->num_pins; in imx_dt_node_to_map()
84 for (i = 0; i < grp->num_pins; 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->num_pins; 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->num_pins; in imx_pmx_set()
269 func->name, 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->num_pins; 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
528 grp->name = np->name; in imx_pinctrl_parse_groups()
556 grp->num_pins = size / pin_size; in imx_pinctrl_parse_groups()
557 grp->data = devm_kcalloc(ipctl->dev, in imx_pinctrl_parse_groups()
558 grp->num_pins, sizeof(struct imx_pin), in imx_pinctrl_parse_groups()
560 grp->pins = devm_kcalloc(ipctl->dev, in imx_pinctrl_parse_groups()
561 grp->num_pins, sizeof(unsigned int), in imx_pinctrl_parse_groups()
563 if (!grp->pins || !grp->data) in imx_pinctrl_parse_groups()
566 for (i = 0; i < grp->num_pins; i++) { in imx_pinctrl_parse_groups()
567 pin = &((struct imx_pin *)(grp->data))[i]; in imx_pinctrl_parse_groups()
569 info->imx_pinctrl_parse_pin(ipctl, &grp->pins[i], in imx_pinctrl_parse_groups()
572 imx_pinctrl_parse_pin_mmio(ipctl, &grp->pins[i], in imx_pinctrl_parse_groups()
586 struct group_desc *grp; in imx_pinctrl_parse_functions() local
615 grp = devm_kzalloc(ipctl->dev, sizeof(struct group_desc), in imx_pinctrl_parse_functions()
617 if (!grp) { in imx_pinctrl_parse_functions()
624 ipctl->group_index++, grp); in imx_pinctrl_parse_functions()
627 imx_pinctrl_parse_groups(child, grp, ipctl, i++); in imx_pinctrl_parse_functions()