Lines Matching refs:Lock
58 typedef struct _usem Lock; typedef
59 __inline static void unlock(Lock *l) { in unlock()
65 __inline static void lock(Lock *l) { in lock()
74 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} };
78 typedef OSSpinLock Lock; typedef
79 __inline static void unlock(Lock *l) { in unlock()
84 __inline static void lock(Lock *l) { in lock()
87 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0
90 typedef _Atomic(uintptr_t) Lock; typedef
92 __inline static void unlock(Lock *l) { in unlock()
97 __inline static void lock(Lock *l) { in lock()
104 static Lock locks[SPINLOCK_COUNT];
109 static __inline Lock *lock_for_pointer(void *ptr) { in lock_for_pointer()
168 Lock *l = lock_for_pointer(src); in __atomic_load_c()
182 Lock *l = lock_for_pointer(dest); in __atomic_store_c()
200 Lock *l = lock_for_pointer(ptr); in __atomic_compare_exchange_c()
221 Lock *l = lock_for_pointer(ptr); in __atomic_exchange_c()
244 Lock *l = lock_for_pointer(src);\
259 Lock *l = lock_for_pointer(dest);\
272 Lock *l = lock_for_pointer(dest);\
288 Lock *l = lock_for_pointer(ptr);\
309 Lock *l = lock_for_pointer(ptr);\