Lines Matching refs:COND
241 #define __wait_for(OP, COND, US, Wmin, Wmax) ({ \
249 /* Guarantee COND check prior to timeout */ \
251 if (COND) { \
266 #define _wait_for(COND, US, Wmin, Wmax) __wait_for(, (COND), (US), (Wmin), \
268 #define wait_for(COND, MS) _wait_for((COND), (MS) * 1000, 10, 1000)
277 #define _wait_for_atomic(COND, US, ATOMIC) \
291 /* Guarantee COND check prior to timeout */ \
293 if (COND) { \
314 #define wait_for_us(COND, US) \
319 ret__ = _wait_for((COND), (US), 10, 10); \
321 ret__ = _wait_for_atomic((COND), (US), 0); \
325 #define wait_for_atomic_us(COND, US) \
329 _wait_for_atomic((COND), (US), 1); \
332 #define wait_for_atomic(COND, MS) wait_for_atomic_us((COND), (MS) * 1000)