/netbsd-src/sys/sys/ |
H A D | common_lock.h | 66 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set() 68 __atomic_store_n(__ptr, __SIMPLELOCK_LOCKED, __ATOMIC_RELAXED); in __cpu_simple_lock_set() 85 while (__atomic_exchange_n(__ptr, __SIMPLELOCK_LOCKED, __ATOMIC_ACQUIRE) == __SIMPLELOCK_LOCKED) { in __cpu_simple_lock() 93 return __atomic_exchange_n(__ptr, __SIMPLELOCK_LOCKED, __ATOMIC_ACQUIRE) == __SIMPLELOCK_UNLOCKED; in __cpu_simple_lock_try()
|
/netbsd-src/sys/arch/arm/include/ |
H A D | lock.h | 47 return *__ptr == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P() 65 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set() 172 || __arm_store_exclusive(__alp, __SIMPLELOCK_LOCKED)); in __cpu_simple_lock() 175 while (__swp(__SIMPLELOCK_LOCKED, __alp) != __SIMPLELOCK_UNLOCKED) in __cpu_simple_lock() 192 } while (__arm_store_exclusive(__alp, __SIMPLELOCK_LOCKED)); in __cpu_simple_lock_try() 196 return (__swp(__SIMPLELOCK_LOCKED, __alp) == __SIMPLELOCK_UNLOCKED); in __cpu_simple_lock_try()
|
H A D | types.h | 79 #define __SIMPLELOCK_LOCKED 1 macro
|
/netbsd-src/sys/arch/powerpc/include/ |
H A D | lock.h | 42 return *__ptr == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P() 60 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set() 92 : "r"(alp), "I"(__SIMPLELOCK_UNLOCKED), "r"(__SIMPLELOCK_LOCKED) in __cpu_simple_lock() 119 : "r"(alp), "I"(__SIMPLELOCK_UNLOCKED), "r"(__SIMPLELOCK_LOCKED), in __cpu_simple_lock_try()
|
H A D | types.h | 78 #define __SIMPLELOCK_LOCKED 1 macro
|
/netbsd-src/sys/arch/mips/include/ |
H A D | lock.h | 67 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set() 98 : "i" (__SIMPLELOCK_LOCKED), "m" (*lp)); in __cpu_simple_lock_try() 128 __SIMPLELOCK_UNLOCKED, __SIMPLELOCK_LOCKED) == in __cpu_simple_lock_try() 146 while (*lp == __SIMPLELOCK_LOCKED) in __cpu_simple_lock()
|
/netbsd-src/sys/arch/alpha/include/ |
H A D | lock.h | 47 return *__ptr == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P() 65 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set() 103 : "i" (__SIMPLELOCK_LOCKED), "m" (*alp) in __cpu_simple_lock() 128 : "i" (__SIMPLELOCK_LOCKED), "m" (*alp) in __cpu_simple_lock_try()
|
H A D | types.h | 68 #define __SIMPLELOCK_LOCKED 1 macro
|
/netbsd-src/sys/arch/usermode/include/ |
H A D | lock.h | 41 if (*lockp == __SIMPLELOCK_LOCKED) in __cpu_simple_lock_try() 43 *lockp = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_try() 63 return *lockp == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P()
|
H A D | types.h | 86 #define __SIMPLELOCK_LOCKED 1 macro
|
/netbsd-src/sys/arch/ia64/include/ |
H A D | lock.h | 42 return *__ptr == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P() 55 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set() 93 val = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_try()
|
H A D | types.h | 66 #define __SIMPLELOCK_LOCKED 1 macro
|
/netbsd-src/sys/arch/x86/include/ |
H A D | lock.h | 44 return *__ptr == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P() 57 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set() 98 val = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_try()
|
/netbsd-src/sys/arch/or1k/include/ |
H A D | lock.h | 66 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set() 109 : [newval] "r" (__SIMPLELOCK_LOCKED), in __cpu_simple_lock() 131 : [newval] "r" (__SIMPLELOCK_LOCKED), in __cpu_simple_lock_try()
|
H A D | types.h | 68 #define __SIMPLELOCK_LOCKED 1 macro
|
/netbsd-src/sys/arch/m68k/include/ |
H A D | lock.h | 42 return *__ptr == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P() 68 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set()
|
H A D | types.h | 68 #define __SIMPLELOCK_LOCKED 0x80 /* result of `tas' insn */ macro
|
/netbsd-src/sys/arch/acorn32/include/ |
H A D | lock.h | 65 while (__swp(__SIMPLELOCK_LOCKED, alp) != __SIMPLELOCK_UNLOCKED) in __cpu_simple_lock() 75 __result = __swp(__SIMPLELOCK_LOCKED, alp) == __SIMPLELOCK_UNLOCKED; in __cpu_simple_lock_try()
|
/netbsd-src/sys/arch/sh3/include/ |
H A D | lock.h | 51 return *__ptr == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P() 69 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set()
|
H A D | types.h | 69 #define __SIMPLELOCK_LOCKED 0x80 macro
|
/netbsd-src/sys/arch/vax/include/ |
H A D | lock.h | 44 return *__ptr == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P() 62 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set()
|
H A D | types.h | 69 #define __SIMPLELOCK_LOCKED 1 macro
|
/netbsd-src/sys/arch/sparc/include/ |
H A D | lock.h | 77 return *__ptr == __SIMPLELOCK_LOCKED; in __SIMPLELOCK_LOCKED_P() 95 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set()
|
/netbsd-src/sys/arch/hppa/include/ |
H A D | types.h | 83 #define __SIMPLELOCK_LOCKED { { 0, 0, 0, 0 } } macro
|
/netbsd-src/sys/arch/amd64/include/ |
H A D | types.h | 74 #define __SIMPLELOCK_LOCKED 1 macro
|