Lines Matching refs:sl
57 static inline void write_seqlock(seqlock_t *sl) in write_seqlock() argument
59 spin_lock(&sl->lock); in write_seqlock()
60 ++sl->sequence; in write_seqlock()
64 static inline void write_sequnlock(seqlock_t *sl) in write_sequnlock() argument
67 sl->sequence++; in write_sequnlock()
68 spin_unlock(&sl->lock); in write_sequnlock()
71 static inline int write_tryseqlock(seqlock_t *sl) in write_tryseqlock() argument
73 int ret = spin_trylock(&sl->lock); in write_tryseqlock()
76 ++sl->sequence; in write_tryseqlock()
83 static __always_inline unsigned read_seqbegin(const seqlock_t *sl) in read_seqbegin() argument
85 unsigned ret = sl->sequence; in read_seqbegin()
98 static __always_inline int read_seqretry(const seqlock_t *sl, unsigned iv) in read_seqretry() argument
101 return (iv & 1) | (sl->sequence ^ iv); in read_seqretry()