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