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()
173 enum ci_role role; in ci_handle_id_switch() local
176 role = ci_otg_role(ci); in ci_handle_id_switch()
177 if (role != ci->role) { in ci_handle_id_switch()
179 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
181 if (ci->vbus_active && ci->role == CI_ROLE_GADGET) in ci_handle_id_switch()
183 * vbus disconnect event is lost due to role in ci_handle_id_switch()
190 if (role == CI_ROLE_GADGET && in ci_handle_id_switch()
201 ci_role_start(ci, role); in ci_handle_id_switch()
203 if (role == CI_ROLE_GADGET) in ci_handle_id_switch()