Lines Matching full:role
119 * ci_otg_role - pick role based on ID pin state
124 enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) in ci_otg_role() local
128 return role; in ci_otg_role()
169 enum ci_role role = ci_otg_role(ci); in ci_handle_id_switch() local
171 if (role != ci->role) { in ci_handle_id_switch()
173 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
175 if (ci->vbus_active && ci->role == CI_ROLE_GADGET) in ci_handle_id_switch()
177 * vbus disconnect event is lost due to role in ci_handle_id_switch()
184 if (role == CI_ROLE_GADGET && in ci_handle_id_switch()
195 ci_role_start(ci, role); in ci_handle_id_switch()
197 if (role == CI_ROLE_GADGET) in ci_handle_id_switch()