Lines Matching refs:funcs

78 	const char	*funcs[NB_FUNCS];  member
102 struct armada_37xx_pmx_func *funcs; member
113 .funcs = {_func1, _func2} \
123 .funcs = {_func1, "gpio"} \
133 .funcs = {_func1, "gpio"} \
143 .funcs = {_f1, _f2, "gpio"} \
156 .funcs = {_f1, _f2} \
230 for (f = 0; (f < NB_FUNCS) && grp->funcs[f]; f++) in armada_37xx_get_func_reg()
231 if (!strcmp(grp->funcs[f], func)) in armada_37xx_get_func_reg()
269 return info->funcs[selector].name; in armada_37xx_pmx_get_func_name()
302 const char *name = info->funcs[func_selector].name; in armada_37xx_pmx_group_set()
316 static int armada_37xx_add_function(struct armada_37xx_pmx_func *funcs, in armada_37xx_add_function() argument
324 while (funcs->ngroups) { in armada_37xx_add_function()
326 if (strcmp(funcs->name, name) == 0) { in armada_37xx_add_function()
327 funcs->ngroups++; in armada_37xx_add_function()
331 funcs++; in armada_37xx_add_function()
336 funcs->name = name; in armada_37xx_add_function()
337 funcs->ngroups = 1; in armada_37xx_add_function()
372 for (f = 0; (f < NB_FUNCS) && grp->funcs[f]; f++) { in armada_37xx_fill_group()
375 ret = armada_37xx_add_function(info->funcs, &funcsize, in armada_37xx_fill_group()
376 grp->funcs[f]); in armada_37xx_fill_group()
404 struct armada_37xx_pmx_func *funcs = info->funcs; in armada_37xx_fill_func() local
408 const char *name = funcs[n].name; in armada_37xx_fill_func()
412 funcs[n].groups = devm_kzalloc(info->dev, funcs[n].ngroups * in armada_37xx_fill_func()
413 sizeof(*(funcs[n].groups)), in armada_37xx_fill_func()
415 if (!funcs[n].groups) in armada_37xx_fill_func()
418 groups = funcs[n].groups; in armada_37xx_fill_func()
424 for (f = 0; (f < NB_FUNCS) && gp->funcs[f]; f++) { in armada_37xx_fill_func()
425 if (strcmp(gp->funcs[f], name) == 0) { in armada_37xx_fill_func()
609 info->funcs = devm_kzalloc(info->dev, pin_data->nr_pins * in armada_37xx_pinctrl_probe()
611 if (!info->funcs) in armada_37xx_pinctrl_probe()