Home
last modified time | relevance | path

Searched defs:rw (Results 1 – 25 of 35) sorted by relevance

12

/arch/s390/include/asm/
Dspinlock.h132 static inline int arch_read_trylock_once(arch_rwlock_t *rw) in arch_read_trylock_once()
139 static inline int arch_write_trylock_once(arch_rwlock_t *rw) in arch_write_trylock_once()
182 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
191 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
196 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
206 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
217 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
223 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
232 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
239 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
[all …]
/arch/blackfin/include/asm/
Dspinlock.h51 static inline int arch_read_can_lock(arch_rwlock_t *rw) in arch_read_can_lock()
56 static inline int arch_write_can_lock(arch_rwlock_t *rw) in arch_write_can_lock()
61 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
68 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
73 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
78 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
85 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
90 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
/arch/sparc/include/asm/
Dspinlock_32.h79 static inline void __arch_read_lock(arch_rwlock_t *rw) in __arch_read_lock()
99 static inline void __arch_read_unlock(arch_rwlock_t *rw) in __arch_read_unlock()
119 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
142 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
162 static inline int __arch_read_trylock(arch_rwlock_t *rw) in __arch_read_trylock()
187 #define arch_read_lock_flags(rw, flags) arch_read_lock(rw) argument
188 #define arch_write_lock_flags(rw, flags) arch_write_lock(rw) argument
194 #define arch_read_can_lock(rw) (!((rw)->lock & 0xff)) argument
195 #define arch_write_can_lock(rw) (!(rw)->lock) argument
/arch/metag/include/asm/
Dspinlock_lock1.h67 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
85 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
101 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
109 static inline int arch_write_can_lock(arch_rwlock_t *rw) in arch_write_can_lock()
130 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
148 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
160 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
176 static inline int arch_read_can_lock(arch_rwlock_t *rw) in arch_read_can_lock()
Dspinlock_lnkget.h87 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
107 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
130 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
141 static inline int arch_write_can_lock(arch_rwlock_t *rw) in arch_write_can_lock()
167 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
186 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
204 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
229 static inline int arch_read_can_lock(arch_rwlock_t *rw) in arch_read_can_lock()
/arch/mn10300/include/asm/
Drwlock.h32 #define __build_read_lock_ptr(rw, helper) \ argument
51 #define __build_read_lock_const(rw, helper) \ argument
70 #define __build_read_lock(rw, helper) \ argument
78 #define __build_write_lock_ptr(rw, helper) \ argument
97 #define __build_write_lock_const(rw, helper) \ argument
116 #define __build_write_lock(rw, helper) \ argument
Dspinlock.h117 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
130 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
143 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
155 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
/arch/parisc/include/asm/
Dspinlock.h68 static __inline__ void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
80 static __inline__ void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
92 static __inline__ int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
118 static __inline__ void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
140 static __inline__ void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
148 static __inline__ int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
172 static __inline__ int arch_read_can_lock(arch_rwlock_t *rw) in arch_read_can_lock()
181 static __inline__ int arch_write_can_lock(arch_rwlock_t *rw) in arch_write_can_lock()
/arch/arc/include/asm/
Dspinlock.h81 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
113 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
140 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
175 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
203 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
225 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
328 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
353 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
377 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
383 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
[all …]
/arch/tile/include/asm/
Dspinlock_64.h100 static inline int arch_read_can_lock(arch_rwlock_t *rw) in arch_read_can_lock()
109 static inline int arch_write_can_lock(arch_rwlock_t *rw) in arch_write_can_lock()
116 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
125 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
132 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
138 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
144 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
149 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
/arch/powerpc/include/asm/
Dspinlock.h184 #define arch_read_can_lock(rw) ((rw)->lock >= 0) argument
185 #define arch_write_can_lock(rw) (!(rw)->lock) argument
199 static inline long __arch_read_trylock(arch_rwlock_t *rw) in __arch_read_trylock()
223 static inline long __arch_write_trylock(arch_rwlock_t *rw) in __arch_write_trylock()
243 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
257 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
271 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
276 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
281 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
298 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
Ddma-mapping.h57 #define __dma_sync(addr, size, rw) ((void)0) argument
58 #define __dma_sync_page(pg, off, sz, rw) ((void)0) argument
/arch/xtensa/include/asm/
Dspinlock.h102 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
120 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
137 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
149 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
168 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
188 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
/arch/sh/include/asm/
Dspinlock-cas.h68 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
75 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
82 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
87 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
92 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
100 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
Dspinlock-llsc.h104 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
122 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
138 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
156 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
166 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
189 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
/arch/arm64/include/asm/
Dspinlock.h152 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
179 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
201 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
228 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
256 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
275 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
/arch/ia64/include/asm/
Dspinlock.h131 #define arch_read_can_lock(rw) (*(volatile int *)(rw) >= 0) argument
132 #define arch_write_can_lock(rw) (*(volatile int *)(rw) == 0) argument
164 #define arch_read_lock_flags(rw, flags) arch_read_lock(rw) argument
166 #define arch_read_lock(rw) \ argument
179 #define arch_read_unlock(rw) \ argument
212 #define arch_write_lock(rw) arch_write_lock_flags(rw, 0) argument
214 #define arch_write_trylock(rw) \ argument
248 #define arch_write_trylock(rw) \ argument
/arch/arm/include/asm/
Dspinlock.h141 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
160 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
184 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
212 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
231 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
252 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
/arch/s390/lib/
Dspinlock.c151 void _raw_read_lock_wait(arch_rwlock_t *rw) in _raw_read_lock_wait()
176 int _raw_read_trylock_retry(arch_rwlock_t *rw) in _raw_read_trylock_retry()
194 void _raw_write_lock_wait(arch_rwlock_t *rw, int prev) in _raw_write_lock_wait()
221 void _raw_write_lock_wait(arch_rwlock_t *rw) in _raw_write_lock_wait()
249 int _raw_write_trylock_retry(arch_rwlock_t *rw) in _raw_write_trylock_retry()
/arch/tile/lib/
Dspinlock_64.c70 void __read_lock_failed(arch_rwlock_t *rw) in __read_lock_failed()
87 void __write_lock_failed(arch_rwlock_t *rw, u32 val) in __write_lock_failed()
/arch/m32r/include/asm/
Dspinlock.h153 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
204 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
257 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
279 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
/arch/sparc/kernel/
Dprocess_32.c124 struct reg_window32 *rw = (struct reg_window32 *) r->u_regs[14]; in show_regs() local
155 struct reg_window32 *rw; in show_stack() local
466 struct reg_window32 *rw; local
Dprocess_64.c111 struct reg_window32 __user *rw; in show_regwindow32() local
140 struct reg_window __user *rw; in show_regwindow() local
219 struct reg_window *rw; in __global_reg_self() local
756 struct reg_window *rw; in get_wchan() local
/arch/powerpc/lib/
Dlocks.c51 void __rw_yield(arch_rwlock_t *rw) in __rw_yield()
/arch/mips/lasat/
Dpicvue.h13 u32 rw; member

12