Lines Matching full:functions
30 struct berlin_pinctrl_function *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 *num_groups = 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 berlin_pinctrl_function *func = pctrl->functions + function; in berlin_pinmux_set()
183 struct berlin_pinctrl_function *function = pctrl->functions; in berlin_pinctrl_add_function()
212 /* compute the maxiumum number of functions a group can have */ in berlin_pinctrl_build_state()
217 pctrl->functions = kcalloc(max_functions, in berlin_pinctrl_build_state()
218 sizeof(*pctrl->functions), GFP_KERNEL); in berlin_pinctrl_build_state()
219 if (!pctrl->functions) in berlin_pinctrl_build_state()
222 /* register all functions */ in berlin_pinctrl_build_state()
225 desc_function = desc_group->functions; in berlin_pinctrl_build_state()
233 pctrl->functions = krealloc(pctrl->functions, in berlin_pinctrl_build_state()
234 pctrl->nfunctions * sizeof(*pctrl->functions), in berlin_pinctrl_build_state()
237 /* map functions to theirs groups */ in berlin_pinctrl_build_state()
240 desc_function = desc_group->functions; in berlin_pinctrl_build_state()
244 *function = pctrl->functions; in berlin_pinctrl_build_state()
257 kfree(pctrl->functions); in berlin_pinctrl_build_state()
269 kfree(pctrl->functions); in berlin_pinctrl_build_state()