Lines Matching refs:arg
304 static void *test_1003_thread(void *arg) in test_1003_thread() argument
306 struct test_1003_arg *a = arg; in test_1003_thread()
360 struct test_1003_arg arg[TEST_1003_THREAD_COUNT] = { }; in xtest_tee_test_1003() local
385 arg[n].test_type = PTA_MUTEX_TEST_READER; in xtest_tee_test_1003()
388 arg[n].test_type = PTA_MUTEX_TEST_WRITER; in xtest_tee_test_1003()
391 arg[n].repeat = repeat; in xtest_tee_test_1003()
393 test_1003_thread, arg + n))) in xtest_tee_test_1003()
399 if (!ADBG_EXPECT_TEEC_SUCCESS(c, arg[n].res)) in xtest_tee_test_1003()
401 arg[n].error_orig); in xtest_tee_test_1003()
402 if (arg[n].test_type == PTA_MUTEX_TEST_READER) { in xtest_tee_test_1003()
403 if (arg[n].max_during_lockers > max_read_concurrency) in xtest_tee_test_1003()
405 arg[n].max_during_lockers; in xtest_tee_test_1003()
407 if (arg[n].max_before_lockers > max_read_waiters) in xtest_tee_test_1003()
408 max_read_waiters = arg[n].max_before_lockers; in xtest_tee_test_1003()
410 num_concurrent_read_lockers += arg[n].during_lockers; in xtest_tee_test_1003()
411 num_concurrent_read_waiters += arg[n].before_lockers; in xtest_tee_test_1003()
777 static void *cancellation_thread(void *arg) in cancellation_thread() argument
784 TEEC_RequestCancellation(arg); in cancellation_thread()
1045 static void *test_1013_thread(void *arg) in test_1013_thread() argument
1047 struct test_1013_thread_arg *a = arg; in test_1013_thread()
1093 struct test_1013_thread_arg arg[NUM_THREADS] = { }; in xtest_tee_test_1013_single() local
1119 arg[n].uuid = uuid; in xtest_tee_test_1013_single()
1120 arg[n].cmd = TA_CONCURRENT_CMD_BUSY_LOOP; in xtest_tee_test_1013_single()
1121 arg[n].repeat = repeat * 10; in xtest_tee_test_1013_single()
1122 arg[n].shm = &shm; in xtest_tee_test_1013_single()
1124 test_1013_thread, arg + n))) in xtest_tee_test_1013_single()
1130 if (arg[n].res == TEEC_ERROR_OUT_OF_MEMORY && in xtest_tee_test_1013_single()
1136 ADBG_EXPECT_TEEC_SUCCESS(c, arg[n].res); in xtest_tee_test_1013_single()
1137 if (arg[n].max_concurrency > max_concurrency) in xtest_tee_test_1013_single()
1138 max_concurrency = arg[n].max_concurrency; in xtest_tee_test_1013_single()
1157 memset(arg, 0, sizeof(arg)); in xtest_tee_test_1013_single()
1162 arg[n].uuid = uuid; in xtest_tee_test_1013_single()
1163 arg[n].cmd = TA_CONCURRENT_CMD_SHA256; in xtest_tee_test_1013_single()
1164 arg[n].repeat = repeat; in xtest_tee_test_1013_single()
1165 arg[n].shm = &shm; in xtest_tee_test_1013_single()
1166 arg[n].in = sha256_in; in xtest_tee_test_1013_single()
1167 arg[n].in_len = sizeof(sha256_in); in xtest_tee_test_1013_single()
1168 arg[n].out = out; in xtest_tee_test_1013_single()
1169 arg[n].out_len = sizeof(out); in xtest_tee_test_1013_single()
1171 test_1013_thread, arg + n))) in xtest_tee_test_1013_single()
1177 if (arg[n].res == TEEC_ERROR_OUT_OF_MEMORY && in xtest_tee_test_1013_single()
1182 if (ADBG_EXPECT_TEEC_SUCCESS(c, arg[n].res)) in xtest_tee_test_1013_single()
1184 arg[n].out, arg[n].out_len); in xtest_tee_test_1013_single()
1185 if (arg[n].max_concurrency > max_concurrency) in xtest_tee_test_1013_single()
1186 max_concurrency = arg[n].max_concurrency; in xtest_tee_test_1013_single()