Lines Matching refs:grp

343 	const struct rzn1_pin_group *grp;  in rzn1_dt_node_to_map_one()  local
352 grp = rzn1_pinctrl_find_group_by_name(ipctl, np->name); in rzn1_dt_node_to_map_one()
353 if (!grp) { in rzn1_dt_node_to_map_one()
379 grp->name, grp->func); in rzn1_dt_node_to_map_one()
386 &reserved_maps, num_maps, grp->name, in rzn1_dt_node_to_map_one()
394 grp->func, grp->name, grp->npins); in rzn1_dt_node_to_map_one()
468 struct rzn1_pin_group *grp = &ipctl->groups[group]; in rzn1_set_mux() local
469 unsigned int i, grp_pins = grp->npins; in rzn1_set_mux()
472 ipctl->functions[selector].name, selector, grp->name, group); in rzn1_set_mux()
476 rzn1_set_hw_pin_func(ipctl, grp->pins[i], grp->pin_ids[i], 0); in rzn1_set_mux()
628 struct rzn1_pin_group *grp = &ipctl->groups[selector]; in rzn1_pinconf_group_get() local
632 dev_dbg(ipctl->dev, "group get %s selector:%u\n", grp->name, selector); in rzn1_pinconf_group_get()
634 for (i = 0; i < grp->npins; i++) { in rzn1_pinconf_group_get()
635 if (rzn1_pinconf_get(pctldev, grp->pins[i], config)) in rzn1_pinconf_group_get()
654 struct rzn1_pin_group *grp = &ipctl->groups[selector]; in rzn1_pinconf_group_set() local
659 grp->name, selector, configs, num_configs); in rzn1_pinconf_group_set()
661 for (i = 0; i < grp->npins; i++) { in rzn1_pinconf_group_set()
662 unsigned int pin = grp->pins[i]; in rzn1_pinconf_group_set()
689 struct rzn1_pin_group *grp, in rzn1_pinctrl_parse_groups() argument
699 grp->name = np->name; in rzn1_pinctrl_parse_groups()
721 grp->npins = size / sizeof(list[0]); in rzn1_pinctrl_parse_groups()
722 grp->pin_ids = devm_kmalloc_array(ipctl->dev, in rzn1_pinctrl_parse_groups()
723 grp->npins, sizeof(grp->pin_ids[0]), in rzn1_pinctrl_parse_groups()
725 grp->pins = devm_kmalloc_array(ipctl->dev, in rzn1_pinctrl_parse_groups()
726 grp->npins, sizeof(grp->pins[0]), in rzn1_pinctrl_parse_groups()
728 if (!grp->pin_ids || !grp->pins) in rzn1_pinctrl_parse_groups()
731 for (i = 0; i < grp->npins; i++) { in rzn1_pinctrl_parse_groups()
734 grp->pins[i] = pin_id & 0xff; in rzn1_pinctrl_parse_groups()
735 grp->pin_ids[i] = (pin_id >> 8) & 0x7f; in rzn1_pinctrl_parse_groups()
738 return grp->npins; in rzn1_pinctrl_parse_groups()
762 struct rzn1_pin_group *grp; in rzn1_pinctrl_parse_functions() local
787 grp = &ipctl->groups[ipctl->ngroups]; in rzn1_pinctrl_parse_functions()
788 grp->func = func->name; in rzn1_pinctrl_parse_functions()
789 ret = rzn1_pinctrl_parse_groups(np, grp, ipctl); in rzn1_pinctrl_parse_functions()
798 grp = &ipctl->groups[ipctl->ngroups]; in rzn1_pinctrl_parse_functions()
799 grp->func = func->name; in rzn1_pinctrl_parse_functions()
800 ret = rzn1_pinctrl_parse_groups(child, grp, ipctl); in rzn1_pinctrl_parse_functions()