Lines Matching refs:i
84 int i; in random_size_align_alloc_test() local
86 for (i = 0; i < test_loop_count; i++) { in random_size_align_alloc_test()
117 int i; in align_shift_alloc_test() local
119 for (i = 0; i < BITS_PER_LONG; i++) { in align_shift_alloc_test()
120 align = ((unsigned long) 1) << i; in align_shift_alloc_test()
136 int i; in fix_align_alloc_test() local
138 for (i = 0; i < test_loop_count; i++) { in fix_align_alloc_test()
155 int i; in random_size_alloc_test() local
157 for (i = 0; i < test_loop_count; i++) { in random_size_alloc_test()
176 int i; in long_busy_list_alloc_test() local
182 for (i = 0; i < 15000; i++) in long_busy_list_alloc_test()
183 ptr[i] = vmalloc(1 * PAGE_SIZE); in long_busy_list_alloc_test()
185 for (i = 0; i < test_loop_count; i++) { in long_busy_list_alloc_test()
207 for (i = 0; i < 15000; i++) in long_busy_list_alloc_test()
208 vfree(ptr[i]); in long_busy_list_alloc_test()
219 int i; in full_fit_alloc_test() local
234 for (i = 0; i < junk_length; i++) { in full_fit_alloc_test()
235 ptr[i] = vmalloc(1 * PAGE_SIZE); in full_fit_alloc_test()
236 junk_ptr[i] = vmalloc(1 * PAGE_SIZE); in full_fit_alloc_test()
239 for (i = 0; i < junk_length; i++) in full_fit_alloc_test()
240 vfree(junk_ptr[i]); in full_fit_alloc_test()
242 for (i = 0; i < test_loop_count; i++) { in full_fit_alloc_test()
256 for (i = 0; i < junk_length; i++) in full_fit_alloc_test()
257 vfree(ptr[i]); in full_fit_alloc_test()
268 int i; in fix_size_alloc_test() local
270 for (i = 0; i < test_loop_count; i++) { in fix_size_alloc_test()
294 int i; in pcpu_alloc_test() local
300 for (i = 0; i < 35000; i++) { in pcpu_alloc_test()
308 pcpu[i] = __alloc_percpu(size, align); in pcpu_alloc_test()
309 if (!pcpu[i]) in pcpu_alloc_test()
313 for (i = 0; i < 35000; i++) in pcpu_alloc_test()
314 free_percpu(pcpu[i]); in pcpu_alloc_test()
330 int i; in kvfree_rcu_1_arg_vmalloc_test() local
332 for (i = 0; i < test_loop_count; i++) { in kvfree_rcu_1_arg_vmalloc_test()
348 int i; in kvfree_rcu_2_arg_vmalloc_test() local
350 for (i = 0; i < test_loop_count; i++) { in kvfree_rcu_2_arg_vmalloc_test()
369 int i; in vm_map_ram_test() local
381 for (i = 0; i < test_loop_count; i++) { in vm_map_ram_test()
388 for (i = 0; i < nr_allocated; i++) in vm_map_ram_test()
389 __free_page(pages[i]); in vm_map_ram_test()
433 int i, j; in shuffle_array() local
435 for (i = n - 1; i > 0; i--) { in shuffle_array()
437 j = get_random_u32_below(i); in shuffle_array()
440 swap(arr[i], arr[j]); in shuffle_array()
448 int index, i, j; in test_func() local
452 for (i = 0; i < ARRAY_SIZE(test_case_array); i++) in test_func()
453 random_array[i] = i; in test_func()
464 for (i = 0; i < ARRAY_SIZE(test_case_array); i++) { in test_func()
465 index = random_array[i]; in test_func()
529 int i, ret; in do_concurrent_test() local
543 for (i = 0; i < nr_threads; i++) { in do_concurrent_test()
544 struct test_driver *t = &tdriver[i]; in do_concurrent_test()
546 t->task = kthread_run(test_func, t, "vmalloc_test/%d", i); in do_concurrent_test()
552 pr_err("Failed to start %d kthread\n", i); in do_concurrent_test()
570 for (i = 0; i < nr_threads; i++) { in do_concurrent_test()
571 struct test_driver *t = &tdriver[i]; in do_concurrent_test()
591 i, t->stop - t->start); in do_concurrent_test()