Searched refs:MTX_UNOWNED (Results 1 – 3 of 3) sorted by relevance
69 #define MTX_UNOWNED 0x00000000 /* Cookie for free mutex */ macro215 atomic_cmpset_acq_ptr(&(mp)->mtx_lock, MTX_UNOWNED, (tid))222 atomic_cmpset_rel_ptr(&(mp)->mtx_lock, (tid), MTX_UNOWNED)226 atomic_store_rel_ptr(&(mp)->mtx_lock, MTX_UNOWNED)229 atomic_fcmpset_rel_ptr(&(mp)->mtx_lock, (vp), MTX_UNOWNED)240 uintptr_t _v = MTX_UNOWNED; \257 uintptr_t _v = MTX_UNOWNED; \270 if (((mp)->mtx_lock != MTX_UNOWNED || !_mtx_obtain_lock((mp), _tid))) {\288 KASSERT((mp)->mtx_lock == MTX_UNOWNED, ("corrupt spinlock")); \298 if ((mp)->mtx_lock != MTX_UNOWNED) { \[all …]
93 #define mtx_unowned(m) ((m)->mtx_lock == MTX_UNOWNED)298 v = MTX_UNOWNED; in __mtx_lock_flags()363 v = MTX_UNOWNED; in __mtx_lock_spin_flags()459 v = MTX_UNOWNED; in _mtx_trylock_flags_int()463 if (v == MTX_UNOWNED) in _mtx_trylock_flags_int()543 while (v == MTX_UNOWNED) { in __mtx_lock_sleep()558 if (__predict_false(v == MTX_UNOWNED)) in __mtx_lock_sleep()598 if (v == MTX_UNOWNED) { in __mtx_lock_sleep()625 } while (v != MTX_UNOWNED && TD_IS_RUNNING(owner)); in __mtx_lock_sleep()641 if (v == MTX_UNOWNED) { in __mtx_lock_sleep()[all …]
1832 sp->kdb_locked = sc->video_mtx.mtx_lock == MTX_UNOWNED || in sccnscrlock()