Home | History | Annotate | Download | only in linux

Lines Matching refs:sl

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