Home | History | Annotate | Download | only in linux

Lines Matching refs:__LOCK

23 #define __LOCK(lock)   do { preempt_disable(); __acquire(lock); (void)(lock); } while (0)
25 #define __LOCK_BH(lock) do { local_bh_disable(); __LOCK(lock); } while (0)
27 #define __LOCK_IRQ(lock) do { local_irq_disable(); __LOCK(lock); } while (0)
29 #define __LOCK_IRQSAVE(lock, flags) do { local_irq_save(flags); __LOCK(lock); } while (0)
39 #define _spin_lock(lock) __LOCK(lock)
40 #define _spin_lock_nested(lock, subclass) __LOCK(lock)
41 #define _read_lock(lock) __LOCK(lock)
42 #define _write_lock(lock) __LOCK(lock)
52 #define _spin_trylock(lock) ({ __LOCK(lock); 1; })
53 #define _read_trylock(lock) ({ __LOCK(lock); 1; })
54 #define _write_trylock(lock) ({ __LOCK(lock); 1; })