Home
last modified time | relevance | path

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

1234567

/Linux-v4.19/arch/x86/lib/
Ddelay.c31 static void delay_loop(unsigned long loops) in delay_loop() argument
47 :"a" (loops) in delay_loop()
54 u64 bclock, now, loops = __loops; in delay_tsc() local
62 if ((now - bclock) >= loops) in delay_tsc()
80 loops -= (now - bclock); in delay_tsc()
95 u64 start, end, delay, loops = __loops; in delay_mwaitx() local
101 if (loops == 0) in delay_mwaitx()
107 delay = min_t(u64, MWAITX_MAX_LOOPS, loops); in delay_mwaitx()
124 if (loops <= end - start) in delay_mwaitx()
127 loops -= end - start; in delay_mwaitx()
[all …]
/Linux-v4.19/arch/mips/kernel/
Dspinlock_test.c14 int loops; in ss_get() local
18 loops = 1000000; in ss_get()
25 loops--; in ss_get()
26 if (loops == 0) in ss_get()
47 int loops; member
57 int loops; in multi_other() local
62 loops = s->loops; in multi_other()
79 loops--; in multi_other()
80 if (loops == 0) in multi_other()
98 ms.loops = 1000000; in multi_get()
/Linux-v4.19/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()
/Linux-v4.19/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()
/Linux-v4.19/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()
/Linux-v4.19/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()
/Linux-v4.19/tools/gpio/
Dgpio-hammer.c29 unsigned int loops) in hammer_device() argument
96 if (loops && iteration == loops) in hammer_device()
126 unsigned int loops = 0; in main() local
135 loops = strtoul(optarg, NULL, 10); in main()
155 return hammer_device(device_name, lines, nlines, loops); in main()
Dgpio-event-mon.c34 unsigned int loops) in monitor_device() argument
116 if (i == loops) in monitor_device()
149 unsigned int loops = 0; in main() local
157 loops = strtoul(optarg, NULL, 10); in main()
193 eventflags, loops); in main()
/Linux-v4.19/arch/ia64/include/asm/
Ddelay.h76 extern void ia64_delay_loop (unsigned long loops);
79 __delay (unsigned long loops) in __delay() argument
81 if (unlikely(loops < 1)) in __delay()
84 ia64_delay_loop (loops - 1); in __delay()
/Linux-v4.19/tools/perf/bench/
Dsched-pipe.c41 static int loops = LOOPS_DEFAULT; variable
47 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"),
63 for (i = 0; i < loops; i++) { in worker_thread()
156 loops, threaded ? "threads" : "processes"); in bench_sched_pipe()
166 (double)result_usec / (double)loops); in bench_sched_pipe()
168 (int)((double)loops / in bench_sched_pipe()
/Linux-v4.19/arch/parisc/include/asm/
Ddelay.h5 static __inline__ void __delay(unsigned long loops) { in __delay() argument
10 : "=r" (loops) : "0" (loops)); in __delay()
/Linux-v4.19/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()
/Linux-v4.19/arch/sh/lib/
Ddelay.c11 void __delay(unsigned long loops) in __delay() argument
28 : "=r" (loops) in __delay()
29 : "0" (loops) in __delay()
/Linux-v4.19/arch/nds32/include/asm/
Ddelay.h10 static inline void __delay(unsigned long loops) in __delay() argument
16 :"=r"(loops) in __delay()
17 :"0"(loops)); in __delay()
/Linux-v4.19/arch/sparc/include/asm/
Ddelay_32.h13 static inline void __delay(unsigned long loops) in __delay() argument
18 "=&r" (loops) : in __delay()
19 "0" (loops) : in __delay()
/Linux-v4.19/arch/h8300/lib/
Ddelay.c23 u64 loops; in __const_udelay() local
25 loops = (u64)xloops * loops_per_jiffy * HZ; in __const_udelay()
27 __delay(loops >> 32); in __const_udelay()
/Linux-v4.19/arch/alpha/lib/
Dudelay.c23 __delay(int loops) in __delay() argument
32 : "=&r" (tmp), "=r" (loops) : "1"(loops)); in __delay()
/Linux-v4.19/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()
/Linux-v4.19/arch/mips/lib/
Ddelay.c27 void __delay(unsigned long loops) in __delay() argument
35 : "=r" (loops) in __delay()
36 : GCC_DADDI_IMM_ASM() (1), "0" (loops)); in __delay()
/Linux-v4.19/arch/openrisc/lib/
Ddelay.c43 unsigned long long loops; in __const_udelay() local
45 loops = (unsigned long long)xloops * loops_per_jiffy * HZ; in __const_udelay()
47 __delay(loops >> 32); in __const_udelay()
/Linux-v4.19/arch/parisc/lib/
Ddelay.c32 u32 bclock, now, loops = __loops; in __cr16_delay() local
40 if ((now - bclock) >= loops) in __cr16_delay()
59 loops -= (now - bclock); in __cr16_delay()
/Linux-v4.19/arch/mips/cavium-octeon/
Dcsrc-octeon.c71 unsigned loops = 2; in octeon_init_cvmcount() local
77 asm("" : "+r" (loops)); in octeon_init_cvmcount()
84 while (loops--) { in octeon_init_cvmcount()
171 void __delay(unsigned long loops) in __delay() argument
176 end = cur + loops; in __delay()
/Linux-v4.19/arch/m68k/include/asm/
Ddelay.h34 static inline void __delay(unsigned long loops) in __delay() argument
40 : "=d" (loops) in __delay()
41 : "0" (loops)); in __delay()
/Linux-v4.19/drivers/sn/
Dioc3.c219 int loops = 16, i; in read_redir_page() local
223 loops--; in read_redir_page()
224 if(loops<0) { in read_redir_page()
229 loops = 3; in read_redir_page()
230 while(loops>0) { in read_redir_page()
239 loops--; in read_redir_page()
250 int i,j,loops = 3,crc_ok; in read_redir_map() local
253 while(loops>0) { in read_redir_map()
270 loops--; in read_redir_map()
313 int i, loops = 3; in read_mac() local
[all …]
/Linux-v4.19/drivers/clocksource/
Dvt8500_timer.c58 int loops = msecs_to_loops(10); in vt8500_timer_read() local
61 && --loops) in vt8500_timer_read()
77 int loops = msecs_to_loops(10); in vt8500_timer_set_next_event() local
80 && --loops) in vt8500_timer_set_next_event()

1234567