Lines Matching refs:i
80 int i; in random_size_align_alloc_test() local
82 for (i = 0; i < test_loop_count; i++) { in random_size_align_alloc_test()
113 int i; in align_shift_alloc_test() local
115 for (i = 0; i < BITS_PER_LONG; i++) { in align_shift_alloc_test()
116 align = ((unsigned long) 1) << i; in align_shift_alloc_test()
132 int i; in fix_align_alloc_test() local
134 for (i = 0; i < test_loop_count; i++) { in fix_align_alloc_test()
151 int i; in random_size_alloc_test() local
153 for (i = 0; i < test_loop_count; i++) { in random_size_alloc_test()
172 int i; in long_busy_list_alloc_test() local
178 for (i = 0; i < 15000; i++) in long_busy_list_alloc_test()
179 ptr[i] = vmalloc(1 * PAGE_SIZE); in long_busy_list_alloc_test()
181 for (i = 0; i < test_loop_count; i++) { in long_busy_list_alloc_test()
203 for (i = 0; i < 15000; i++) in long_busy_list_alloc_test()
204 vfree(ptr[i]); in long_busy_list_alloc_test()
215 int i; in full_fit_alloc_test() local
230 for (i = 0; i < junk_length; i++) { in full_fit_alloc_test()
231 ptr[i] = vmalloc(1 * PAGE_SIZE); in full_fit_alloc_test()
232 junk_ptr[i] = vmalloc(1 * PAGE_SIZE); in full_fit_alloc_test()
235 for (i = 0; i < junk_length; i++) in full_fit_alloc_test()
236 vfree(junk_ptr[i]); in full_fit_alloc_test()
238 for (i = 0; i < test_loop_count; i++) { in full_fit_alloc_test()
252 for (i = 0; i < junk_length; i++) in full_fit_alloc_test()
253 vfree(ptr[i]); in full_fit_alloc_test()
264 int i; in fix_size_alloc_test() local
266 for (i = 0; i < test_loop_count; i++) { in fix_size_alloc_test()
287 int i; in pcpu_alloc_test() local
293 for (i = 0; i < 35000; i++) { in pcpu_alloc_test()
301 pcpu[i] = __alloc_percpu(size, align); in pcpu_alloc_test()
302 if (!pcpu[i]) in pcpu_alloc_test()
306 for (i = 0; i < 35000; i++) in pcpu_alloc_test()
307 free_percpu(pcpu[i]); in pcpu_alloc_test()
323 int i; in kvfree_rcu_1_arg_vmalloc_test() local
325 for (i = 0; i < test_loop_count; i++) { in kvfree_rcu_1_arg_vmalloc_test()
341 int i; in kvfree_rcu_2_arg_vmalloc_test() local
343 for (i = 0; i < test_loop_count; i++) { in kvfree_rcu_2_arg_vmalloc_test()
390 int i, j; in shuffle_array() local
392 for (i = n - 1; i > 0; i--) { in shuffle_array()
394 j = prandom_u32_max(i); in shuffle_array()
397 swap(arr[i], arr[j]); in shuffle_array()
405 int index, i, j; in test_func() local
409 for (i = 0; i < ARRAY_SIZE(test_case_array); i++) in test_func()
410 random_array[i] = i; in test_func()
421 for (i = 0; i < ARRAY_SIZE(test_case_array); i++) { in test_func()
422 index = random_array[i]; in test_func()
486 int i, ret; in do_concurrent_test() local
500 for (i = 0; i < nr_threads; i++) { in do_concurrent_test()
501 struct test_driver *t = &tdriver[i]; in do_concurrent_test()
503 t->task = kthread_run(test_func, t, "vmalloc_test/%d", i); in do_concurrent_test()
509 pr_err("Failed to start %d kthread\n", i); in do_concurrent_test()
527 for (i = 0; i < nr_threads; i++) { in do_concurrent_test()
528 struct test_driver *t = &tdriver[i]; in do_concurrent_test()
548 i, t->stop - t->start); in do_concurrent_test()