CI_ROLE_END
struct ci_role_driver *roles[CI_ROLE_END];
BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]);
if (role >= CI_ROLE_END)
if (role == CI_ROLE_END)
ci->role = CI_ROLE_END;
return CI_ROLE_END;
for (role = CI_ROLE_HOST; role < CI_ROLE_END; role++)
if (role == CI_ROLE_END)
if (ci->role != CI_ROLE_END && ci_role(ci)->suspend)
if (ci->role != CI_ROLE_END && ci_role(ci)->resume)
if (ci->role != CI_ROLE_END)
if (ci->role != CI_ROLE_END)
ci->role = CI_ROLE_END;