Lines Matching defs:lp
81 #define MUTEX_OWNER(lp) ((kthread_id_t)((lp)->m_owner & MUTEX_THREAD))
84 #define MUTEX_SET_WAITERS(lp) \
87 while ((old = (lp)->m_owner) != 0 && \
88 casip(&(lp)->m_owner, old, old | MUTEX_WAITERS) != old) \
92 #define MUTEX_HAS_WAITERS(lp) ((lp)->m_owner & MUTEX_WAITERS)
93 #define MUTEX_CLEAR_LOCK_AND_WAITERS(lp) (lp)->m_owner = 0
95 #define MUTEX_SET_TYPE(lp, type)
96 #define MUTEX_TYPE_ADAPTIVE(lp) (((lp)->m_owner & MUTEX_DEAD) == 0)
97 #define MUTEX_TYPE_SPIN(lp) ((lp)->m_spin.m_dummylock == LOCK_HELD_VALUE)
99 #define MUTEX_DESTROY(lp) \
100 (lp)->m_owner = ((uintptr_t)curthread | MUTEX_DEAD)