Lines Matching defs:soc
41 * @soc: reference to soc_data
52 const struct owl_pinctrl_soc_data *soc;
95 return pctrl->soc->ngroups;
103 return pctrl->soc->groups[group].name;
113 *pins = pctrl->soc->groups[group].pads;
114 *num_pins = pctrl->soc->groups[group].npads;
141 return pctrl->soc->nfunctions;
149 return pctrl->soc->functions[function].name;
159 *groups = pctrl->soc->functions[function].groups;
160 *num_groups = pctrl->soc->functions[function].ngroups;
201 g = &pctrl->soc->groups[group];
263 info = &pctrl->soc->padinfo[pin];
271 if (!pctrl->soc->padctl_val2arg)
274 ret = pctrl->soc->padctl_val2arg(info, param, &arg);
295 info = &pctrl->soc->padinfo[pin];
305 if (!pctrl->soc->padctl_arg2val)
308 ret = pctrl->soc->padctl_arg2val(info, param, &arg);
432 g = &pctrl->soc->groups[group];
461 g = &pctrl->soc->groups[group];
506 for (i = 0; i < pctrl->soc->nports; i++) {
507 const struct owl_gpio_port *port = &pctrl->soc->ports[i];
858 for (i = 0; i < pctrl->soc->nports; i++) {
859 port = &pctrl->soc->ports[i];
890 chip->ngpio = pctrl->soc->ngpios;
909 for (i = 0, offset = 0; i < pctrl->soc->nports; i++) {
910 const struct owl_gpio_port *port = &pctrl->soc->ports[i];
967 pctrl->soc = soc_data;