Lines Matching refs:grp
237 const struct at91_pin_group *grp = NULL; in at91_pinctrl_find_group_by_name() local
244 grp = &info->groups[i]; in at91_pinctrl_find_group_by_name()
245 dev_dbg(info->dev, "%s: %d 0:%d\n", name, grp->npins, grp->pins[0]); in at91_pinctrl_find_group_by_name()
249 return grp; in at91_pinctrl_find_group_by_name()
293 const struct at91_pin_group *grp; in at91_dt_node_to_map() local
303 grp = at91_pinctrl_find_group_by_name(info, np->name); in at91_dt_node_to_map()
304 if (!grp) { in at91_dt_node_to_map()
310 map_num += grp->npins; in at91_dt_node_to_map()
332 for (i = 0; i < grp->npins; i++) { in at91_dt_node_to_map()
335 pin_get_name(pctldev, grp->pins[i]); in at91_dt_node_to_map()
336 new_map[i].data.configs.configs = &grp->pins_conf[i].conf; in at91_dt_node_to_map()
1195 struct at91_pin_group *grp, in at91_pinctrl_parse_groups() argument
1206 grp->name = np->name; in at91_pinctrl_parse_groups()
1220 grp->npins = size / 4; in at91_pinctrl_parse_groups()
1221 pin = grp->pins_conf = devm_kcalloc(info->dev, in at91_pinctrl_parse_groups()
1222 grp->npins, in at91_pinctrl_parse_groups()
1225 grp->pins = devm_kcalloc(info->dev, grp->npins, sizeof(unsigned int), in at91_pinctrl_parse_groups()
1227 if (!grp->pins_conf || !grp->pins) in at91_pinctrl_parse_groups()
1233 grp->pins[j] = pin->bank * MAX_NB_GPIO_PER_BANK + pin->pin; in at91_pinctrl_parse_groups()
1249 struct at91_pin_group *grp; in at91_pinctrl_parse_functions() local
1272 grp = &info->groups[grp_index++]; in at91_pinctrl_parse_functions()
1273 ret = at91_pinctrl_parse_groups(child, grp, info, i++); in at91_pinctrl_parse_functions()