Lines Matching defs:cond
49 #define might_sleep_if(cond) do { \
50 if (cond) { might_sleep(); } \
145 * Returns -ERESTARTSYS for a signal, 0 if cond is false after timeout, 1 if
146 * cond is true after timeout, remaining jiffies (> 0) if cond is true before
149 #define __wait_event_common(wqh, cond, timeout, state, lock) ({ \
157 if (cond) \
167 __ret = !!(cond); \
180 #define wait_event(wqh, cond) do { \
181 (void) __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \
185 #define wait_event_timeout(wqh, cond, timeout) ({ \
186 __wait_event_common(wqh, cond, timeout, TASK_UNINTERRUPTIBLE, \
190 #define wait_event_killable(wqh, cond) ({ \
191 __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \
195 #define wait_event_interruptible(wqh, cond) ({ \
196 __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \
200 #define wait_event_interruptible_timeout(wqh, cond, timeout) ({ \
201 __wait_event_common(wqh, cond, timeout, TASK_INTERRUPTIBLE, \
208 #define wait_event_interruptible_locked(wqh, cond) ({ \
212 __ret = __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \
221 #define wait_event_interruptible_lock_irq(wqh, cond, lock) ({ \
222 __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \
229 #define wait_event_lock_irq(wqh, cond, lock) ({ \
230 __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \