/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | spinlock_test.c | 11 int loops; in ss_get() local 17 loops = 1000000; in ss_get() 23 loops--; in ss_get() 24 if (loops == 0) in ss_get() 42 int loops; member 52 int loops; in multi_other() local 57 loops = s->loops; in multi_other() 74 loops--; in multi_other() 75 if (loops in multi_other() [all...] |
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | spinlock_test.c | 14 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 in multi_other() [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | spinlock_test.c | 14 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 in multi_other() [all...] |
/kernel/linux/linux-5.10/arch/csky/lib/ |
H A D | delay.c | 8 void __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()
|
/kernel/linux/linux-6.6/arch/csky/lib/ |
H A D | delay.c | 8 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()
|
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-altera-dfl.c | 53 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() [all...] |
/kernel/linux/linux-5.10/arch/arc/include/asm/ |
H A D | delay.h | 22 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()
|
/kernel/linux/linux-6.6/arch/arc/include/asm/ |
H A D | delay.h | 22 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()
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
H A D | syscall.c | 21 static int loops = LOOPS_DEFAULT; variable 24 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"), 43 for (i = 0; i < loops; i++) in bench_syscall_basic() 51 printf("# Executed %'d getppid() calls\n", loops); in bench_syscall_basic() 61 (double)result_usec / (double)loops); in bench_syscall_basic() 63 (int)((double)loops / in bench_syscall_basic()
|
H A D | sched-pipe.c | 38 static int loops = LOOPS_DEFAULT; variable 44 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"), 60 for (i = 0; i < loops; i++) { in worker_thread() 153 loops, threaded ? "threads" : "processes"); in bench_sched_pipe() 163 (double)result_usec / (double)loops); in bench_sched_pipe() 165 (int)((double)loops / in bench_sched_pipe()
|
/kernel/linux/linux-6.6/tools/perf/bench/ |
H A D | syscall.c | 26 static int loops = LOOPS_DEFAULT; variable 29 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"), 87 for (i = 0; i < loops; i++) { in bench_syscall_common() 99 loops = 10000; in bench_syscall_common() 105 loops = 10000; in bench_syscall_common() 134 printf("# Executed %'d %s calls\n", loops, name); in bench_syscall_common() 144 (double)result_usec / (double)loops); in bench_syscall_common() 146 (int)((double)loops / in bench_syscall_common()
|
H A D | uprobe.c | 26 static int loops = LOOPS_DEFAULT; variable 35 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"), 112 int printed = fprintf(fp, "# Executed %'d %s calls\n", loops, name); in bench_uprobe_format__default_fprintf() 123 printed += fprintf(fp, "\n\n %'.3f %ss/op", (double)diff / (double)loops, unit); in bench_uprobe_format__default_fprintf() 126 printed += fprintf(fp, " %'.3f %ss/op to baseline", (double)diff_to_baseline / (double)loops, unit); in bench_uprobe_format__default_fprintf() 129 printed += fprintf(fp, " %'.3f %ss/op to previous", (double)diff_to_previous / (double)loops, unit); in bench_uprobe_format__default_fprintf() 155 for (i = 0; i < loops; i++) { in bench_uprobe()
|
H A D | sched-pipe.c | 38 static int loops = LOOPS_DEFAULT; variable 44 OPT_INTEGER('l', "loop", &loops, "Specify number of loops"), 60 for (i = 0; i < loops; i++) { in worker_thread() 153 loops, threaded ? "threads" : "processes"); in bench_sched_pipe() 163 (double)result_usec / (double)loops); in bench_sched_pipe() 165 (int)((double)loops / in bench_sched_pipe()
|
/kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
H A D | delay.h | 20 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()
|
/kernel/linux/linux-5.10/arch/microblaze/include/asm/ |
H A D | delay.h | 13 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()
|
/kernel/linux/linux-6.6/arch/microblaze/include/asm/ |
H A D | delay.h | 13 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()
|
/kernel/linux/linux-6.6/arch/xtensa/include/asm/ |
H A D | delay.h | 20 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()
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
H A D | a20.c | 22 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()
|
/kernel/linux/linux-6.6/arch/x86/boot/ |
H A D | a20.c | 22 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()
|
/kernel/linux/linux-6.6/kernel/dma/ |
H A D | map_benchmark.c | 31 atomic64_t loops; member 91 atomic64_inc(&map->loops); in map_benchmark_thread() 105 u64 loops; in do_map_benchmark() local 133 atomic64_set(&map->loops, 0); in do_map_benchmark() 149 loops = atomic64_read(&map->loops); in do_map_benchmark() 150 if (likely(loops > 0)) { in do_map_benchmark() 158 map->bparam.avg_map_100ns = div64_u64(sum_map, loops); in do_map_benchmark() 159 map->bparam.avg_unmap_100ns = div64_u64(sum_unmap, loops); in do_map_benchmark() 162 map_variance = div64_u64(sum_sq_map, loops) in do_map_benchmark() [all...] |
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
H A D | delay.h | 76 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()
|
/kernel/linux/linux-6.6/arch/ia64/include/asm/ |
H A D | delay.h | 76 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()
|
/kernel/linux/linux-5.10/tools/gpio/ |
H A D | gpio-hammer.c | 26 unsigned int loops) in hammer_device() 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() 25 hammer_device(const char *device_name, unsigned int *lines, int num_lines, unsigned int loops) hammer_device() argument
|
/kernel/linux/linux-6.6/tools/gpio/ |
H A D | gpio-hammer.c | 26 unsigned int loops) in hammer_device() 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() 25 hammer_device(const char *device_name, unsigned int *lines, int num_lines, unsigned int loops) hammer_device() argument
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
H A D | delay.h | 5 static __inline__ void __delay(unsigned long loops) { in __delay() argument 10 : "=r" (loops) : "0" (loops)); in __delay()
|