Searched refs:arch_rwlock_t (Results 1 - 48 of 48) sorted by relevance

/linux-4.1.27/arch/blackfin/include/asm/
H A Dspinlock.h55 static inline int arch_read_can_lock(arch_rwlock_t *rw) arch_read_can_lock()
60 static inline int arch_write_can_lock(arch_rwlock_t *rw) arch_write_can_lock()
65 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
72 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
77 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
82 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
89 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
94 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
H A Dspinlock_types.h24 } arch_rwlock_t; typedef in typeref:struct:__anon333
/linux-4.1.27/arch/s390/include/asm/
H A Dspinlock.h126 extern int _raw_read_trylock_retry(arch_rwlock_t *lp);
127 extern int _raw_write_trylock_retry(arch_rwlock_t *lp);
132 static inline int arch_read_trylock_once(arch_rwlock_t *rw) arch_read_trylock_once()
139 static inline int arch_write_trylock_once(arch_rwlock_t *rw) arch_write_trylock_once()
180 extern void _raw_read_lock_wait(arch_rwlock_t *lp);
181 extern void _raw_write_lock_wait(arch_rwlock_t *lp, unsigned int prev);
183 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
192 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
197 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
207 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
215 extern void _raw_read_lock_wait(arch_rwlock_t *lp);
216 extern void _raw_write_lock_wait(arch_rwlock_t *lp);
218 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
224 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
233 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
240 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
255 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
262 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
270 static inline void arch_read_relax(arch_rwlock_t *rw) arch_read_relax()
275 static inline void arch_write_relax(arch_rwlock_t *rw) arch_write_relax()
H A Dspinlock_types.h17 } arch_rwlock_t; typedef in typeref:struct:__anon2472
/linux-4.1.27/arch/xtensa/include/asm/
H A Dspinlock_types.h16 } arch_rwlock_t; typedef in typeref:struct:__anon3219
H A Dspinlock.h101 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
119 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
136 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
148 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
167 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
187 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
/linux-4.1.27/arch/sparc/include/asm/
H A Dspinlock_types.h16 } arch_rwlock_t; typedef in typeref:struct:__anon2718
H A Dspinlock_32.h69 * | 24-bit counter | wlock | arch_rwlock_t
80 static inline void __arch_read_lock(arch_rwlock_t *rw) __arch_read_lock()
82 register arch_rwlock_t *lp asm("g1"); __arch_read_lock()
100 static inline void __arch_read_unlock(arch_rwlock_t *rw) __arch_read_unlock()
102 register arch_rwlock_t *lp asm("g1"); __arch_read_unlock()
120 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
122 register arch_rwlock_t *lp asm("g1"); arch_write_lock()
134 static void inline arch_write_unlock(arch_rwlock_t *lock) arch_write_unlock()
143 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
163 static inline int __arch_read_trylock(arch_rwlock_t *rw) __arch_read_trylock()
165 register arch_rwlock_t *lp asm("g1"); __arch_read_trylock()
H A Dspinlock_64.h95 static void inline arch_read_lock(arch_rwlock_t *lock) arch_read_lock()
118 static int inline arch_read_trylock(arch_rwlock_t *lock) arch_read_trylock()
139 static void inline arch_read_unlock(arch_rwlock_t *lock) arch_read_unlock()
155 static void inline arch_write_lock(arch_rwlock_t *lock) arch_write_lock()
180 static void inline arch_write_unlock(arch_rwlock_t *lock) arch_write_unlock()
189 static int inline arch_write_trylock(arch_rwlock_t *lock) arch_write_trylock()
/linux-4.1.27/arch/sh/include/asm/
H A Dspinlock_types.h16 } arch_rwlock_t; typedef in typeref:struct:__anon2582
H A Dspinlock.h111 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
129 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
145 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
163 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
173 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
196 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
/linux-4.1.27/arch/mn10300/include/asm/
H A Dspinlock_types.h16 } arch_rwlock_t; typedef in typeref:struct:__anon2172
H A Dspinlock.h116 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
129 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
142 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
154 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
166 static inline int arch_read_trylock(arch_rwlock_t *lock) arch_read_trylock()
176 static inline int arch_write_trylock(arch_rwlock_t *lock) arch_write_trylock()
/linux-4.1.27/arch/parisc/include/asm/
H A Dspinlock_types.h17 } arch_rwlock_t; typedef in typeref:struct:__anon2209
H A Dspinlock.h73 static __inline__ void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
85 static __inline__ void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
97 static __inline__ int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
123 static __inline__ void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
145 static __inline__ void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
153 static __inline__ int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
177 static __inline__ int arch_read_can_lock(arch_rwlock_t *rw) arch_read_can_lock()
186 static __inline__ int arch_write_can_lock(arch_rwlock_t *rw) arch_write_can_lock()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dspinlock_types.h16 } arch_rwlock_t; typedef in typeref:struct:__anon2332
H A Dspinlock.h116 extern void __rw_yield(arch_rwlock_t *lock);
200 static inline long __arch_read_trylock(arch_rwlock_t *rw) __arch_read_trylock()
224 static inline long __arch_write_trylock(arch_rwlock_t *rw) __arch_write_trylock()
244 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
258 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
272 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
277 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
282 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
299 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
/linux-4.1.27/arch/ia64/include/asm/
H A Dspinlock_types.h17 } arch_rwlock_t; typedef in typeref:struct:__anon1678
H A Dspinlock.h153 arch_read_lock_flags(arch_rwlock_t *lock, unsigned long flags) arch_read_lock_flags()
184 arch_rwlock_t *__read_lock_ptr = (rw); \
197 arch_rwlock_t *__read_lock_ptr = (rw); \
204 arch_write_lock_flags(arch_rwlock_t *lock, unsigned long flags) arch_write_lock_flags()
242 static inline void arch_write_unlock(arch_rwlock_t *x) arch_write_unlock()
272 static inline void arch_write_unlock(arch_rwlock_t *x) arch_write_unlock()
280 static inline int arch_read_trylock(arch_rwlock_t *x) arch_read_trylock()
283 arch_rwlock_t lock; arch_read_trylock()
/linux-4.1.27/arch/m32r/include/asm/
H A Dspinlock_types.h16 } arch_rwlock_t; typedef in typeref:struct:__anon1757
H A Dspinlock.h152 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
203 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
256 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
278 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
302 static inline int arch_read_trylock(arch_rwlock_t *lock) arch_read_trylock()
311 static inline int arch_write_trylock(arch_rwlock_t *lock) arch_write_trylock()
/linux-4.1.27/arch/metag/include/asm/
H A Dspinlock_types.h16 } arch_rwlock_t; typedef in typeref:struct:__anon1848
H A Dspinlock_lock1.h66 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
84 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
100 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
108 static inline int arch_write_can_lock(arch_rwlock_t *rw) arch_write_can_lock()
129 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
147 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
159 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
175 static inline int arch_read_can_lock(arch_rwlock_t *rw) arch_read_can_lock()
H A Dspinlock_lnkget.h86 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
106 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
129 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
140 static inline int arch_write_can_lock(arch_rwlock_t *rw) arch_write_can_lock()
166 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
185 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
203 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
228 static inline int arch_read_can_lock(arch_rwlock_t *rw) arch_read_can_lock()
/linux-4.1.27/arch/alpha/include/asm/
H A Dspinlock_types.h16 } arch_rwlock_t; typedef in typeref:struct:__anon79
H A Dspinlock.h52 static inline int arch_read_can_lock(arch_rwlock_t *lock) arch_read_can_lock()
57 static inline int arch_write_can_lock(arch_rwlock_t *lock) arch_write_can_lock()
62 static inline void arch_read_lock(arch_rwlock_t *lock) arch_read_lock()
82 static inline void arch_write_lock(arch_rwlock_t *lock) arch_write_lock()
102 static inline int arch_read_trylock(arch_rwlock_t * lock) arch_read_trylock()
124 static inline int arch_write_trylock(arch_rwlock_t * lock) arch_write_trylock()
146 static inline void arch_read_unlock(arch_rwlock_t * lock) arch_read_unlock()
162 static inline void arch_write_unlock(arch_rwlock_t * lock) arch_write_unlock()
/linux-4.1.27/include/asm-generic/
H A Dqrwlock_types.h14 } arch_rwlock_t; typedef in typeref:struct:qrwlock
/linux-4.1.27/arch/tile/include/asm/
H A Dspinlock_32.h83 static inline int arch_read_can_lock(arch_rwlock_t *rwlock) arch_read_can_lock()
91 static inline int arch_write_can_lock(arch_rwlock_t *rwlock) arch_write_can_lock()
99 void arch_read_lock(arch_rwlock_t *rwlock);
104 void arch_write_lock(arch_rwlock_t *rwlock);
109 int arch_read_trylock(arch_rwlock_t *rwlock);
114 int arch_write_trylock(arch_rwlock_t *rwlock);
119 void arch_read_unlock(arch_rwlock_t *rwlock);
124 void arch_write_unlock(arch_rwlock_t *rwlock);
H A Dspinlock_64.h99 static inline int arch_read_can_lock(arch_rwlock_t *rw) arch_read_can_lock()
108 static inline int arch_write_can_lock(arch_rwlock_t *rw) arch_write_can_lock()
113 extern void __read_lock_failed(arch_rwlock_t *rw);
115 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
122 extern void __write_lock_failed(arch_rwlock_t *rw, u32 val);
124 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
131 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
137 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
143 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
148 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
H A Dspinlock_types.h34 } arch_rwlock_t; typedef in typeref:struct:arch_rwlock
55 } arch_rwlock_t; typedef in typeref:struct:arch_rwlock
/linux-4.1.27/arch/mips/include/asm/
H A Dspinlock_types.h33 } arch_rwlock_t; typedef in typeref:struct:__anon2093
H A Dspinlock.h224 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
257 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
285 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
318 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
330 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
374 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
/linux-4.1.27/arch/arm/include/asm/
H A Dspinlock_types.h29 } arch_rwlock_t; typedef in typeref:struct:__anon185
H A Dspinlock.h141 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
160 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
184 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
212 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
231 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
252 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
/linux-4.1.27/arch/hexagon/include/asm/
H A Dspinlock.h40 static inline void arch_read_lock(arch_rwlock_t *lock) arch_read_lock()
55 static inline void arch_read_unlock(arch_rwlock_t *lock) arch_read_unlock()
70 static inline int arch_read_trylock(arch_rwlock_t *lock) arch_read_trylock()
87 static inline int arch_read_can_lock(arch_rwlock_t *rwlock) arch_read_can_lock()
92 static inline int arch_write_can_lock(arch_rwlock_t *rwlock) arch_write_can_lock()
98 static inline void arch_write_lock(arch_rwlock_t *lock) arch_write_lock()
113 static inline int arch_write_trylock(arch_rwlock_t *lock) arch_write_trylock()
131 static inline void arch_write_unlock(arch_rwlock_t *lock) arch_write_unlock()
H A Dspinlock_types.h36 } arch_rwlock_t; typedef in typeref:struct:__anon1424
/linux-4.1.27/include/linux/
H A Dspinlock_types_up.h33 } arch_rwlock_t; typedef in typeref:struct:__anon12451
H A Drwlock_types.h12 arch_rwlock_t raw_lock;
H A Dspinlock.h11 * asm/spinlock_types.h: contains the arch_spinlock_t/arch_rwlock_t and the
79 * Pull the arch_spinlock_t and arch_rwlock_t definitions:
/linux-4.1.27/arch/arm64/include/asm/
H A Dspinlock.h122 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
138 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
154 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
176 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
193 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
207 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
H A Dspinlock_types.h39 } arch_rwlock_t; typedef in typeref:struct:__anon315
/linux-4.1.27/arch/arc/include/asm/
H A Dspinlock.h107 static inline int arch_read_trylock(arch_rwlock_t *rw) arch_read_trylock()
129 static inline int arch_write_trylock(arch_rwlock_t *rw) arch_write_trylock()
150 static inline void arch_read_lock(arch_rwlock_t *rw) arch_read_lock()
156 static inline void arch_write_lock(arch_rwlock_t *rw) arch_write_lock()
162 static inline void arch_read_unlock(arch_rwlock_t *rw) arch_read_unlock()
169 static inline void arch_write_unlock(arch_rwlock_t *rw) arch_write_unlock()
H A Dspinlock_types.h30 } arch_rwlock_t; typedef in typeref:struct:__anon138
/linux-4.1.27/arch/s390/lib/
H A Dspinlock.c137 void _raw_read_lock_wait(arch_rwlock_t *rw) _raw_read_lock_wait()
165 int _raw_read_trylock_retry(arch_rwlock_t *rw) _raw_read_trylock_retry()
186 void _raw_write_lock_wait(arch_rwlock_t *rw, unsigned int prev) _raw_write_lock_wait()
215 void _raw_write_lock_wait(arch_rwlock_t *rw) _raw_write_lock_wait()
245 int _raw_write_trylock_retry(arch_rwlock_t *rw) _raw_write_trylock_retry()
/linux-4.1.27/arch/tile/lib/
H A Dspinlock_32.c104 int arch_read_trylock(arch_rwlock_t *rwlock) arch_read_trylock()
131 void arch_read_lock(arch_rwlock_t *rwlock) arch_read_lock()
139 void arch_read_unlock(arch_rwlock_t *rwlock) arch_read_unlock()
163 void arch_write_lock(arch_rwlock_t *rwlock) arch_write_lock()
218 int arch_write_trylock(arch_rwlock_t *rwlock) arch_write_trylock()
238 void arch_write_unlock(arch_rwlock_t *rwlock) arch_write_unlock()
H A Dspinlock_64.c77 void __read_lock_failed(arch_rwlock_t *rw) __read_lock_failed()
94 void __write_lock_failed(arch_rwlock_t *rw, u32 val) __write_lock_failed()
/linux-4.1.27/arch/powerpc/lib/
H A Dlocks.c51 void __rw_yield(arch_rwlock_t *rw) __rw_yield()
/linux-4.1.27/kernel/locking/
H A Dspinlock_debug.c44 lock->raw_lock = (arch_rwlock_t) __ARCH_RW_LOCK_UNLOCKED; __rwlock_init()

Completed in 405 milliseconds