Lines Matching refs:function
113 unsigned function) in berlin_pinmux_get_function_name() argument
117 return pctrl->functions[function].name; in berlin_pinmux_get_function_name()
121 unsigned function, in berlin_pinmux_get_function_groups() argument
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() local
140 while (function->name) { in berlin_pinctrl_find_function_by_name()
141 if (!strcmp(function->name, fname)) in berlin_pinctrl_find_function_by_name()
142 return function; in berlin_pinctrl_find_function_by_name()
144 function++; in berlin_pinctrl_find_function_by_name()
151 unsigned function, in berlin_pinmux_set() argument
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() local
185 while (function->name) { in berlin_pinctrl_add_function()
186 if (!strcmp(function->name, name)) { in berlin_pinctrl_add_function()
187 function->ngroups++; in berlin_pinctrl_add_function()
190 function++; in berlin_pinctrl_add_function()
193 function->name = name; in berlin_pinctrl_add_function()
194 function->ngroups = 1; in berlin_pinctrl_add_function()
246 *function = pctrl->functions; in berlin_pinctrl_build_state() local
250 while (function->name) { in berlin_pinctrl_build_state()
251 if (!strcmp(desc_function->name, function->name)) { in berlin_pinctrl_build_state()
255 function++; in berlin_pinctrl_build_state()
263 if (!function->groups) { in berlin_pinctrl_build_state()
264 function->groups = in berlin_pinctrl_build_state()
266 function->ngroups, in berlin_pinctrl_build_state()
270 if (!function->groups) { in berlin_pinctrl_build_state()
276 groups = function->groups; in berlin_pinctrl_build_state()