Lines Matching refs:lock
19 #define assert_spin_locked(lock) do { (void)(lock); } while (0) argument
27 #define __LOCK(lock) \ argument
28 do { preempt_disable(); __acquire(lock); (void)(lock); } while (0)
30 #define __LOCK_BH(lock) \ argument
31 do { local_bh_disable(); __LOCK(lock); } while (0)
33 #define __LOCK_IRQ(lock) \ argument
34 do { local_irq_disable(); __LOCK(lock); } while (0)
36 #define __LOCK_IRQSAVE(lock, flags) \ argument
37 do { local_irq_save(flags); __LOCK(lock); } while (0)
39 #define __UNLOCK(lock) \ argument
40 do { preempt_enable(); __release(lock); (void)(lock); } while (0)
42 #define __UNLOCK_BH(lock) \ argument
43 do { preempt_enable_no_resched(); local_bh_enable(); __release(lock); (void)(lock); } while (0)
45 #define __UNLOCK_IRQ(lock) \ argument
46 do { local_irq_enable(); __UNLOCK(lock); } while (0)
48 #define __UNLOCK_IRQRESTORE(lock, flags) \ argument
49 do { local_irq_restore(flags); __UNLOCK(lock); } while (0)
51 #define _spin_lock(lock) __LOCK(lock) argument
52 #define _spin_lock_nested(lock, subclass) __LOCK(lock) argument
53 #define _read_lock(lock) __LOCK(lock) argument
54 #define _write_lock(lock) __LOCK(lock) argument
55 #define _spin_lock_bh(lock) __LOCK_BH(lock) argument
56 #define _read_lock_bh(lock) __LOCK_BH(lock) argument
57 #define _write_lock_bh(lock) __LOCK_BH(lock) argument
58 #define _spin_lock_irq(lock) __LOCK_IRQ(lock) argument
59 #define _read_lock_irq(lock) __LOCK_IRQ(lock) argument
60 #define _write_lock_irq(lock) __LOCK_IRQ(lock) argument
61 #define _spin_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument
62 #define _read_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument
63 #define _write_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument
64 #define _spin_trylock(lock) ({ __LOCK(lock); 1; }) argument
65 #define _read_trylock(lock) ({ __LOCK(lock); 1; }) argument
66 #define _write_trylock(lock) ({ __LOCK(lock); 1; }) argument
67 #define _spin_trylock_bh(lock) ({ __LOCK_BH(lock); 1; }) argument
68 #define _spin_unlock(lock) __UNLOCK(lock) argument
69 #define _read_unlock(lock) __UNLOCK(lock) argument
70 #define _write_unlock(lock) __UNLOCK(lock) argument
71 #define _spin_unlock_bh(lock) __UNLOCK_BH(lock) argument
72 #define _write_unlock_bh(lock) __UNLOCK_BH(lock) argument
73 #define _read_unlock_bh(lock) __UNLOCK_BH(lock) argument
74 #define _spin_unlock_irq(lock) __UNLOCK_IRQ(lock) argument
75 #define _read_unlock_irq(lock) __UNLOCK_IRQ(lock) argument
76 #define _write_unlock_irq(lock) __UNLOCK_IRQ(lock) argument
77 #define _spin_unlock_irqrestore(lock, flags) __UNLOCK_IRQRESTORE(lock, flags) argument
78 #define _read_unlock_irqrestore(lock, flags) __UNLOCK_IRQRESTORE(lock, flags) argument
79 #define _write_unlock_irqrestore(lock, flags) __UNLOCK_IRQRESTORE(lock, flags) argument