Lines Matching full:usecs
6 * Tests are configured by writing: USECS ITERATIONS
8 * Specifying usecs of 0 or negative values will run multiples tests.
27 static int udelay_test_single(struct seq_file *s, int usecs, uint32_t iters) in udelay_test_single() argument
34 int allowed_error_ns = usecs * 5; in udelay_test_single()
41 udelay(usecs); in udelay_test_single()
49 if ((time_passed + allowed_error_ns) / 1000 < usecs) in udelay_test_single()
57 seq_printf(s, "%d usecs x %d: exp=%d allowed=%d min=%d avg=%lld max=%d", in udelay_test_single()
58 usecs, iters, usecs * 1000, in udelay_test_single()
59 (usecs * 1000) - allowed_error_ns, min, avg, max); in udelay_test_single()
69 int usecs; in udelay_test_show() local
74 usecs = udelay_test_usecs; in udelay_test_show()
78 if (usecs > 0 && iters > 0) { in udelay_test_show()
79 return udelay_test_single(s, usecs, iters); in udelay_test_show()
80 } else if (usecs == 0) { in udelay_test_show()
87 seq_puts(s, "echo USECS [ITERS] > " DEBUGFS_FILENAME "\n"); in udelay_test_show()
104 int usecs; in udelay_test_write() local
114 ret = sscanf(lbuf, "%d %d", &usecs, &iters); in udelay_test_write()
121 udelay_test_usecs = usecs; in udelay_test_write()