Home
last modified time | relevance | path

Searched full:loops (Results 1 – 25 of 544) sorted by relevance

12345678910>>...22

/linux/arch/mips/kernel/
H A 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/arch/microblaze/include/asm/
H A Ddelay.h13 static inline void __delay(unsigned long loops) in __delay() argument
19 : "=r" (loops) in __delay()
20 : "0" (loops)); in __delay()
25 * loops = (4294 * usecs * loops_per_jiffy * HZ) / 2^32.
27 * The mul instruction gives us loops = (a * b) / 2^32.
47 unsigned loops = tmp >> 32; in __udelay() local
50 __asm__("mulxuu %0,%1,%2" : "=r" (loops) : in __udelay()
53 __delay(loops); in __udelay()
/linux/tools/testing/selftests/net/bench/page_pool/
H A Dbench_page_pool_simple.c39 /* notice time_bench is limited to U32_MAX nr loops */
40 static unsigned long loops = 10000000; variable
41 module_param(loops, ulong, 0);
42 MODULE_PARM_DESC(loops, "Specify loops bench will run");
54 for (i = 0; i < rec->loops; i++) { in time_bench_for_loop()
72 for (i = 0; i < rec->loops; i++) { in time_bench_atomic_inc()
95 for (i = 0; i < rec->loops; i++) { in time_bench_lock()
160 for (i = 0; i < rec->loops; i++) { in time_bench_page_pool()
216 uint32_t nr_loops = loops; in run_benchmark_tests()
246 if (loops > U32_MAX) { in bench_page_pool_simple_module_init()
[all …]
H A Dtime_bench.c124 pr_err("ERR: need more(>1000) loops(%llu) for timing\n", in time_bench_calc_stats()
216 bool time_bench_loop(uint32_t loops, int step, char *txt, void *data, in time_bench_loop() argument
224 rec.loops = loops; in time_bench_loop()
234 if (rec.invoked_cnt < loops) in time_bench_loop()
235 pr_warn("WARNING: Invoke count(%llu) smaller than loops(%d)\n", in time_bench_loop()
236 rec.invoked_cnt, loops); in time_bench_loop()
329 void time_bench_run_concurrent(uint32_t loops, int step, void *data, in time_bench_run_concurrent() argument
356 c->rec.loops = loops; in time_bench_run_concurrent()
/linux/drivers/spi/
H A Dspi-altera-dfl.c53 int loops; in indirect_bus_reg_read() local
58 loops = 0; in indirect_bus_reg_read()
60 (loops++ < INDIRECT_TIMEOUT)) in indirect_bus_reg_read()
63 if (loops >= INDIRECT_TIMEOUT) { in indirect_bus_reg_read()
64 pr_err("%s timed out %d\n", __func__, loops); in indirect_bus_reg_read()
79 int loops; in indirect_bus_reg_write() local
84 loops = 0; in indirect_bus_reg_write()
86 (loops++ < INDIRECT_TIMEOUT)) in indirect_bus_reg_write()
89 if (loops >= INDIRECT_TIMEOUT) { in indirect_bus_reg_write()
90 pr_err("%s timed out %d\n", __func__, loops); in indirect_bus_reg_write()
/linux/arch/csky/lib/
H A Ddelay.c8 void __aligned(8) __delay(unsigned long loops) in __delay() argument
14 : "=r"(loops) in __delay()
15 : "0"(loops)); in __delay()
21 unsigned long long loops; in __const_udelay() local
23 loops = (unsigned long long)xloops * loops_per_jiffy * HZ; in __const_udelay()
25 __delay(loops >> 32); in __const_udelay()
/linux/arch/arc/include/asm/
H A Ddelay.h22 static inline void __delay(unsigned long loops) in __delay() argument
30 : "r"(loops) in __delay()
37 * Normal Math for computing loops in "N" usecs
40 * loops per "N" usecs = ((loops_per_jiffy * HZ / 1000000) * N)
56 unsigned long loops; in __udelay() local
61 loops = ((u64) usecs * 4295 * HZ * loops_per_jiffy) >> 32; in __udelay()
63 __delay(loops); in __udelay()
/linux/tools/perf/bench/
H A Dsyscall.c25 static int loops;
28 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"),
86 loops = 10000; in bench_syscall_common()
89 loops = 10000000; in bench_syscall_common()
93 /* Options -l and --loops override default above */ in bench_syscall_common()
98 for (i = 0; i < loops; i++) { in bench_syscall_common()
138 printf("# Executed %'d %s calls\n", loops, name); in bench_syscall_common()
148 (double)result_usec / (double)loops); in bench_syscall_common()
150 (int)((double)loops / in bench_syscall_common()
26 static int loops = LOOPS_DEFAULT; global() variable
[all...]
H A Duprobe.c26 static int loops = LOOPS_DEFAULT; variable
37 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"),
117 int printed = fprintf(fp, "# Executed %'d %s calls\n", loops, name); in bench_uprobe_format__default_fprintf()
128 printed += fprintf(fp, "\n\n %'.3f %ss/op", (double)diff / (double)loops, unit); in bench_uprobe_format__default_fprintf()
131 printed += fprintf(fp, " %'.3f %ss/op to baseline", (double)diff_to_baseline / (double)loops, unit); in bench_uprobe_format__default_fprintf()
134 printed += fprintf(fp, " %'.3f %ss/op to previous", (double)diff_to_previous / (double)loops, unit); in bench_uprobe_format__default_fprintf()
160 for (i = 0; i < loops; i++) { in bench_uprobe()
H A Dsched-seccomp-notify.c29 static uint64_t loops = LOOPS_DEFAULT; variable
33 OPT_U64('l', "loop", &loops, "Specify number of loops"),
74 for (nr = 0; nr < loops; nr++) { in user_notification_sync_loop()
148 loops); in bench_sched_seccomp_notify()
158 (double)result_usec / (double)loops); in bench_sched_seccomp_notify()
160 (int)((double)loops / in bench_sched_seccomp_notify()
/linux/kernel/dma/
H A Dmap_benchmark.c31 atomic64_t loops; member
91 atomic64_inc(&map->loops); in map_benchmark_thread()
120 u64 loops; in do_map_benchmark() local
150 atomic64_set(&map->loops, 0); in do_map_benchmark()
170 loops = atomic64_read(&map->loops); in do_map_benchmark()
171 if (likely(loops > 0)) { in do_map_benchmark()
179 map->bparam.avg_map_100ns = div64_u64(sum_map, loops); in do_map_benchmark()
180 map->bparam.avg_unmap_100ns = div64_u64(sum_unmap, loops); in do_map_benchmark()
183 map_variance = div64_u64(sum_sq_map, loops) - in do_map_benchmark()
186 unmap_variance = div64_u64(sum_sq_unmap, loops) - in do_map_benchmark()
/linux/arch/xtensa/include/asm/
H A 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/tools/gpio/
H A Dgpio-hammer.c26 unsigned int loops) in hammer_device() argument
101 if (loops && iteration == loops) in hammer_device()
119 " [-c <n>] Do <n> loops (optional, infinite loop if not stated)\n" in print_usage()
131 unsigned int loops = 0; in main() local
140 loops = strtoul(optarg, NULL, 10); in main()
175 return hammer_device(device_name, lines, num_lines, loops); in main()
/linux/arch/s390/lib/
H A Ddelay.c3 * Precise Delay Loops for S390
15 void __delay(unsigned long loops) in __delay() argument
18 * Loop 'loops' times. Callers must not assume a specific in __delay()
21 asm volatile("0: brct %0,0b" : : "d" ((loops/2) + 1)); in __delay()
/linux/arch/x86/boot/
H A Da20.c22 int loops = MAX_8042_LOOPS; in empty_8042() local
25 while (loops--) { in empty_8042()
54 static int a20_test(int loops) in a20_test() argument
64 while (loops--) { in a20_test()
130 int loops = A20_ENABLE_LOOPS; in enable_a20() local
133 while (loops--) { in enable_a20()
/linux/arch/sh/lib/
H A Ddelay.c3 * Precise Delay Loops for SuperH
11 void __delay(unsigned long loops) in __delay() argument
28 : "=r" (loops) in __delay()
29 : "0" (loops) in __delay()
/linux/arch/openrisc/lib/
H A Ddelay.c12 * Precise Delay Loops
41 unsigned long long loops; in __const_udelay() local
43 loops = (unsigned long long)xloops * loops_per_jiffy * HZ; in __const_udelay()
45 __delay(loops >> 32); in __const_udelay()
/linux/arch/parisc/lib/
H A Ddelay.c3 * Precise Delay Loops for parisc
32 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/arch/m68k/include/asm/
H A Ddelay.h34 static inline void __delay(unsigned long loops) in __delay() argument
40 : "=d" (loops) in __delay()
41 : "0" (loops)); in __delay()
97 * ((((HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6) is the number of loops
104 * be the number of loops for n nanoseconds
/linux/arch/arm/lib/
H A Ddelay.c3 * Delay loops based on the OpenRISC implementation.
55 unsigned long long loops = xloops; in __timer_const_udelay() local
56 loops *= arm_delay_ops.ticks_per_jiffy; in __timer_const_udelay()
57 __timer_delay(loops >> UDELAY_SHIFT); in __timer_const_udelay()
/linux/arch/parisc/include/asm/
H A Ddelay.h5 static __inline__ void __delay(unsigned long loops) { in __delay() argument
10 : "=r" (loops) : "0" (loops)); in __delay()
/linux/arch/mips/cavium-octeon/
H A Dcsrc-octeon.c72 unsigned loops = 2; in octeon_init_cvmcount() local
77 /* Clobber loops so GCC will not unroll the following while loop. */ in octeon_init_cvmcount()
78 asm("" : "+r" (loops)); in octeon_init_cvmcount()
85 while (loops--) { in octeon_init_cvmcount()
172 void __delay(unsigned long loops) in __delay() argument
177 end = cur + loops; in __delay()
/linux/tools/testing/radix-tree/
H A Dbenchmark.c20 int l, loops = 1; in benchmark_iter() local
27 for (l = 0; l < loops; l++) { in benchmark_iter()
42 if (loops == 1 && nsec * 5 < NSEC_PER_SEC) { in benchmark_iter()
43 loops = NSEC_PER_SEC / nsec / 4 + 1; in benchmark_iter()
48 nsec /= loops; in benchmark_iter()
/linux/tools/perf/tests/shell/coresight/thread_loop/
H A Dthread_loop.c20 unsigned int loops; member
28 int i = 0, len = a->loops; in thrfn()
74 printf("ERR: max loops 4000 (millions)\n"); in main()
79 args[i].loops = len; in main()
/linux/tools/perf/tests/shell/coresight/memcpy_thread/
H A Dmemcpy_thread.c10 unsigned long loops; member
19 unsigned long i, len = a->loops; in thrfn()
68 printf("ERR: loops 1-40000000000 (hundreds)\n"); in main()
73 args[i].loops = len; in main()

12345678910>>...22