Lines Matching full:functions

30 	struct pinfunction *functions;  member
117 return pctrl->functions[function].name; in berlin_pinmux_get_function_name()
127 *groups = pctrl->functions[function].groups; in berlin_pinmux_get_function_groups()
128 *ngroups = pctrl->functions[function].ngroups; in berlin_pinmux_get_function_groups()
138 struct berlin_desc_function *function = group->functions; in berlin_pinctrl_find_function_by_name()
156 struct pinfunction *func = pctrl->functions + function; in berlin_pinmux_set()
183 struct pinfunction *function = pctrl->functions; in berlin_pinctrl_add_function()
212 /* compute the maximum number of functions a group can have */ in berlin_pinctrl_build_state()
217 pctrl->functions = kcalloc(max_functions, sizeof(*pctrl->functions), GFP_KERNEL); in berlin_pinctrl_build_state()
218 if (!pctrl->functions) in berlin_pinctrl_build_state()
221 /* register all functions */ in berlin_pinctrl_build_state()
224 desc_function = desc_group->functions; in berlin_pinctrl_build_state()
232 pctrl->functions = krealloc(pctrl->functions, in berlin_pinctrl_build_state()
233 pctrl->nfunctions * sizeof(*pctrl->functions), in berlin_pinctrl_build_state()
235 if (!pctrl->functions) in berlin_pinctrl_build_state()
238 /* map functions to theirs groups */ in berlin_pinctrl_build_state()
241 desc_function = desc_group->functions; in berlin_pinctrl_build_state()
244 struct pinfunction *function = pctrl->functions; in berlin_pinctrl_build_state()
257 kfree(pctrl->functions); in berlin_pinctrl_build_state()
268 kfree(pctrl->functions); in berlin_pinctrl_build_state()