Lines Matching +full:10 +full:us
243 #define __wait_for(OP, COND, US, Wmin, Wmax) ({ \ argument
244 const ktime_t end__ = ktime_add_ns(ktime_get_raw(), 1000ll * (US)); \
245 long wait__ = (Wmin); /* recommended min for usleep is 10 us */ \
268 #define _wait_for(COND, US, Wmin, Wmax) __wait_for(, (COND), (US), (Wmin), \ argument
270 #define wait_for(COND, MS) _wait_for((COND), (MS) * 1000, 10, 1000)
279 #define _wait_for_atomic(COND, US, ATOMIC) \ argument
281 int cpu, ret, timeout = (US) * 1000; \
316 #define wait_for_us(COND, US) \ argument
319 BUILD_BUG_ON(!__builtin_constant_p(US)); \
320 if ((US) > 10) \
321 ret__ = _wait_for((COND), (US), 10, 10); \
323 ret__ = _wait_for_atomic((COND), (US), 0); \
327 #define wait_for_atomic_us(COND, US) \ argument
329 BUILD_BUG_ON(!__builtin_constant_p(US)); \
330 BUILD_BUG_ON((US) > 50000); \
331 _wait_for_atomic((COND), (US), 1); \