Lines Matching defs:wq
142 #define wait_queue_is_queue(wq) \
143 ((wq)->wq_type == _WAIT_QUEUE_inited)
148 #define wait_queue_is_valid(wq) \
149 (((wq)->wq_type & ~1) == _WAIT_QUEUE_inited)
151 #define wait_queue_empty(wq) (queue_empty(&(wq)->wq_queue))
153 #define wait_queue_held(wq) (hw_lock_held(&(wq)->wq_interlock))
154 #define wait_queue_lock_try(wq) (hw_lock_try(&(wq)->wq_interlock))
169 static inline void wait_queue_lock(wait_queue_t wq) {
170 if (__improbable(hw_lock_to(&(wq)->wq_interlock, hwLockTimeOut * 2) == 0)) {
181 if ((wql_acquired = hw_lock_to(&(wq)->wq_interlock, hwLockTimeOut * 2)))
185 panic("wait queue deadlock - wq=%p, cpu=%d\n", wq, cpu_number());
189 static inline void wait_queue_unlock(wait_queue_t wq) {
190 assert(wait_queue_held(wq));
191 hw_lock_unlock(&(wq)->wq_interlock);