Lines Matching refs:idx

56 static inline void br_read_lock (enum brlock_indices idx)  in br_read_lock()  argument
65 if (idx >= __BR_END) in br_read_lock()
68 ctr = &__brlock_array[smp_processor_id()][idx]; in br_read_lock()
69 lock = &__br_write_locks[idx].lock; in br_read_lock()
95 static inline void br_read_unlock (enum brlock_indices idx) in br_read_unlock() argument
99 if (idx >= __BR_END) in br_read_unlock()
102 ctr = &__brlock_array[smp_processor_id()][idx]; in br_read_unlock()
110 extern void FASTCALL(__br_write_lock (enum brlock_indices idx));
111 extern void FASTCALL(__br_write_unlock (enum brlock_indices idx));
113 static inline void br_write_lock (enum brlock_indices idx) in br_write_lock() argument
115 if (idx >= __BR_END) in br_write_lock()
117 __br_write_lock(idx); in br_write_lock()
120 static inline void br_write_unlock (enum brlock_indices idx) in br_write_unlock() argument
122 if (idx >= __BR_END) in br_write_unlock()
124 __br_write_unlock(idx); in br_write_unlock()
128 # define br_read_lock(idx) ((void)(idx)) argument
129 # define br_read_unlock(idx) ((void)(idx)) argument
130 # define br_write_lock(idx) ((void)(idx)) argument
131 # define br_write_unlock(idx) ((void)(idx)) argument
138 #define br_read_lock_irqsave(idx, flags) \ argument
139 do { local_irq_save(flags); br_read_lock(idx); } while (0)
141 #define br_read_lock_irq(idx) \ argument
142 do { local_irq_disable(); br_read_lock(idx); } while (0)
144 #define br_read_lock_bh(idx) \ argument
145 do { local_bh_disable(); br_read_lock(idx); } while (0)
147 #define br_write_lock_irqsave(idx, flags) \ argument
148 do { local_irq_save(flags); br_write_lock(idx); } while (0)
150 #define br_write_lock_irq(idx) \ argument
151 do { local_irq_disable(); br_write_lock(idx); } while (0)
153 #define br_write_lock_bh(idx) \ argument
154 do { local_bh_disable(); br_write_lock(idx); } while (0)
156 #define br_read_unlock_irqrestore(idx, flags) \ argument
159 #define br_read_unlock_irq(idx) \ argument
160 do { br_read_unlock(idx); local_irq_enable(); } while (0)
162 #define br_read_unlock_bh(idx) \ argument
163 do { br_read_unlock(idx); local_bh_enable(); } while (0)
165 #define br_write_unlock_irqrestore(idx, flags) \ argument
168 #define br_write_unlock_irq(idx) \ argument
169 do { br_write_unlock(idx); local_irq_enable(); } while (0)
171 #define br_write_unlock_bh(idx) \ argument
172 do { br_write_unlock(idx); local_bh_enable(); } while (0)