Lines Matching refs:t
124 void print_test_case(struct test_case *t) in print_test_case() argument
129 if (t->sockopt.so_timestamp) in print_test_case()
131 if (t->sockopt.so_timestampns) in print_test_case()
133 if (t->sockopt.so_timestamping) { in print_test_case()
136 if (t->sockopt.so_timestamping & sof_flags[f].mask) in print_test_case()
141 if (t->expected.tstamp) in print_test_case()
143 if (t->expected.tstampns) in print_test_case()
145 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case()
147 if (t->expected.swtstamp) in print_test_case()
149 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case()
151 if (t->expected.hwtstamp) in print_test_case()
273 bool run_test_case(struct socket_type s, struct test_case t) in run_test_case() argument
312 config_so_flags(rcv, t.sockopt); in run_test_case()
318 failed = do_recv(rcv, read_size, t.expected); in run_test_case()
332 int s, t, opt; in main() local
338 for (t = 0; t < ARRAY_SIZE(test_cases); t++) { in main()
339 printf("%d\t", t); in main()
340 print_test_case(&test_cases[t]); in main()
344 t = atoi(optarg); in main()
345 if (t >= ARRAY_SIZE(test_cases)) in main()
346 error(1, 0, "Invalid test case: %d", t); in main()
348 test_cases[t].enabled = true; in main()
375 for (t = 0; t < ARRAY_SIZE(test_cases); t++) { in main()
376 if (!all_tests && !test_cases[t].enabled) in main()
379 printf("Starting testcase %d...\n", t); in main()
380 if (run_test_case(socket_types[s], test_cases[t])) { in main()
383 print_test_case(&test_cases[t]); in main()