Lines Matching refs:ctrl
38 const struct mvebu_mpp_ctrl *ctrl;
168 if (!grp->ctrl)
171 return grp->ctrl->mpp_get(grp->data, grp->pins[0], config);
182 if (!grp->ctrl)
186 ret = grp->ctrl->mpp_set(grp->data, grp->pins[0], configs[i]);
326 if (grp->ctrl->mpp_gpio_req)
327 return grp->ctrl->mpp_gpio_req(grp->data, offset);
349 if (grp->ctrl->mpp_gpio_dir)
350 return grp->ctrl->mpp_gpio_dir(grp->data, offset, input);
603 const struct mvebu_mpp_ctrl *ctrl = &soc->controls[n];
605 pctl->desc.npins += ctrl->npins;
607 for (k = 0; k < ctrl->npins; k++)
608 ctrl->pins[k] = ctrl->pid + k;
615 if (!ctrl->name) {
616 pctl->num_groups += ctrl->npins;
617 noname += ctrl->npins;
648 const struct mvebu_mpp_ctrl *ctrl = &soc->controls[n];
653 pctl->groups[gid].ctrl = ctrl;
655 pctl->groups[gid].name = ctrl->name;
656 pctl->groups[gid].pins = ctrl->pins;
657 pctl->groups[gid].npins = ctrl->npins;
664 if (!ctrl->name) {
667 sprintf(noname_buf, "mpp%d", ctrl->pid+0);
670 for (k = 1; k < ctrl->npins; k++) {
673 pctl->groups[gid].ctrl = ctrl;
676 pctl->groups[gid].pins = &ctrl->pins[k];
678 sprintf(noname_buf, "mpp%d", ctrl->pid+k);
756 * assigning the MMIO base address to all mvebu mpp ctrl instances.