Lines Matching full:condition

253 #define ___wait_var_event(var, condition, state, exclusive, ret, cmd)	\  argument
266 if (condition) \
280 #define __wait_var_event(var, condition) \ argument
281 ___wait_var_event(var, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
283 #define __wait_var_event_io(var, condition) \ argument
284 ___wait_var_event(var, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
290 * @condition: the condition to wait for
292 * Wait for a @condition to be true, only re-checking when a wake up is
294 * not be directly related to the given condition, but usually is).
299 * The condition should normally use smp_load_acquire() or a similarly
301 * condition became true will be visible after the wait completes.
303 #define wait_var_event(var, condition) \ argument
306 if (condition) \
308 __wait_var_event(var, condition); \
314 * @condition: the condition to wait for
316 * Wait for an IO related @condition to be true, only re-checking when a
318 * which need not be directly related to the given condition, but
327 * The condition should normally use smp_load_acquire() or a similarly
329 * condition became true will be visible after the wait completes.
331 #define wait_var_event_io(var, condition) \ argument
334 if (condition) \
336 __wait_var_event_io(var, condition); \
339 #define __wait_var_event_killable(var, condition) \ argument
340 ___wait_var_event(var, condition, TASK_KILLABLE, 0, 0, \
346 * @condition: the condition to wait for
348 * Wait for a @condition to be true or a fatal signal to be received,
349 * only re-checking the condition when a wake up is received for the given
351 * to the given condition, but usually is).
354 * 0 if the condition became true, or %-ERESTARTSYS if a fatal signal
357 * The condition should normally use smp_load_acquire() or a similarly
359 * condition became true will be visible after the wait completes.
361 #define wait_var_event_killable(var, condition) \ argument
365 if (!(condition)) \
366 __ret = __wait_var_event_killable(var, condition); \
370 #define __wait_var_event_timeout(var, condition, timeout) \ argument
371 ___wait_var_event(var, ___wait_cond_timeout(condition), \
378 * @condition: the condition to wait for
381 * Wait for a @condition to be true or a timeout to expire, only
382 * re-checking the condition when a wake up is received for the given
384 * to the given condition, but usually is).
387 * the timeout expired and the condition was still false, or the
388 * remaining time left in the timeout (but at least 1) if the condition
391 * The condition should normally use smp_load_acquire() or a similarly
393 * condition became true will be visible after the wait completes.
395 #define wait_var_event_timeout(var, condition, timeout) \ argument
399 if (!___wait_cond_timeout(condition)) \
400 __ret = __wait_var_event_timeout(var, condition, timeout); \
404 #define __wait_var_event_interruptible(var, condition) \ argument
405 ___wait_var_event(var, condition, TASK_INTERRUPTIBLE, 0, 0, \
411 * @condition: the condition to wait for
413 * Wait for a @condition to be true or a signal to be received, only
414 * re-checking the condition when a wake up is received for the given
416 * to the given condition, but usually is).
419 * the condition became true, or %-ERESTARTSYS if a signal was received.
421 * The condition should normally use smp_load_acquire() or a similarly
423 * condition became true will be visible after the wait completes.
425 #define wait_var_event_interruptible(var, condition) \ argument
429 if (!(condition)) \
430 __ret = __wait_var_event_interruptible(var, condition); \
437 * @condition: condition to wait for
442 * Wait for a condition which can only be reliably tested while holding
443 * a lock. The variables assessed in the condition will normal be updated
452 * reclaimed before testing the condition again. The functions used to
459 #define wait_var_event_any_lock(var, condition, lock, type, state) \ argument
462 if (!(condition)) \
463 __ret = ___wait_var_event(var, condition, state, 0, 0, \
473 * @condition: condition to wait for
476 * Wait for a condition which can only be reliably tested while holding
477 * a spinlock. The variables assessed in the condition will normal be updated
486 * reclaimed before testing the condition again.
488 #define wait_var_event_spinlock(var, condition, lock) \ argument
489 wait_var_event_any_lock(var, condition, lock, spin, TASK_UNINTERRUPTIBLE)
494 * @condition: condition to wait for
497 * Wait for a condition which can only be reliably tested while holding
498 * a mutex. The variables assessed in the condition will normal be
507 * reclaimed before testing the condition again.
509 #define wait_var_event_mutex(var, condition, lock) \ argument
510 wait_var_event_any_lock(var, condition, lock, mutex, TASK_UNINTERRUPTIBLE)
515 * @cond: the condition which afirms this is safe