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