Lines Matching refs:funcs

72 	const char	*funcs[NB_FUNCS];  member
96 struct armada_37xx_pmx_func *funcs; member
107 .funcs = {_func1, _func2} \
117 .funcs = {_func1, "gpio"} \
127 .funcs = {_func1, "gpio"} \
137 .funcs = {_f1, _f2, "gpio"} \
150 .funcs = {_f1, _f2} \
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()
263 return info->funcs[selector].name; in armada_37xx_pmx_get_func_name()
296 const char *name = info->funcs[func_selector].name; in armada_37xx_pmx_group_set()
310 static int armada_37xx_add_function(struct armada_37xx_pmx_func *funcs, in armada_37xx_add_function() argument
318 while (funcs->ngroups) { in armada_37xx_add_function()
320 if (strcmp(funcs->name, name) == 0) { in armada_37xx_add_function()
321 funcs->ngroups++; in armada_37xx_add_function()
325 funcs++; in armada_37xx_add_function()
330 funcs->name = name; in armada_37xx_add_function()
331 funcs->ngroups = 1; in armada_37xx_add_function()
366 for (f = 0; (f < NB_FUNCS) && grp->funcs[f]; f++) { in armada_37xx_fill_group()
369 ret = armada_37xx_add_function(info->funcs, &funcsize, in armada_37xx_fill_group()
370 grp->funcs[f]); in armada_37xx_fill_group()
398 struct armada_37xx_pmx_func *funcs = info->funcs; in armada_37xx_fill_func() local
402 const char *name = funcs[n].name; in armada_37xx_fill_func()
406 funcs[n].groups = devm_kzalloc(info->dev, funcs[n].ngroups * in armada_37xx_fill_func()
407 sizeof(*(funcs[n].groups)), in armada_37xx_fill_func()
409 if (!funcs[n].groups) in armada_37xx_fill_func()
412 groups = funcs[n].groups; in armada_37xx_fill_func()
418 for (f = 0; (f < NB_FUNCS) && gp->funcs[f]; f++) { in armada_37xx_fill_func()
419 if (strcmp(gp->funcs[f], name) == 0) { in armada_37xx_fill_func()
603 info->funcs = devm_kzalloc(info->dev, pin_data->nr_pins * in armada_37xx_pinctrl_probe()
605 if (!info->funcs) in armada_37xx_pinctrl_probe()