Lines Matching refs:groups

38 	struct mtmips_pmx_group *groups;  member
71 *pins = p->groups[group].func[0].pins; in mtmips_get_group_pins()
72 *num_pins = p->groups[group].func[0].pin_count; in mtmips_get_group_pins()
102 const char * const **groups, in mtmips_pmx_group_get_groups() argument
108 *groups = &p->group_names[p->func[func]->groups[0]]; in mtmips_pmx_group_get_groups()
110 *groups = p->group_names; in mtmips_pmx_group_get_groups()
127 if (p->groups[group].enabled) { in mtmips_pmx_group_enable()
129 p->groups[group].name); in mtmips_pmx_group_enable()
133 p->groups[group].enabled = 1; in mtmips_pmx_group_enable()
136 shift = p->groups[group].shift; in mtmips_pmx_group_enable()
142 mode &= ~(p->groups[group].mask << shift); in mtmips_pmx_group_enable()
145 for (i = 0; i < p->groups[group].func[0].pin_count; i++) in mtmips_pmx_group_enable()
146 p->gpio[p->groups[group].func[0].pins[i]] = 1; in mtmips_pmx_group_enable()
150 mode |= p->groups[group].gpio << shift; in mtmips_pmx_group_enable()
196 struct mtmips_pmx_group *mux = p->groups; in mtmips_pinctrl_index()
212 p->group_names[i] = p->groups[i].name; in mtmips_pinctrl_index()
213 p->func_count += p->groups[i].func_count; in mtmips_pinctrl_index()
222 gpio_func.groups = devm_kcalloc(p->dev, p->group_count, sizeof(int), in mtmips_pinctrl_index()
224 if (!p->func || !gpio_func.groups) in mtmips_pinctrl_index()
230 gpio_func.groups[i] = i; in mtmips_pinctrl_index()
237 for (j = 0; j < p->groups[i].func_count; j++) { in mtmips_pinctrl_index()
238 p->func[c] = &p->groups[i].func[j]; in mtmips_pinctrl_index()
239 p->func[c]->groups = devm_kzalloc(p->dev, sizeof(int), in mtmips_pinctrl_index()
241 if (!p->func[c]->groups) in mtmips_pinctrl_index()
243 p->func[c]->groups[0] = i; in mtmips_pinctrl_index()
333 p->groups = data; in mtmips_pinctrl_init()