Lines Matching refs:CONDITION
108 * interlocked by a spin lock. It also polls the condition at every
117 * . 0 if the condition was true before or just after the timeout.
125 #define DRM_SPIN_WAIT_ON(RET, Q, INTERLOCK, TICKS, CONDITION) do \
136 if (CONDITION) { \
175 * . zero if the condition evaluated
180 * . 0 if the condition was false after the timeout,
181 * . 1 if the condition was true just after the timeout, or
182 * . the number of ticks remaining if the condition was true before the
199 #define _DRM_WAIT_UNTIL(RET, WAIT, Q, INTERLOCK, CONDITION) do \
205 if (CONDITION) { \
227 #define _DRM_TIMED_WAIT_UNTIL(RET, WAIT, Q, INTERLOCK, TICKS, CONDITION) do \
237 if (CONDITION) { \
260 (RET) = (CONDITION) ? 1 : 0; \
276 * satisfied condition while holding a different spin lock.
279 #define _DRM_SPIN_WAIT_UNTIL(RET, WAIT, Q, INTERLOCK, CONDITION) do \
286 while (!(CONDITION)) { \
302 #define _DRM_SPIN_TIMED_WAIT_UNTIL(RET, WAIT, Q, INTERLOCK, TICKS, CONDITION) \
314 if (CONDITION) { \
337 (RET) = (CONDITION) ? 1 : 0; \