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()
465 struct rzn1_pin_group *grp = &ipctl->groups[group]; in rzn1_set_mux() local
466 unsigned int i, grp_pins = grp->npins; in rzn1_set_mux()
469 ipctl->functions[selector].name, selector, grp->name, group); in rzn1_set_mux()
473 rzn1_set_hw_pin_func(ipctl, grp->pins[i], grp->pin_ids[i], 0); in rzn1_set_mux()
625 struct rzn1_pin_group *grp = &ipctl->groups[selector]; in rzn1_pinconf_group_get() local
629 dev_dbg(ipctl->dev, "group get %s selector:%u\n", grp->name, selector); in rzn1_pinconf_group_get()
631 for (i = 0; i < grp->npins; i++) { in rzn1_pinconf_group_get()
632 if (rzn1_pinconf_get(pctldev, grp->pins[i], config)) in rzn1_pinconf_group_get()
651 struct rzn1_pin_group *grp = &ipctl->groups[selector]; in rzn1_pinconf_group_set() local
656 grp->name, selector, configs, num_configs); in rzn1_pinconf_group_set()
658 for (i = 0; i < grp->npins; i++) { in rzn1_pinconf_group_set()
659 unsigned int pin = grp->pins[i]; in rzn1_pinconf_group_set()
686 struct rzn1_pin_group *grp, in rzn1_pinctrl_parse_groups() argument
696 grp->name = np->name; in rzn1_pinctrl_parse_groups()
718 grp->npins = size / sizeof(list[0]); in rzn1_pinctrl_parse_groups()
719 grp->pin_ids = devm_kmalloc_array(ipctl->dev, in rzn1_pinctrl_parse_groups()
720 grp->npins, sizeof(grp->pin_ids[0]), in rzn1_pinctrl_parse_groups()
722 grp->pins = devm_kmalloc_array(ipctl->dev, in rzn1_pinctrl_parse_groups()
723 grp->npins, sizeof(grp->pins[0]), in rzn1_pinctrl_parse_groups()
725 if (!grp->pin_ids || !grp->pins) in rzn1_pinctrl_parse_groups()
728 for (i = 0; i < grp->npins; i++) { in rzn1_pinctrl_parse_groups()
731 grp->pins[i] = pin_id & 0xff; in rzn1_pinctrl_parse_groups()
732 grp->pin_ids[i] = (pin_id >> 8) & 0x7f; in rzn1_pinctrl_parse_groups()
735 return grp->npins; in rzn1_pinctrl_parse_groups()
758 struct rzn1_pin_group *grp; in rzn1_pinctrl_parse_functions() local
782 grp = &ipctl->groups[ipctl->ngroups]; in rzn1_pinctrl_parse_functions()
783 grp->func = func->name; in rzn1_pinctrl_parse_functions()
784 ret = rzn1_pinctrl_parse_groups(np, grp, ipctl); in rzn1_pinctrl_parse_functions()
793 grp = &ipctl->groups[ipctl->ngroups]; in rzn1_pinctrl_parse_functions()
794 grp->func = func->name; in rzn1_pinctrl_parse_functions()
795 ret = rzn1_pinctrl_parse_groups(child, grp, ipctl); in rzn1_pinctrl_parse_functions()