Lines Matching refs:loop
159 static int test_loop_end(u32 *loop, u32 nb_loop, u32 progress) in test_loop_end() argument
161 (*loop)++; in test_loop_end()
162 if (nb_loop && *loop >= nb_loop) in test_loop_end()
164 if ((*loop) % progress) in test_loop_end()
171 printf("loop #%d\n", *loop); in test_loop_end()
352 u32 loop = 0, nb_loop; in databuswalk0() local
374 if (test_loop_end(&loop, nb_loop, 1000)) in databuswalk0()
381 loop, error); in databuswalk0()
384 sprintf(string, "no error for %d loops", loop); in databuswalk0()
393 u32 loop = 0, nb_loop; in databuswalk1() local
414 if (test_loop_end(&loop, nb_loop, 1000)) in databuswalk1()
421 loop, error); in databuswalk1()
424 sprintf(string, "no error for %d loops", loop); in databuswalk1()
595 u32 loop = 0, nb_loop; in test_random() local
627 if (test_loop_end(&loop, nb_loop, 100)) in test_random()
635 loop, offset, readl(offset), value); in test_random()
639 loop, bufsize); in test_random()
1018 u32 bufsize, nb_loop, loop = 0, addr; in test_checkboard() local
1041 if (test_loop_end(&loop, nb_loop, 1)) in test_checkboard()
1045 loop, addr, bufsize); in test_checkboard()
1055 u32 bufsize, nb_loop, loop = 0, addr, value; in test_blockseq() local
1075 if (test_loop_end(&loop, nb_loop, 1)) in test_blockseq()
1079 loop, addr, bufsize); in test_blockseq()
1089 u32 bufsize, nb_loop, loop = 0, addr, value; in test_walkbit0() local
1113 if (test_loop_end(&loop, nb_loop, 1)) in test_walkbit0()
1117 loop, addr, bufsize); in test_walkbit0()
1127 u32 bufsize, nb_loop, loop = 0, addr, value; in test_walkbit1() local
1151 if (test_loop_end(&loop, nb_loop, 1)) in test_walkbit1()
1155 loop, addr, bufsize); in test_walkbit1()
1169 u32 bufsize, nb_loop, loop = 0, addr, bitspread[4]; in test_bitspread() local
1200 if (test_loop_end(&loop, nb_loop, 1)) in test_bitspread()
1204 loop, addr, bufsize); in test_bitspread()
1214 u32 bufsize, nb_loop, loop = 0, addr; in test_bitflip() local
1240 if (test_loop_end(&loop, nb_loop, 1)) in test_bitflip()
1244 loop, addr, bufsize); in test_bitflip()
1262 u32 loop = 0; in test_read() local
1288 if (test_loop_end(&loop, 0, 1)) in test_read()
1292 sprintf(string, "%d loops random", loop); in test_read()
1294 sprintf(string, "%d loops at 0x%x: %x", loop, (u32)addr, data); in test_read()
1312 u32 loop = 0; in test_write() local
1339 if (test_loop_end(&loop, 0, 1)) in test_write()
1343 sprintf(string, "%d loops random", loop); in test_write()
1345 sprintf(string, "%d loops at 0x%x: %x", loop, (u32)addr, data); in test_write()
1357 u32 loop = 0, nb_loop; in test_all() local
1413 loop + 1, nb_error, test_nb - NB_TEST_INFINITE); in test_all()
1414 if (test_loop_end(&loop, nb_loop, 1)) in test_all()
1418 sprintf(string, "loop %d: %d/%d test failed", loop, nb_error, in test_all()
1421 sprintf(string, "loop %d: %d tests passed", loop, in test_all()