Lines Matching full:roles
652 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { in ci_get_role()
665 role = ci->roles[CI_ROLE_HOST] ? CI_ROLE_HOST in ci_get_role()
955 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
957 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role()
959 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
970 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
1008 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store()
1014 if (!strncmp(buf, ci->roles[role]->name, in role_store()
1015 strlen(ci->roles[role]->name))) in role_store()
1182 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1183 dev_err(dev, "no supported roles\n"); in ci_hdrc_probe()
1188 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1252 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_probe()