Lines Matching refs:test
411 static void show_time(struct test_info *test, int stage) in show_time() argument
416 speed = (long long)test->bytes * 1000; in show_time()
417 if (test->time_ms[stage]) in show_time()
418 do_div(speed, test->time_ms[stage] * 1024); in show_time()
422 stage_name[stage], test->time_ms[stage], in show_time()
426 static void spi_test_next_stage(struct test_info *test) in spi_test_next_stage() argument
428 test->time_ms[test->stage] = get_timer(test->base_ms); in spi_test_next_stage()
429 show_time(test, test->stage); in spi_test_next_stage()
430 test->base_ms = get_timer(0); in spi_test_next_stage()
431 test->stage++; in spi_test_next_stage()
447 struct test_info test; in spi_flash_test() local
451 memset(&test, '\0', sizeof(test)); in spi_flash_test()
452 test.base_ms = get_timer(0); in spi_flash_test()
453 test.bytes = len; in spi_flash_test()
459 spi_test_next_stage(&test); in spi_flash_test()
474 spi_test_next_stage(&test); in spi_flash_test()
482 spi_test_next_stage(&test); in spi_flash_test()
489 spi_test_next_stage(&test); in spi_flash_test()
504 show_time(&test, i); in spi_flash_test()