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()
170 enum ci_role role = ci_otg_role(ci); in ci_handle_id_switch() local
172 if (role != ci->role) { in ci_handle_id_switch()
174 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
176 if (ci->vbus_active && ci->role == CI_ROLE_GADGET) in ci_handle_id_switch()
178 * vbus disconnect event is lost due to role in ci_handle_id_switch()
185 if (role == CI_ROLE_GADGET && in ci_handle_id_switch()
196 ci_role_start(ci, role); in ci_handle_id_switch()
198 if (role == CI_ROLE_GADGET) in ci_handle_id_switch()