Lines Matching refs:group
54 unsigned int group) in mtmips_get_group_name() argument
58 return (group >= p->group_count) ? NULL : p->group_names[group]; in mtmips_get_group_name()
62 unsigned int group, in mtmips_get_group_pins() argument
68 if (group >= p->group_count) in mtmips_get_group_pins()
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()
118 unsigned int func, unsigned int group) in mtmips_pmx_group_enable() argument
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()