Lines Matching full:groups

32 	const char **groups;  member
51 struct mvebu_pinctrl_group *groups; member
87 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid()
88 pid < pctl->groups[n].pins[0] + in mvebu_pinctrl_find_group_by_pid()
89 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid()
90 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_pid()
101 if (strcmp(name, pctl->groups[n].name) == 0) in mvebu_pinctrl_find_group_by_name()
102 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_name()
176 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_get()
189 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_set()
208 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_dbg_show()
284 const char * const **groups, in mvebu_pinmux_get_groups() argument
289 *groups = pctl->functions[fid].groups; in mvebu_pinmux_get_groups()
299 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinmux_set()
309 func->name, func->groups[gid]); in mvebu_pinmux_set()
317 func->groups[gid], func->name); in mvebu_pinmux_set()
392 return pctl->groups[gid].name; in mvebu_pinctrl_get_group_name()
400 *pins = pctl->groups[gid].pins; in mvebu_pinctrl_get_group_pins()
401 *num_pins = pctl->groups[gid].npins; in mvebu_pinctrl_get_group_pins()
517 struct mvebu_pinctrl_group *grp = &pctl->groups[n]; in mvebu_pinctrl_build_functions()
526 /* check for unique functions and count groups */ in mvebu_pinctrl_build_functions()
544 struct mvebu_pinctrl_group *grp = &pctl->groups[n]; in mvebu_pinctrl_build_functions()
547 const char **groups; in mvebu_pinctrl_build_functions() local
558 if (!f->groups) { in mvebu_pinctrl_build_functions()
559 f->groups = devm_kcalloc(&pdev->dev, in mvebu_pinctrl_build_functions()
563 if (!f->groups) in mvebu_pinctrl_build_functions()
568 groups = f->groups; in mvebu_pinctrl_build_functions()
569 while (*groups) in mvebu_pinctrl_build_functions()
570 groups++; in mvebu_pinctrl_build_functions()
571 *groups = grp->name; in mvebu_pinctrl_build_functions()
622 * as a range of one-pin groups with generic mvebu register in mvebu_pinctrl_probe()
645 * allocate groups and name buffers for unnamed groups. in mvebu_pinctrl_probe()
647 size = pctl->num_groups * sizeof(*pctl->groups) + noname * 8; in mvebu_pinctrl_probe()
652 pctl->groups = p; in mvebu_pinctrl_probe()
653 noname_buf = p + pctl->num_groups * sizeof(*pctl->groups); in mvebu_pinctrl_probe()
655 /* assign mpp controls to groups */ in mvebu_pinctrl_probe()
662 pctl->groups[gid].gid = gid; in mvebu_pinctrl_probe()
663 pctl->groups[gid].ctrl = ctrl; in mvebu_pinctrl_probe()
664 pctl->groups[gid].data = data; in mvebu_pinctrl_probe()
665 pctl->groups[gid].name = ctrl->name; in mvebu_pinctrl_probe()
666 pctl->groups[gid].pins = ctrl->pins; in mvebu_pinctrl_probe()
667 pctl->groups[gid].npins = ctrl->npins; in mvebu_pinctrl_probe()
670 * We treat unnamed controls as a range of one-pin groups in mvebu_pinctrl_probe()
675 pctl->groups[gid].name = noname_buf; in mvebu_pinctrl_probe()
676 pctl->groups[gid].npins = 1; in mvebu_pinctrl_probe()
682 pctl->groups[gid].gid = gid; in mvebu_pinctrl_probe()
683 pctl->groups[gid].ctrl = ctrl; in mvebu_pinctrl_probe()
684 pctl->groups[gid].data = data; in mvebu_pinctrl_probe()
685 pctl->groups[gid].name = noname_buf; in mvebu_pinctrl_probe()
686 pctl->groups[gid].pins = &ctrl->pins[k]; in mvebu_pinctrl_probe()
687 pctl->groups[gid].npins = 1; in mvebu_pinctrl_probe()
695 /* assign mpp modes to groups */ in mvebu_pinctrl_probe()