Lines Matching refs:roles
644 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { in ci_get_role()
657 role = ci->roles[CI_ROLE_HOST] ? CI_ROLE_HOST in ci_get_role()
924 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
926 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role()
928 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
939 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
977 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store()
983 if (!strncmp(buf, ci->roles[role]->name, in role_store()
984 strlen(ci->roles[role]->name))) in role_store()
1137 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1143 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1207 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_probe()