Lines Matching refs:groups
35 const char **groups; member
54 struct mvebu_pinctrl_group *groups; member
66 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid()
67 pid < pctl->groups[n].pins[0] + in mvebu_pinctrl_find_group_by_pid()
68 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid()
69 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_pid()
79 if (strcmp(name, pctl->groups[n].name) == 0) in mvebu_pinctrl_find_group_by_name()
80 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_name()
182 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_get()
197 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_set()
212 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_dbg_show()
288 const char * const **groups, in mvebu_pinmux_get_groups() argument
293 *groups = pctl->functions[fid].groups; in mvebu_pinmux_get_groups()
303 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinmux_enable()
312 func->name, func->groups[gid]); in mvebu_pinmux_enable()
319 func->groups[gid], func->name); in mvebu_pinmux_enable()
391 return pctl->groups[gid].name; in mvebu_pinctrl_get_group_name()
399 *pins = pctl->groups[gid].pins; in mvebu_pinctrl_get_group_pins()
400 *num_pins = pctl->groups[gid].npins; in mvebu_pinctrl_get_group_pins()
519 struct mvebu_pinctrl_group *grp = &pctl->groups[n]; in mvebu_pinctrl_build_functions()
546 struct mvebu_pinctrl_group *grp = &pctl->groups[n]; in mvebu_pinctrl_build_functions()
549 const char **groups; in mvebu_pinctrl_build_functions() local
560 if (!f->groups) { in mvebu_pinctrl_build_functions()
561 f->groups = devm_kzalloc(&pdev->dev, in mvebu_pinctrl_build_functions()
564 if (!f->groups) in mvebu_pinctrl_build_functions()
569 groups = f->groups; in mvebu_pinctrl_build_functions()
570 while (*groups) in mvebu_pinctrl_build_functions()
571 groups++; in mvebu_pinctrl_build_functions()
572 *groups = grp->name; in mvebu_pinctrl_build_functions()
663 pctl->groups = devm_kzalloc(&pdev->dev, pctl->num_groups * in mvebu_pinctrl_probe()
665 if (!pctl->groups) { in mvebu_pinctrl_probe()
674 pctl->groups[gid].gid = gid; in mvebu_pinctrl_probe()
675 pctl->groups[gid].ctrl = ctrl; in mvebu_pinctrl_probe()
676 pctl->groups[gid].name = ctrl->name; in mvebu_pinctrl_probe()
677 pctl->groups[gid].pins = ctrl->pins; in mvebu_pinctrl_probe()
678 pctl->groups[gid].npins = ctrl->npins; in mvebu_pinctrl_probe()
682 pctl->groups[gid].npins = 1; in mvebu_pinctrl_probe()
686 pctl->groups[gid].gid = gid; in mvebu_pinctrl_probe()
687 pctl->groups[gid].ctrl = ctrl; in mvebu_pinctrl_probe()
688 pctl->groups[gid].name = &ctrl->name[8*k]; in mvebu_pinctrl_probe()
689 pctl->groups[gid].pins = &ctrl->pins[k]; in mvebu_pinctrl_probe()
690 pctl->groups[gid].npins = 1; in mvebu_pinctrl_probe()