Lines Matching refs:grp

219 static int armada_37xx_get_func_reg(struct armada_37xx_pin_group *grp,  in armada_37xx_get_func_reg()  argument
224 for (f = 0; (f < NB_FUNCS) && grp->funcs[f]; f++) in armada_37xx_get_func_reg()
225 if (!strcmp(grp->funcs[f], func)) in armada_37xx_get_func_reg()
268 struct armada_37xx_pin_group *grp) in armada_37xx_pmx_set_by_name() argument
272 unsigned int mask = grp->reg_mask; in armada_37xx_pmx_set_by_name()
276 name, grp->name); in armada_37xx_pmx_set_by_name()
278 func = armada_37xx_get_func_reg(grp, name); in armada_37xx_pmx_set_by_name()
283 val = grp->val[func]; in armada_37xx_pmx_set_by_name()
295 struct armada_37xx_pin_group *grp = &info->groups[group_selector]; in armada_37xx_pmx_group_set() local
298 return armada_37xx_pmx_set_by_name(dev, name, grp); in armada_37xx_pmx_group_set()
351 struct armada_37xx_pin_group *grp = &info->groups[n]; in armada_37xx_fill_group() local
354 grp->pins = devm_kzalloc(info->dev, in armada_37xx_fill_group()
355 (grp->npins + grp->extra_npins) * in armada_37xx_fill_group()
356 sizeof(*grp->pins), GFP_KERNEL); in armada_37xx_fill_group()
357 if (!grp->pins) in armada_37xx_fill_group()
360 for (i = 0; i < grp->npins; i++) in armada_37xx_fill_group()
361 grp->pins[i] = grp->start_pin + i; in armada_37xx_fill_group()
363 for (j = 0; j < grp->extra_npins; j++) in armada_37xx_fill_group()
364 grp->pins[i+j] = grp->extra_pin + j; in armada_37xx_fill_group()
366 for (f = 0; (f < NB_FUNCS) && grp->funcs[f]; f++) { in armada_37xx_fill_group()
370 grp->funcs[f]); in armada_37xx_fill_group()