Lines Matching refs:ctrl
38 const struct mvebu_mpp_ctrl *ctrl;
178 if (!grp->ctrl)
181 return grp->ctrl->mpp_get(grp->data, grp->pins[0], config);
192 if (!grp->ctrl)
196 ret = grp->ctrl->mpp_set(grp->data, grp->pins[0], configs[i]);
336 if (grp->ctrl->mpp_gpio_req)
337 return grp->ctrl->mpp_gpio_req(grp->data, offset);
359 if (grp->ctrl->mpp_gpio_dir)
360 return grp->ctrl->mpp_gpio_dir(grp->data, offset, input);
613 const struct mvebu_mpp_ctrl *ctrl = &soc->controls[n];
615 pctl->desc.npins += ctrl->npins;
617 for (k = 0; k < ctrl->npins; k++)
618 ctrl->pins[k] = ctrl->pid + k;
625 if (!ctrl->name) {
626 pctl->num_groups += ctrl->npins;
627 noname += ctrl->npins;
658 const struct mvebu_mpp_ctrl *ctrl = &soc->controls[n];
663 pctl->groups[gid].ctrl = ctrl;
665 pctl->groups[gid].name = ctrl->name;
666 pctl->groups[gid].pins = ctrl->pins;
667 pctl->groups[gid].npins = ctrl->npins;
674 if (!ctrl->name) {
677 sprintf(noname_buf, "mpp%d", ctrl->pid+0);
680 for (k = 1; k < ctrl->npins; k++) {
683 pctl->groups[gid].ctrl = ctrl;
686 pctl->groups[gid].pins = &ctrl->pins[k];
688 sprintf(noname_buf, "mpp%d", ctrl->pid+k);
766 * assigning the MMIO base address to all mvebu mpp ctrl instances.