Lines Matching refs:machdata
59 if (!pmx->machdata->pmx_modes || !pmx->machdata->npmx_modes) in set_mode()
62 for (i = 0; i < pmx->machdata->npmx_modes; i++) { in set_mode()
63 if (pmx->machdata->pmx_modes[i]->mode == (1 << mode)) { in set_mode()
64 pmx_mode = pmx->machdata->pmx_modes[i]; in set_mode()
77 pmx->machdata->mode = pmx_mode->mode; in set_mode()
95 void pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg) in pmx_init_addr() argument
101 for (group = 0; group < machdata->ngroups; group++) { in pmx_init_addr()
102 pgroup = machdata->groups[group]; in pmx_init_addr()
118 return pmx->machdata->ngroups; in spear_pinctrl_get_groups_cnt()
126 return pmx->machdata->groups[group]->name; in spear_pinctrl_get_group_name()
134 *pins = pmx->machdata->groups[group]->pins; in spear_pinctrl_get_group_pins()
135 *num_pins = pmx->machdata->groups[group]->npins; in spear_pinctrl_get_group_pins()
218 return pmx->machdata->nfunctions; in spear_pinctrl_get_funcs_count()
226 return pmx->machdata->functions[function]->name; in spear_pinctrl_get_func_name()
235 *groups = pmx->machdata->functions[function]->groups; in spear_pinctrl_get_func_groups()
236 *ngroups = pmx->machdata->functions[function]->ngroups; in spear_pinctrl_get_func_groups()
250 pgroup = pmx->machdata->groups[group]; in spear_pinctrl_endisable()
256 if (pmx->machdata->modes_supported) { in spear_pinctrl_endisable()
257 if (!(pmx->machdata->mode & modemux->modes)) in spear_pinctrl_endisable()
288 if (!pmx->machdata->gpio_pingroups) in get_gpio_pingroup()
291 for (i = 0; i < pmx->machdata->ngpio_pingroups; i++) { in get_gpio_pingroup()
292 gpio_pingroup = &pmx->machdata->gpio_pingroups[i]; in get_gpio_pingroup()
307 struct spear_pinctrl_machdata *machdata = pmx->machdata; in gpio_request_endisable() local
323 if (machdata->gpio_request_endisable) in gpio_request_endisable()
324 machdata->gpio_request_endisable(pmx, offset, enable); in gpio_request_endisable()
358 struct spear_pinctrl_machdata *machdata) in spear_pinctrl_probe() argument
363 if (!machdata) in spear_pinctrl_probe()
375 pmx->machdata = machdata; in spear_pinctrl_probe()
378 if (machdata->modes_supported) { in spear_pinctrl_probe()
395 spear_pinctrl_desc.pins = machdata->pins; in spear_pinctrl_probe()
396 spear_pinctrl_desc.npins = machdata->npins; in spear_pinctrl_probe()