Lines Matching refs:roles
614 if ((ci_role != CI_ROLE_END && !ci->roles[ci_role]) || in ci_usb_role_switch_set()
914 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
916 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role()
918 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
929 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
967 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store()
973 if (!strncmp(buf, ci->roles[role]->name, in role_store()
974 strlen(ci->roles[role]->name))) in role_store()
1127 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1133 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1151 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1165 ci->role = ci->roles[CI_ROLE_HOST] in ci_hdrc_probe()
1215 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_probe()