Lines Matching refs:role
209 enum ci_role role; member
255 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
256 return ci->roles[ci->role]; in ci_role()
259 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument
263 if (role >= CI_ROLE_END) in ci_role_start()
266 if (!ci->roles[role]) in ci_role_start()
269 ret = ci->roles[role]->start(ci); in ci_role_start()
271 ci->role = role; in ci_role_start()
277 enum ci_role role = ci->role; in ci_role_stop() local
279 if (role == CI_ROLE_END) in ci_role_stop()
282 ci->role = CI_ROLE_END; in ci_role_stop()
284 ci->roles[role]->stop(ci); in ci_role_stop()