Lines Matching defs:wq
139 #define wait_queue_is_queue(wq) \
140 ((wq)->wq_type == _WAIT_QUEUE_inited)
145 #define wait_queue_is_valid(wq) \
146 (((wq)->wq_type & ~1) == _WAIT_QUEUE_inited)
148 #define wait_queue_empty(wq) (queue_empty(&(wq)->wq_queue))
150 #define wait_queue_held(wq) (hw_lock_held(&(wq)->wq_interlock))
151 #define wait_queue_lock_try(wq) (hw_lock_try(&(wq)->wq_interlock))
166 static inline void wait_queue_lock(wait_queue_t wq) {
167 if (!hw_lock_to(&(wq)->wq_interlock, hwLockTimeOut * 2))
168 panic("wait queue deadlock - wq=%p, cpu=%d\n", wq, cpu_number(
172 static inline void wait_queue_unlock(wait_queue_t wq) {
173 assert(wait_queue_held(wq));
179 i386_lock_unlock_with_flush(&(wq)->wq_interlock);
181 hw_lock_unlock(&(wq)->wq_interlock);