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