Searched refs:SX_LOCK_UNLOCKED (Results 1 – 4 of 4) sorted by relevance
258 sx->sx_lock = SX_LOCK_UNLOCKED; in sx_init_flags()327 x = SX_LOCK_UNLOCKED; in _sx_xlock()364 x = SX_LOCK_UNLOCKED; in sx_try_xlock_int()368 if (x == SX_LOCK_UNLOCKED) in sx_try_xlock_int()601 while (x == SX_LOCK_UNLOCKED) { in _sx_xlock_hard()658 if (x == SX_LOCK_UNLOCKED) { in _sx_xlock_hard()753 if (x == SX_LOCK_UNLOCKED) { in _sx_xlock_hard()965 setx = SX_LOCK_UNLOCKED; in _sx_xunlock_hard()1357 setx = SX_LOCK_UNLOCKED; in _sx_sunlock_hard()1449 if (sx->sx_lock == SX_LOCK_UNLOCKED || in _sx_assert()[all …]
85 #define SX_LOCK_UNLOCKED SX_SHARERS_LOCK(0) macro161 uintptr_t v = SX_LOCK_UNLOCKED; in __sx_xlock()178 !atomic_fcmpset_rel_ptr(&sx->sx_lock, &x, SX_LOCK_UNLOCKED))) in __sx_xunlock()
85 ((lock)->sx_lock != SX_LOCK_UNLOCKED && \
84 #define rw_read_held(lock) ((lock)->sx_lock != SX_LOCK_UNLOCKED && ((lock)->sx_lock & SX_LOCK_SHARE…