Lines Matching refs:Lock
66 typedef struct _usem Lock; typedef
67 __inline static void unlock(Lock *l) { in unlock()
73 __inline static void lock(Lock *l) { in lock()
83 static Lock locks[SPINLOCK_COUNT] = {[0 ... SPINLOCK_COUNT - 1] = {0, 1, 0}};
87 typedef OSSpinLock Lock; typedef
88 __inline static void unlock(Lock *l) { OSSpinLockUnlock(l); } in unlock()
91 __inline static void lock(Lock *l) { OSSpinLockLock(l); } in lock()
92 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0
97 typedef _Atomic(uintptr_t) Lock; typedef
99 __inline static void unlock(Lock *l) { in unlock()
104 __inline static void lock(Lock *l) { in lock()
111 static Lock locks[SPINLOCK_COUNT];
115 static __inline Lock *lock_for_pointer(void *ptr) { in lock_for_pointer()
184 Lock *l = lock_for_pointer(src); in __atomic_load_c()
198 Lock *l = lock_for_pointer(dest); in __atomic_store_c()
217 Lock *l = lock_for_pointer(ptr); in __atomic_compare_exchange_c()
238 Lock *l = lock_for_pointer(ptr); in __atomic_exchange_c()
268 Lock *l = lock_for_pointer(src); \
283 Lock *l = lock_for_pointer(dest); \
296 Lock *l = lock_for_pointer(dest); \
312 Lock *l = lock_for_pointer(ptr); \
333 Lock *l = lock_for_pointer(ptr); \
345 Lock *l = lock_for_pointer(ptr); \