Lines Matching refs:COND
311 #define __wait_for(OP, COND, US, Wmin, Wmax) ({ \
319 /* Guarantee COND check prior to timeout */ \
321 if (COND) { \
336 #define _wait_for(COND, US, Wmin, Wmax) __wait_for(, (COND), (US), (Wmin), \
338 #define wait_for(COND, MS) _wait_for((COND), (MS) * 1000, 10, 1000)
347 #define _wait_for_atomic(COND, US, ATOMIC) \
361 /* Guarantee COND check prior to timeout */ \
363 if (COND) { \
384 #define wait_for_us(COND, US) \
389 ret__ = _wait_for((COND), (US), 10, 10); \
391 ret__ = _wait_for_atomic((COND), (US), 0); \
395 #define wait_for_atomic_us(COND, US) \
399 _wait_for_atomic((COND), (US), 1); \
402 #define wait_for_atomic(COND, MS) wait_for_atomic_us((COND), (MS) * 1000)