Lines Matching refs:lock
19 #define assert_raw_spin_locked(lock) do { (void)(lock); } while (0) argument
27 #define ___LOCK(lock) \ argument
28 do { __acquire(lock); (void)(lock); } while (0)
30 #define __LOCK(lock) \ argument
31 do { preempt_disable(); ___LOCK(lock); } while (0)
33 #define __LOCK_BH(lock) \ argument
34 do { __local_bh_disable_ip(_THIS_IP_, SOFTIRQ_LOCK_OFFSET); ___LOCK(lock); } while (0)
36 #define __LOCK_IRQ(lock) \ argument
37 do { local_irq_disable(); __LOCK(lock); } while (0)
39 #define __LOCK_IRQSAVE(lock, flags) \ argument
40 do { local_irq_save(flags); __LOCK(lock); } while (0)
42 #define ___UNLOCK(lock) \ argument
43 do { __release(lock); (void)(lock); } while (0)
45 #define __UNLOCK(lock) \ argument
46 do { preempt_enable(); ___UNLOCK(lock); } while (0)
48 #define __UNLOCK_BH(lock) \ argument
50 ___UNLOCK(lock); } while (0)
52 #define __UNLOCK_IRQ(lock) \ argument
53 do { local_irq_enable(); __UNLOCK(lock); } while (0)
55 #define __UNLOCK_IRQRESTORE(lock, flags) \ argument
56 do { local_irq_restore(flags); __UNLOCK(lock); } while (0)
58 #define _raw_spin_lock(lock) __LOCK(lock) argument
59 #define _raw_spin_lock_nested(lock, subclass) __LOCK(lock) argument
60 #define _raw_read_lock(lock) __LOCK(lock) argument
61 #define _raw_write_lock(lock) __LOCK(lock) argument
62 #define _raw_write_lock_nested(lock, subclass) __LOCK(lock) argument
63 #define _raw_spin_lock_bh(lock) __LOCK_BH(lock) argument
64 #define _raw_read_lock_bh(lock) __LOCK_BH(lock) argument
65 #define _raw_write_lock_bh(lock) __LOCK_BH(lock) argument
66 #define _raw_spin_lock_irq(lock) __LOCK_IRQ(lock) argument
67 #define _raw_read_lock_irq(lock) __LOCK_IRQ(lock) argument
68 #define _raw_write_lock_irq(lock) __LOCK_IRQ(lock) argument
69 #define _raw_spin_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument
70 #define _raw_read_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument
71 #define _raw_write_lock_irqsave(lock, flags) __LOCK_IRQSAVE(lock, flags) argument
72 #define _raw_spin_trylock(lock) ({ __LOCK(lock); 1; }) argument
73 #define _raw_read_trylock(lock) ({ __LOCK(lock); 1; }) argument
74 #define _raw_write_trylock(lock) ({ __LOCK(lock); 1; }) argument
75 #define _raw_spin_trylock_bh(lock) ({ __LOCK_BH(lock); 1; }) argument
76 #define _raw_spin_unlock(lock) __UNLOCK(lock) argument
77 #define _raw_read_unlock(lock) __UNLOCK(lock) argument
78 #define _raw_write_unlock(lock) __UNLOCK(lock) argument
79 #define _raw_spin_unlock_bh(lock) __UNLOCK_BH(lock) argument
80 #define _raw_write_unlock_bh(lock) __UNLOCK_BH(lock) argument
81 #define _raw_read_unlock_bh(lock) __UNLOCK_BH(lock) argument
82 #define _raw_spin_unlock_irq(lock) __UNLOCK_IRQ(lock) argument
83 #define _raw_read_unlock_irq(lock) __UNLOCK_IRQ(lock) argument
84 #define _raw_write_unlock_irq(lock) __UNLOCK_IRQ(lock) argument
85 #define _raw_spin_unlock_irqrestore(lock, flags) \ argument
86 __UNLOCK_IRQRESTORE(lock, flags)
87 #define _raw_read_unlock_irqrestore(lock, flags) \ argument
88 __UNLOCK_IRQRESTORE(lock, flags)
89 #define _raw_write_unlock_irqrestore(lock, flags) \ argument
90 __UNLOCK_IRQRESTORE(lock, flags)