Lines Matching full:condition
158 #define ___swait_event(wq, condition, state, ret, cmd) \ argument
168 if (condition) \
182 #define __swait_event(wq, condition) \ argument
183 (void)___swait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, \
186 #define swait_event_exclusive(wq, condition) \ argument
188 if (condition) \
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
201 if (!___wait_cond_timeout(condition)) \
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
213 if (!(condition)) \
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
226 if (!___wait_cond_timeout(condition)) \
228 condition, timeout); \
232 #define __swait_event_idle(wq, condition) \ argument
233 (void)___swait_event(wq, condition, TASK_IDLE, 0, schedule())
238 * @condition: a C expression for the event to wait for
240 * The process is put to sleep (TASK_IDLE) until the @condition evaluates to
241 * true. The @condition is checked each time the waitqueue @wq is woken up.
244 * condition and doesn't want to contribute to system load. Signals are
247 #define swait_event_idle_exclusive(wq, condition) \ argument
249 if (condition) \
251 __swait_event_idle(wq, condition); \
254 #define __swait_event_idle_timeout(wq, condition, timeout) \ argument
255 ___swait_event(wq, ___wait_cond_timeout(condition), \
262 * @condition: a C expression for the event to wait for
265 * The process is put to sleep (TASK_IDLE) until the @condition evaluates to
266 * true. The @condition is checked each time the waitqueue @wq is woken up.
269 * condition and doesn't want to contribute to system load. Signals are
273 * 0 if the @condition evaluated to %false after the @timeout elapsed,
274 * 1 if the @condition evaluated to %true after the @timeout elapsed,
275 * or the remaining jiffies (at least 1) if the @condition evaluated
278 #define swait_event_idle_timeout_exclusive(wq, condition, timeout) \ argument
281 if (!___wait_cond_timeout(condition)) \
283 condition, timeout); \