Lines Matching defs:role
127 if (ci->role != CI_ROLE_GADGET) {
161 if (ci->role != CI_ROLE_GADGET) {
254 if (ci->role != CI_ROLE_END)
265 enum ci_role role;
272 for (role = CI_ROLE_HOST; role < CI_ROLE_END; role++)
273 if (ci->roles[role] &&
274 !strncmp(buf, ci->roles[role]->name,
275 strlen(ci->roles[role]->name)))
278 if (role == CI_ROLE_END || role == ci->role)
284 ret = ci_role_start(ci, role);
361 debugfs_create_file("role", S_IRUGO | S_IWUSR, ci->debugfs, ci,