Lines Matching refs:Lock
56 typedef struct _usem Lock; typedef
57 inline static void unlock(Lock *l) { in unlock()
63 inline static void lock(Lock *l) { in lock()
72 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} };
74 typedef _Atomic(uintptr_t) Lock; typedef
76 inline static void unlock(Lock *l) { in unlock()
81 inline static void lock(Lock *l) { in lock()
88 static Lock locks[SPINLOCK_COUNT];
93 static inline Lock *lock_for_pointer(void *ptr) { in lock_for_pointer()
152 Lock *l = lock_for_pointer(src); in __atomic_load_c()
166 Lock *l = lock_for_pointer(dest); in __atomic_store_c()
184 Lock *l = lock_for_pointer(ptr); in __atomic_compare_exchange_c()
205 Lock *l = lock_for_pointer(ptr); in __atomic_exchange_c()
228 Lock *l = lock_for_pointer(src);\
243 Lock *l = lock_for_pointer(dest);\
256 Lock *l = lock_for_pointer(dest);\
272 Lock *l = lock_for_pointer(ptr);\
293 Lock *l = lock_for_pointer(ptr);\