Lines Matching refs:wq
121 static inline int swait_active(struct swait_queue_head *wq) in swait_active() argument
123 return !list_empty(&wq->task_list); in swait_active()
134 static inline bool swq_has_sleeper(struct swait_queue_head *wq) in swq_has_sleeper() argument
144 return swait_active(wq); in swq_has_sleeper()
158 #define ___swait_event(wq, condition, state, ret, cmd) \ argument
166 long __int = prepare_to_swait_event(&wq, &__wait, state);\
178 finish_swait(&wq, &__wait); \
182 #define __swait_event(wq, condition) \ argument
183 (void)___swait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, \
186 #define swait_event_exclusive(wq, condition) \ argument
190 __swait_event(wq, condition); \
193 #define __swait_event_timeout(wq, condition, timeout) \ argument
194 ___swait_event(wq, ___wait_cond_timeout(condition), \
198 #define swait_event_timeout_exclusive(wq, condition, timeout) \ argument
202 __ret = __swait_event_timeout(wq, condition, timeout); \
206 #define __swait_event_interruptible(wq, condition) \ argument
207 ___swait_event(wq, condition, TASK_INTERRUPTIBLE, 0, \
210 #define swait_event_interruptible_exclusive(wq, condition) \ argument
214 __ret = __swait_event_interruptible(wq, condition); \
218 #define __swait_event_interruptible_timeout(wq, condition, timeout) \ argument
219 ___swait_event(wq, ___wait_cond_timeout(condition), \
223 #define swait_event_interruptible_timeout_exclusive(wq, condition, timeout)\ argument
227 __ret = __swait_event_interruptible_timeout(wq, \
232 #define __swait_event_idle(wq, condition) \ argument
233 (void)___swait_event(wq, condition, TASK_IDLE, 0, schedule())
247 #define swait_event_idle_exclusive(wq, condition) \ argument
251 __swait_event_idle(wq, condition); \
254 #define __swait_event_idle_timeout(wq, condition, timeout) \ argument
255 ___swait_event(wq, ___wait_cond_timeout(condition), \
278 #define swait_event_idle_timeout_exclusive(wq, condition, timeout) \ argument
282 __ret = __swait_event_idle_timeout(wq, \