Lines Matching +full:x +full:- +full:min
1 /* SPDX-License-Identifier: GPL-2.0 */
8 * Delay routines, using a pre-computed "loops_per_jiffy" value.
19 * https://lists.openwall.net/linux-kernel/2011/01/09/56
34 * specific values can be defined in asm-???/delay.h as an override.
36 * while loop for the common cases where n <= MAX_UDELAY_MS -- Paul G.
46 ({unsigned long __ms=(n); while (__ms--) udelay(1000);}))
50 static inline void ndelay(unsigned long x) in ndelay() argument
52 udelay(DIV_ROUND_UP(x, 1000)); in ndelay()
54 #define ndelay(x) ndelay(x) argument
63 void usleep_range_state(unsigned long min, unsigned long max,
66 static inline void usleep_range(unsigned long min, unsigned long max) in usleep_range() argument
68 usleep_range_state(min, max, TASK_UNINTERRUPTIBLE); in usleep_range()
71 static inline void usleep_idle_range(unsigned long min, unsigned long max) in usleep_idle_range() argument
73 usleep_range_state(min, max, TASK_IDLE); in usleep_idle_range()
81 /* see Documentation/timers/timers-howto.rst for the thresholds */