Lines Matching refs:lock
34 spinlock_t lock; member
59 spin_lock(&sl->lock); in write_seqlock()
68 spin_unlock(&sl->lock); in write_sequnlock()
73 int ret = spin_trylock(&sl->lock); in write_tryseqlock()
158 #define write_seqlock_irqsave(lock, flags) \ argument
159 do { local_irq_save(flags); write_seqlock(lock); } while (0)
160 #define write_seqlock_irq(lock) \ argument
161 do { local_irq_disable(); write_seqlock(lock); } while (0)
162 #define write_seqlock_bh(lock) \ argument
163 do { local_bh_disable(); write_seqlock(lock); } while (0)
165 #define write_sequnlock_irqrestore(lock, flags) \ argument
166 do { write_sequnlock(lock); local_irq_restore(flags); } while(0)
167 #define write_sequnlock_irq(lock) \ argument
168 do { write_sequnlock(lock); local_irq_enable(); } while(0)
169 #define write_sequnlock_bh(lock) \ argument
170 do { write_sequnlock(lock); local_bh_enable(); } while(0)
172 #define read_seqbegin_irqsave(lock, flags) \ argument
173 ({ local_irq_save(flags); read_seqbegin(lock); })
175 #define read_seqretry_irqrestore(lock, iv, flags) \ argument
177 int ret = read_seqretry(lock, iv); \