Home
last modified time | relevance | path

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

12

/arch/blackfin/include/asm/
Dspinlock.h55 static inline int arch_read_can_lock(arch_rwlock_t *rw) in arch_read_can_lock()
60 static inline int arch_write_can_lock(arch_rwlock_t *rw) in arch_write_can_lock()
65 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
72 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
77 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()
89 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
94 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
/arch/sparc/include/asm/
Dspinlock_32.h80 static inline void __arch_read_lock(arch_rwlock_t *rw) in __arch_read_lock()
100 static inline void __arch_read_unlock(arch_rwlock_t *rw) in __arch_read_unlock()
120 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
143 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
163 static inline int __arch_read_trylock(arch_rwlock_t *rw) in __arch_read_trylock()
188 #define arch_read_lock_flags(rw, flags) arch_read_lock(rw) argument
189 #define arch_write_lock_flags(rw, flags) arch_write_lock(rw) argument
195 #define arch_read_can_lock(rw) (!((rw)->lock & 0xff)) argument
196 #define arch_write_can_lock(rw) (!(rw)->lock) argument
Dspinlock_64.h216 #define arch_read_can_lock(rw) (!((rw)->lock & 0x80000000UL)) argument
217 #define arch_write_can_lock(rw) (!(rw)->lock) argument
/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.h116 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
129 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
142 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
154 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
/arch/tile/include/asm/
Dspinlock_64.h99 static inline int arch_read_can_lock(arch_rwlock_t *rw) in arch_read_can_lock()
108 static inline int arch_write_can_lock(arch_rwlock_t *rw) in arch_write_can_lock()
115 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
124 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
131 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
137 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
143 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
148 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
/arch/powerpc/include/asm/
Dspinlock.h170 #define arch_read_can_lock(rw) ((rw)->lock >= 0) argument
171 #define arch_write_can_lock(rw) (!(rw)->lock) argument
185 static inline long __arch_read_trylock(arch_rwlock_t *rw) in __arch_read_trylock()
209 static inline long __arch_write_trylock(arch_rwlock_t *rw) in __arch_write_trylock()
229 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
243 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
257 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
262 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
267 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
284 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
Ddma-mapping.h56 #define __dma_sync(addr, size, rw) ((void)0) argument
57 #define __dma_sync_page(pg, off, sz, rw) ((void)0) argument
/arch/s390/include/asm/
Dspinlock.h115 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
123 static inline void arch_read_lock_flags(arch_rwlock_t *rw, unsigned long flags) in arch_read_lock_flags()
131 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
142 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
148 static inline void arch_write_lock_flags(arch_rwlock_t *rw, unsigned long flags) in arch_write_lock_flags()
154 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
159 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
168 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
/arch/parisc/include/asm/
Dspinlock.h73 static __inline__ void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
85 static __inline__ void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
97 static __inline__ int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
123 static __inline__ void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
145 static __inline__ void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
153 static __inline__ int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
177 static __inline__ int arch_read_can_lock(arch_rwlock_t *rw) in arch_read_can_lock()
186 static __inline__ int arch_write_can_lock(arch_rwlock_t *rw) in arch_write_can_lock()
/arch/mips/include/asm/
Dspinlock.h219 #define arch_read_can_lock(rw) ((rw)->lock >= 0) argument
225 #define arch_write_can_lock(rw) (!(rw)->lock) argument
227 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
272 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
306 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
348 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
360 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
404 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
/arch/s390/lib/
Dspinlock.c115 void _raw_read_lock_wait(arch_rwlock_t *rw) in _raw_read_lock_wait()
134 void _raw_read_lock_wait_flags(arch_rwlock_t *rw, unsigned long flags) in _raw_read_lock_wait_flags()
155 int _raw_read_trylock_retry(arch_rwlock_t *rw) in _raw_read_trylock_retry()
171 void _raw_write_lock_wait(arch_rwlock_t *rw) in _raw_write_lock_wait()
188 void _raw_write_lock_wait_flags(arch_rwlock_t *rw, unsigned long flags) in _raw_write_lock_wait_flags()
207 int _raw_write_trylock_retry(arch_rwlock_t *rw) in _raw_write_trylock_retry()
/arch/cris/include/arch-v32/arch/
Dspinlock.h69 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
77 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
85 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
92 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
100 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
112 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
/arch/sh/include/asm/
Dspinlock.h111 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
129 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
145 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
163 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
173 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
196 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
/arch/arm/include/asm/
Dspinlock.h138 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
156 static inline int arch_write_trylock(arch_rwlock_t *rw) in arch_write_trylock()
176 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
204 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
222 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
242 static inline int arch_read_trylock(arch_rwlock_t *rw) in arch_read_trylock()
/arch/ia64/include/asm/
Dspinlock.h142 #define arch_read_can_lock(rw) (*(volatile int *)(rw) >= 0) argument
143 #define arch_write_can_lock(rw) (*(volatile int *)(rw) == 0) argument
175 #define arch_read_lock_flags(rw, flags) arch_read_lock(rw) argument
177 #define arch_read_lock(rw) \ argument
190 #define arch_read_unlock(rw) \ argument
223 #define arch_write_lock(rw) arch_write_lock_flags(rw, 0) argument
225 #define arch_write_trylock(rw) \ argument
259 #define arch_write_trylock(rw) \ argument
/arch/m32r/include/asm/
Dspinlock.h152 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
203 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
256 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
278 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
/arch/tile/lib/
Dspinlock_64.c77 void __read_lock_failed(arch_rwlock_t *rw) in __read_lock_failed()
94 void __write_lock_failed(arch_rwlock_t *rw, u32 val) in __write_lock_failed()
/arch/x86/include/asm/
Dspinlock.h175 static inline void arch_read_lock(arch_rwlock_t *rw) in arch_read_lock()
184 static inline void arch_write_lock(arch_rwlock_t *rw) in arch_write_lock()
214 static inline void arch_read_unlock(arch_rwlock_t *rw) in arch_read_unlock()
220 static inline void arch_write_unlock(arch_rwlock_t *rw) in arch_write_unlock()
/arch/powerpc/lib/
Dlocks.c50 void __rw_yield(arch_rwlock_t *rw) in __rw_yield()
/arch/sparc/kernel/
Dprocess_32.c266 struct reg_window32 *rw = (struct reg_window32 *) r->u_regs[14]; in show_regs() local
295 struct reg_window32 *rw; in show_stack() local
689 struct reg_window32 *rw; local
Dprocess_64.c119 struct reg_window32 __user *rw; in show_regwindow32() local
148 struct reg_window __user *rw; in show_regwindow() local
221 struct reg_window *rw; in __global_reg_self() local
757 struct reg_window *rw; in get_wchan() local
Dtraps_32.c69 struct reg_window32 *rw = (struct reg_window32 *)regs->u_regs[UREG_FP]; in die_if_kernel() local
/arch/mips/lasat/
Dpicvue.h12 u32 rw; member
/arch/sh/drivers/pci/
Dcommon.c32 #define EARLY_PCI_OP(rw, size, type) \ argument

12