Lines Matching refs:Lock
60 typedef struct _usem Lock; typedef
61 __inline static void unlock(Lock *l) { in unlock()
67 __inline static void lock(Lock *l) { in lock()
77 static Lock locks[SPINLOCK_COUNT] = {[0 ... SPINLOCK_COUNT - 1] = {0, 1, 0}};
81 typedef OSSpinLock Lock; typedef
82 __inline static void unlock(Lock *l) { OSSpinLockUnlock(l); } in unlock()
85 __inline static void lock(Lock *l) { OSSpinLockLock(l); } in lock()
86 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0
89 typedef _Atomic(uintptr_t) Lock; typedef
91 __inline static void unlock(Lock *l) { in unlock()
96 __inline static void lock(Lock *l) { in lock()
103 static Lock locks[SPINLOCK_COUNT];
107 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()
201 Lock *l = lock_for_pointer(ptr); in __atomic_compare_exchange_c()
222 Lock *l = lock_for_pointer(ptr); in __atomic_exchange_c()
252 Lock *l = lock_for_pointer(src); \
267 Lock *l = lock_for_pointer(dest); \
280 Lock *l = lock_for_pointer(dest); \
296 Lock *l = lock_for_pointer(ptr); \
317 Lock *l = lock_for_pointer(ptr); \