Lines Matching defs:roles
170 * @roles: array of supported roles for this controller
219 struct ci_role_driver *roles[CI_ROLE_END];
272 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]);
273 return ci->roles[ci->role];
283 if (!ci->roles[role])
286 ret = ci->roles[role]->start(ci);
312 ci->roles[role]->stop(ci);
464 return ci->is_otg && ci->roles[CI_ROLE_HOST] &&
465 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support ||