Home | History | Annotate | Download | only in i915

Lines Matching refs:US

303 #define __wait_for(OP, COND, US, Wmin, Wmax) ({ \
306 int ms__ = ((US) + 999)/1000; \
323 ktime_add_ns(ktime_get_raw(), 1000ll * (US)); \
348 #define __wait_for(OP, COND, US, Wmin, Wmax) ({ \
349 const ktime_t end__ = ktime_add_ns(ktime_get_raw(), 1000ll * (US)); \
350 long wait__ = (Wmin); /* recommended min for usleep is 10 us */ \
374 #define _wait_for(COND, US, Wmin, Wmax) __wait_for(, (COND), (US), (Wmin), \
385 #define _wait_for_atomic(COND, US, ATOMIC) \
387 int cpu, ret, timeout = (US) * 1000; \
422 #define wait_for_us(COND, US) \
425 BUILD_BUG_ON(!__builtin_constant_p(US)); \
426 if ((US) > 10) \
427 ret__ = _wait_for((COND), (US), 10, 10); \
429 ret__ = _wait_for_atomic((COND), (US), 0); \
433 #define wait_for_atomic_us(COND, US) \
435 BUILD_BUG_ON(!__builtin_constant_p(US)); \
436 BUILD_BUG_ON((US) > 50000); \
437 _wait_for_atomic((COND), (US), 1); \