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