Lines Matching refs:lock
26 spinlock_t lock;
40 #define write_seqlock_irqsave(lock, flags) do { local_irq_save(flags); write_seqlock(lock); } while (0)
41 #define write_seqlock_irq(lock) do { local_irq_disable(); write_seqlock(lock); } while (0)
42 #define write_seqlock_bh(lock) do { local_bh_disable(); write_seqlock(lock); } while (0)
44 #define write_sequnlock_irqrestore(lock, flags) do { write_sequnlock(lock); local_irq_restore(flags); } while(0)
45 #define write_sequnlock_irq(lock) do { write_sequnlock(lock); local_irq_enable(); } while(0)
46 #define write_sequnlock_bh(lock) do { write_sequnlock(lock); local_bh_enable(); } while(0)
47 #define read_seqbegin_irqsave(lock, flags) ({ local_irq_save(flags); read_seqbegin(lock); })
49 #define read_seqretry_irqrestore(lock, iv, flags) ({ int ret = read_seqretry(lock, iv); local_irq_restore(flags); ret; })