Lines Matching refs:machdata
61 if (!pmx->machdata->pmx_modes || !pmx->machdata->npmx_modes)
64 for (i = 0; i < pmx->machdata->npmx_modes; i++) {
65 if (pmx->machdata->pmx_modes[i]->mode == (1 << mode)) {
66 pmx_mode = pmx->machdata->pmx_modes[i];
79 pmx->machdata->mode = pmx_mode->mode;
97 void pmx_init_addr(struct spear_pinctrl_machdata *machdata, u16 reg)
103 for (group = 0; group < machdata->ngroups; group++) {
104 pgroup = machdata->groups[group];
120 return pmx->machdata->ngroups;
128 return pmx->machdata->groups[group]->name;
136 *pins = pmx->machdata->groups[group]->pins;
137 *num_pins = pmx->machdata->groups[group]->npins;
220 return pmx->machdata->nfunctions;
228 return pmx->machdata->functions[function]->name;
237 *groups = pmx->machdata->functions[function]->groups;
238 *ngroups = pmx->machdata->functions[function]->ngroups;
252 pgroup = pmx->machdata->groups[group];
258 if (pmx->machdata->modes_supported) {
259 if (!(pmx->machdata->mode & modemux->modes))
290 if (!pmx->machdata->gpio_pingroups)
293 for (i = 0; i < pmx->machdata->ngpio_pingroups; i++) {
294 gpio_pingroup = &pmx->machdata->gpio_pingroups[i];
309 struct spear_pinctrl_machdata *machdata = pmx->machdata;
325 if (machdata->gpio_request_endisable)
326 machdata->gpio_request_endisable(pmx, offset, enable);
360 struct spear_pinctrl_machdata *machdata)
365 if (!machdata)
380 pmx->machdata = machdata;
383 if (machdata->modes_supported) {
400 spear_pinctrl_desc.pins = machdata->pins;
401 spear_pinctrl_desc.npins = machdata->npins;