Home
last modified time | relevance | path

Searched refs:loops (Results 1 – 25 of 66) sorted by relevance

123

/arch/x86/lib/
Ddelay.c30 static void delay_loop(unsigned long loops) in delay_loop() argument
46 :"a" (loops) in delay_loop()
53 u64 bclock, now, loops = __loops; in delay_tsc() local
61 if ((now - bclock) >= loops) in delay_tsc()
79 loops -= (now - bclock); in delay_tsc()
94 u64 start, end, delay, loops = __loops; in delay_mwaitx() local
100 if (loops == 0) in delay_mwaitx()
106 delay = min_t(u64, MWAITX_MAX_LOOPS, loops); in delay_mwaitx()
123 if (loops <= end - start) in delay_mwaitx()
126 loops -= end - start; in delay_mwaitx()
[all …]
/arch/metag/mm/
Dcache.c202 int loops, step; in metag_phys_data_cache_flush() local
235 loops = ((part + 1) << (set_shift - 4)); in metag_phys_data_cache_flush()
238 loops /= step; in metag_phys_data_cache_flush()
249 loops >>= 1; in metag_phys_data_cache_flush()
253 while (loops-- != 0) { in metag_phys_data_cache_flush()
296 int loops, step; in metag_data_cache_flush() local
309 loops = ((int)start & (DCACHE_LINE_BYTES - 1)) + bytes + in metag_data_cache_flush()
311 loops >>= DCACHE_LINE_S; in metag_data_cache_flush()
324 switch (loops) { in metag_data_cache_flush()
328 loops -= 4; in metag_data_cache_flush()
[all …]
/arch/mips/kernel/
Dspinlock_test.c13 int loops; in ss_get() local
17 loops = 1000000; in ss_get()
24 loops--; in ss_get()
25 if (loops == 0) in ss_get()
46 int loops; member
56 int loops; in multi_other() local
61 loops = s->loops; in multi_other()
78 loops--; in multi_other()
79 if (loops == 0) in multi_other()
97 ms.loops = 1000000; in multi_get()
/arch/tile/lib/
Dspinlock_common.h40 u32 exponent, loops; in delay_backoff() local
57 loops = 1 << exponent; in delay_backoff()
60 loops += __insn_crc32_32(stack_pointer, get_cycles_low()) & in delay_backoff()
61 (loops - 1); in delay_backoff()
63 relax(loops); in delay_backoff()
/arch/arc/include/asm/
Ddelay.h25 static inline void __delay(unsigned long loops) in __delay() argument
33 : "r"(loops) in __delay()
59 unsigned long loops; in __udelay() local
64 loops = ((u64) usecs * 4295 * HZ * loops_per_jiffy) >> 32; in __udelay()
66 __delay(loops); in __udelay()
/arch/avr32/lib/
Ddelay.c29 void __delay(unsigned long loops) in __delay() argument
36 } while ((now - bclock) < loops); in __delay()
41 unsigned long long loops; in __const_udelay() local
44 : "=r"(loops) in __const_udelay()
46 __delay(loops >> 32); in __const_udelay()
/arch/microblaze/include/asm/
Ddelay.h18 static inline void __delay(unsigned long loops) in __delay() argument
24 : "=r" (loops) in __delay()
25 : "0" (loops)); in __delay()
52 unsigned loops = tmp >> 32; in __udelay() local
58 __delay(loops); in __udelay()
/arch/xtensa/include/asm/
Ddelay.h20 static inline void __delay(unsigned long loops) in __delay() argument
22 if (__builtin_constant_p(loops) && loops < 2) in __delay()
24 else if (loops >= 2) in __delay()
27 : "+r" (loops)); in __delay()
/arch/x86/boot/
Da20.c24 int loops = MAX_8042_LOOPS; in empty_8042() local
27 while (loops--) { in empty_8042()
56 static int a20_test(int loops) in a20_test() argument
66 while (loops--) { in a20_test()
132 int loops = A20_ENABLE_LOOPS; in enable_a20() local
135 while (loops--) { in enable_a20()
/arch/metag/lib/
Ddelay.c27 void __delay(unsigned long loops) in __delay() argument
35 } while ((now-bclock) < loops); in __delay()
41 u64 loops = (u64)xloops * (u64)loops_per_jiffy * HZ; in __const_udelay() local
42 __delay(loops >> 32); in __const_udelay()
/arch/frv/include/asm/
Ddelay.h23 static inline void __delay(unsigned long loops) in __delay() argument
27 : "=r" (loops) in __delay()
28 : "0" (loops) in __delay()
/arch/ia64/include/asm/
Ddelay.h75 extern void ia64_delay_loop (unsigned long loops);
78 __delay (unsigned long loops) in __delay() argument
80 if (unlikely(loops < 1)) in __delay()
83 ia64_delay_loop (loops - 1); in __delay()
/arch/parisc/include/asm/
Ddelay.h4 static __inline__ void __delay(unsigned long loops) { in __delay() argument
9 : "=r" (loops) : "0" (loops)); in __delay()
/arch/score/include/asm/
Ddelay.h6 static inline void __delay(unsigned long loops) in __delay() argument
13 : "=r" (loops) in __delay()
14 : "0" (loops)); in __delay()
/arch/sh/lib64/
Dudelay.c24 void __delay(unsigned long loops) in __delay() argument
31 "ptabs %1, tr0\n\t":"=r"(loops), in __delay()
33 :"0"(loops)); in __delay()
/arch/sh/lib/
Ddelay.c10 void __delay(unsigned long loops) in __delay() argument
27 : "=r" (loops) in __delay()
28 : "0" (loops) in __delay()
/arch/sparc/include/asm/
Ddelay_32.h12 static inline void __delay(unsigned long loops) in __delay() argument
17 "=&r" (loops) : in __delay()
18 "0" (loops) : in __delay()
/arch/h8300/lib/
Ddelay.c22 u64 loops; in __const_udelay() local
24 loops = (u64)xloops * loops_per_jiffy * HZ; in __const_udelay()
26 __delay(loops >> 32); in __const_udelay()
/arch/arm64/lib/
Ddelay.c38 unsigned long loops; in __const_udelay() local
40 loops = xloops * loops_per_jiffy * HZ; in __const_udelay()
41 __delay(loops >> 32); in __const_udelay()
/arch/alpha/lib/
Dudelay.c22 __delay(int loops) in __delay() argument
31 : "=&r" (tmp), "=r" (loops) : "1"(loops)); in __delay()
/arch/nios2/lib/
Ddelay.c34 u64 loops; in __const_udelay() local
36 loops = (u64)xloops * loops_per_jiffy * HZ; in __const_udelay()
38 __delay(loops >> 32); in __const_udelay()
/arch/mips/lib/
Ddelay.c26 void __delay(unsigned long loops) in __delay() argument
34 : "=r" (loops) in __delay()
35 : GCC_DADDI_IMM_ASM() (1), "0" (loops)); in __delay()
/arch/openrisc/lib/
Ddelay.c42 unsigned long long loops; in __const_udelay() local
44 loops = (unsigned long long)xloops * loops_per_jiffy * HZ; in __const_udelay()
46 __delay(loops >> 32); in __const_udelay()
/arch/parisc/lib/
Ddelay.c33 u32 bclock, now, loops = __loops; in __cr16_delay() local
41 if ((now - bclock) >= loops) in __cr16_delay()
60 loops -= (now - bclock); in __cr16_delay()
/arch/m32r/lib/
Ddelay.c17 void __delay(unsigned long loops) in __delay() argument
34 : "+r" (loops) in __delay()
53 : "+r" (loops) in __delay()

123