Lines Matching refs:lock
5 * lock for data where the reader wants a consitent set of information
34 spinlock_t lock;
53 /* Lock out other writers and update the count.
59 spin_lock(&sl->lock);
68 spin_unlock(&sl->lock);
73 int ret = spin_trylock(&sl->lock);
158 #define write_seqlock_irqsave(lock, flags) \
159 do { local_irq_save(flags); write_seqlock(lock); } while (0)
160 #define write_seqlock_irq(lock) \
161 do { local_irq_disable(); write_seqlock(lock); } while (0)
162 #define write_seqlock_bh(lock) \
163 do { local_bh_disable(); write_seqlock(lock); } while (0)
165 #define write_sequnlock_irqrestore(lock, flags) \
166 do { write_sequnlock(lock); local_irq_restore(flags); } while(0)
167 #define write_sequnlock_irq(lock) \
168 do { write_sequnlock(lock); local_irq_enable(); } while(0)
169 #define write_sequnlock_bh(lock) \
170 do { write_sequnlock(lock); local_bh_enable(); } while(0)
172 #define read_seqbegin_irqsave(lock, flags) \
173 ({ local_irq_save(flags); read_seqbegin(lock); })
175 #define read_seqretry_irqrestore(lock, iv, flags) \
177 int ret = read_seqretry(lock, iv); \