Lines Matching refs:lock
127 __SEQ_LOCK(____s->lock = (_lock)); \
130 #define seqcount_raw_spinlock_init(s, lock) seqcount_LOCKNAME_init(s, lock, raw_spinlock) argument
131 #define seqcount_spinlock_init(s, lock) seqcount_LOCKNAME_init(s, lock, spinlock) argument
132 #define seqcount_rwlock_init(s, lock) seqcount_LOCKNAME_init(s, lock, rwlock) argument
133 #define seqcount_mutex_init(s, lock) seqcount_LOCKNAME_init(s, lock, mutex) argument
166 __SEQ_LOCK(lockbase##_lock(s->lock)); \
167 __SEQ_LOCK(lockbase##_unlock(s->lock)); \
192 __SEQ_LOCK(lockdep_assert_held(s->lock)); \
240 __SEQ_LOCK(.lock = (assoc_lock)) \ in SEQCOUNT_LOCKNAME()
243 #define SEQCNT_RAW_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
244 #define SEQCNT_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
245 #define SEQCNT_RWLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
246 #define SEQCNT_MUTEX_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
247 #define SEQCNT_WW_MUTEX_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
807 .seqcount = SEQCNT_SPINLOCK_ZERO(lockname, &(lockname).lock), \
808 .lock = __SPIN_LOCK_UNLOCKED(lockname) \
817 spin_lock_init(&(sl)->lock); \
818 seqcount_spinlock_init(&(sl)->seqcount, &(sl)->lock); \
876 spin_lock(&sl->lock); in write_seqlock()
890 spin_unlock(&sl->lock); in write_sequnlock()
902 spin_lock_bh(&sl->lock); in write_seqlock_bh()
917 spin_unlock_bh(&sl->lock); in write_sequnlock_bh()
929 spin_lock_irq(&sl->lock); in write_seqlock_irq()
943 spin_unlock_irq(&sl->lock); in write_sequnlock_irq()
950 spin_lock_irqsave(&sl->lock, flags); in __write_seqlock_irqsave()
965 #define write_seqlock_irqsave(lock, flags) \ argument
966 do { flags = __write_seqlock_irqsave(lock); } while (0)
981 spin_unlock_irqrestore(&sl->lock, flags); in write_sequnlock_irqrestore()
1002 spin_lock(&sl->lock); in read_seqlock_excl()
1011 spin_unlock(&sl->lock); in read_sequnlock_excl()
1025 spin_lock_bh(&sl->lock); in read_seqlock_excl_bh()
1035 spin_unlock_bh(&sl->lock); in read_sequnlock_excl_bh()
1049 spin_lock_irq(&sl->lock); in read_seqlock_excl_irq()
1059 spin_unlock_irq(&sl->lock); in read_sequnlock_excl_irq()
1066 spin_lock_irqsave(&sl->lock, flags); in __read_seqlock_excl_irqsave()
1081 #define read_seqlock_excl_irqsave(lock, flags) \ argument
1082 do { flags = __read_seqlock_excl_irqsave(lock); } while (0)
1093 spin_unlock_irqrestore(&sl->lock, flags); in read_sequnlock_excl_irqrestore()
1127 static inline void read_seqbegin_or_lock(seqlock_t *lock, int *seq) in read_seqbegin_or_lock() argument
1130 *seq = read_seqbegin(lock); in read_seqbegin_or_lock()
1132 read_seqlock_excl(lock); in read_seqbegin_or_lock()
1142 static inline int need_seqretry(seqlock_t *lock, int seq) in need_seqretry() argument
1144 return !(seq & 1) && read_seqretry(lock, seq); in need_seqretry()
1155 static inline void done_seqretry(seqlock_t *lock, int seq) in done_seqretry() argument
1158 read_sequnlock_excl(lock); in done_seqretry()
1182 read_seqbegin_or_lock_irqsave(seqlock_t *lock, int *seq) in read_seqbegin_or_lock_irqsave() argument
1187 *seq = read_seqbegin(lock); in read_seqbegin_or_lock_irqsave()
1189 read_seqlock_excl_irqsave(lock, flags); in read_seqbegin_or_lock_irqsave()
1207 done_seqretry_irqrestore(seqlock_t *lock, int seq, unsigned long flags) in done_seqretry_irqrestore() argument
1210 read_sequnlock_excl_irqrestore(lock, flags); in done_seqretry_irqrestore()