Lines Matching refs:s
30 static inline unsigned long rcu_seq_ctr(unsigned long s) in rcu_seq_ctr() argument
32 return s >> RCU_SEQ_CTR_SHIFT; in rcu_seq_ctr()
39 static inline int rcu_seq_state(unsigned long s) in rcu_seq_state() argument
41 return s & RCU_SEQ_STATE_MASK; in rcu_seq_state()
89 unsigned long s; in rcu_seq_snap() local
91 s = (READ_ONCE(*sp) + 2 * RCU_SEQ_STATE_MASK + 1) & ~RCU_SEQ_STATE_MASK; in rcu_seq_snap()
93 return s; in rcu_seq_snap()
106 static inline bool rcu_seq_started(unsigned long *sp, unsigned long s) in rcu_seq_started() argument
108 return ULONG_CMP_LT((s - 1) & ~RCU_SEQ_STATE_MASK, READ_ONCE(*sp)); in rcu_seq_started()
115 static inline bool rcu_seq_done(unsigned long *sp, unsigned long s) in rcu_seq_done() argument
117 return ULONG_CMP_GE(READ_ONCE(*sp), s); in rcu_seq_done()