Lines Matching defs:roles
165 * @roles: array of supported roles for this controller
214 struct ci_role_driver *roles[CI_ROLE_END];
266 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]);
267 return ci->roles[ci->role];
277 if (!ci->roles[role])
280 ret = ci->roles[role]->start(ci);
295 ci->roles[role]->stop(ci);
444 return ci->is_otg && ci->roles[CI_ROLE_HOST] &&
445 ci->roles[CI_ROLE_GADGET] && (otg_caps->srp_support ||