Searched refs:state_flag (Results 1 – 1 of 1) sorted by relevance
504 static inline int ifstate_check(struct lio *lio, int state_flag) in ifstate_check() argument506 return atomic_read(&lio->ifstate) & state_flag; in ifstate_check()514 static inline void ifstate_set(struct lio *lio, int state_flag) in ifstate_set() argument516 atomic_set(&lio->ifstate, (atomic_read(&lio->ifstate) | state_flag)); in ifstate_set()524 static inline void ifstate_reset(struct lio *lio, int state_flag) in ifstate_reset() argument526 atomic_set(&lio->ifstate, (atomic_read(&lio->ifstate) & ~(state_flag))); in ifstate_reset()