Lines Matching refs:role
207 enum ci_role role; member
253 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
254 return ci->roles[ci->role]; in ci_role()
257 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument
261 if (role >= CI_ROLE_END) in ci_role_start()
264 if (!ci->roles[role]) in ci_role_start()
267 ret = ci->roles[role]->start(ci); in ci_role_start()
269 ci->role = role; in ci_role_start()
275 enum ci_role role = ci->role; in ci_role_stop() local
277 if (role == CI_ROLE_END) in ci_role_stop()
280 ci->role = CI_ROLE_END; in ci_role_stop()
282 ci->roles[role]->stop(ci); in ci_role_stop()