Lines Matching refs:__ptr

41 __SIMPLELOCK_LOCKED_P(const __cpu_simple_lock_t *__ptr)  in __SIMPLELOCK_LOCKED_P()  argument
43 return *__ptr != __SIMPLELOCK_UNLOCKED; in __SIMPLELOCK_LOCKED_P()
47 __SIMPLELOCK_UNLOCKED_P(const __cpu_simple_lock_t *__ptr) in __SIMPLELOCK_UNLOCKED_P() argument
49 return *__ptr == __SIMPLELOCK_UNLOCKED; in __SIMPLELOCK_UNLOCKED_P()
53 __cpu_simple_lock_clear(__cpu_simple_lock_t *__ptr) in __cpu_simple_lock_clear() argument
56 *__ptr = __SIMPLELOCK_UNLOCKED; in __cpu_simple_lock_clear()
58 __atomic_store_n(__ptr, __SIMPLELOCK_UNLOCKED, __ATOMIC_RELAXED); in __cpu_simple_lock_clear()
63 __cpu_simple_lock_set(__cpu_simple_lock_t *__ptr) in __cpu_simple_lock_set() argument
66 *__ptr = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_set()
68 __atomic_store_n(__ptr, __SIMPLELOCK_LOCKED, __ATOMIC_RELAXED); in __cpu_simple_lock_set()
73 __cpu_simple_lock_init(__cpu_simple_lock_t *__ptr) in __cpu_simple_lock_init() argument
76 *__ptr = __SIMPLELOCK_UNLOCKED; in __cpu_simple_lock_init()
78 __atomic_store_n(__ptr, __SIMPLELOCK_UNLOCKED, __ATOMIC_RELAXED); in __cpu_simple_lock_init()
83 __cpu_simple_lock(__cpu_simple_lock_t *__ptr) in __cpu_simple_lock() argument
85 while (__atomic_exchange_n(__ptr, __SIMPLELOCK_LOCKED, __ATOMIC_ACQUIRE) == __SIMPLELOCK_LOCKED) { in __cpu_simple_lock()
91 __cpu_simple_lock_try(__cpu_simple_lock_t *__ptr) in __cpu_simple_lock_try() argument
93 return __atomic_exchange_n(__ptr, __SIMPLELOCK_LOCKED, __ATOMIC_ACQUIRE) == __SIMPLELOCK_UNLOCKED; in __cpu_simple_lock_try()
97 __cpu_simple_unlock(__cpu_simple_lock_t *__ptr) in __cpu_simple_unlock() argument
99 __atomic_store_n(__ptr, __SIMPLELOCK_UNLOCKED, __ATOMIC_RELEASE); in __cpu_simple_unlock()