Lines Matching full:roles
651 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) { in ci_get_role()
664 role = ci->roles[CI_ROLE_HOST] ? CI_ROLE_HOST in ci_get_role()
952 if (ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
954 else if (ci->roles[CI_ROLE_HOST]) in ci_hdrc_query_available_role()
956 else if (ci->roles[CI_ROLE_GADGET]) in ci_hdrc_query_available_role()
967 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_role_destroy()
1005 if (!(ci->roles[CI_ROLE_HOST] && ci->roles[CI_ROLE_GADGET])) { in role_store()
1011 if (!strncmp(buf, ci->roles[role]->name, in role_store()
1012 strlen(ci->roles[role]->name))) in role_store()
1179 if (!ci->roles[CI_ROLE_HOST] && !ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1180 dev_err(dev, "no supported roles\n"); in ci_hdrc_probe()
1185 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) { in ci_hdrc_probe()
1249 if (ci->is_otg && ci->roles[CI_ROLE_GADGET]) in ci_hdrc_probe()