Lines Matching full:functions
75 for (df = pin->functions; df->name; df++) in pxa_desc_by_func_group()
112 struct pinfunction *pf = pctl->functions + function; in pxa2xx_pmx_get_func_name()
130 struct pinfunction *pf = pctl->functions + function; in pxa2xx_pmx_get_func_groups()
150 df = pxa_desc_by_func_group(pctl, g->name, (pctl->functions + function)->name); in pxa2xx_pmx_set_mux()
252 const struct pinfunction *functions) in pxa2xx_find_function() argument
256 for (func = functions; func->name; func++) in pxa2xx_find_function()
265 struct pinfunction *functions; in pxa2xx_build_functions() local
270 * Each pin can have at most 6 alternate functions, and 2 gpio functions in pxa2xx_build_functions()
273 * of functions. in pxa2xx_build_functions()
275 functions = devm_kcalloc(pctl->dev, pctl->npins * 6, in pxa2xx_build_functions()
276 sizeof(*functions), GFP_KERNEL); in pxa2xx_build_functions()
277 if (!functions) in pxa2xx_build_functions()
281 for (df = pctl->ppins[i].functions; df->name; df++) in pxa2xx_build_functions()
282 if (!pxa2xx_find_function(pctl, df->name, functions)) in pxa2xx_build_functions()
283 (functions + pctl->nfuncs++)->name = df->name; in pxa2xx_build_functions()
284 pctl->functions = devm_kmemdup(pctl->dev, functions, in pxa2xx_build_functions()
285 pctl->nfuncs * sizeof(*functions), in pxa2xx_build_functions()
287 if (!pctl->functions) in pxa2xx_build_functions()
290 devm_kfree(pctl->dev, functions); in pxa2xx_build_functions()
309 for (df = pctl->ppins[j].functions; df->name; in pxa2xx_build_groups()
311 if (!strcmp(pctl->functions[i].name, in pxa2xx_build_groups()
315 func = pctl->functions + i; in pxa2xx_build_groups()