Lines Matching refs:arg

325 static void *test_1003_thread(void *arg)  in test_1003_thread()  argument
327 struct test_1003_arg *a = arg; in test_1003_thread()
381 struct test_1003_arg arg[TEST_1003_THREAD_COUNT] = { }; in xtest_tee_test_1003() local
406 arg[n].test_type = PTA_MUTEX_TEST_READER; in xtest_tee_test_1003()
409 arg[n].test_type = PTA_MUTEX_TEST_WRITER; in xtest_tee_test_1003()
412 arg[n].repeat = repeat; in xtest_tee_test_1003()
414 test_1003_thread, arg + n))) in xtest_tee_test_1003()
420 if (!ADBG_EXPECT_TEEC_SUCCESS(c, arg[n].res)) in xtest_tee_test_1003()
422 arg[n].error_orig); in xtest_tee_test_1003()
423 if (arg[n].test_type == PTA_MUTEX_TEST_READER) { in xtest_tee_test_1003()
424 if (arg[n].max_during_lockers > max_read_concurrency) in xtest_tee_test_1003()
426 arg[n].max_during_lockers; in xtest_tee_test_1003()
428 if (arg[n].max_before_lockers > max_read_waiters) in xtest_tee_test_1003()
429 max_read_waiters = arg[n].max_before_lockers; in xtest_tee_test_1003()
431 num_concurrent_read_lockers += arg[n].during_lockers; in xtest_tee_test_1003()
432 num_concurrent_read_waiters += arg[n].before_lockers; in xtest_tee_test_1003()
798 static void *cancellation_thread(void *arg) in cancellation_thread() argument
805 TEEC_RequestCancellation(arg); in cancellation_thread()
1066 static void *test_1013_thread(void *arg) in test_1013_thread() argument
1068 struct test_1013_thread_arg *a = arg; in test_1013_thread()
1114 struct test_1013_thread_arg arg[NUM_THREADS] = { }; in xtest_tee_test_1013_single() local
1140 arg[n].uuid = uuid; in xtest_tee_test_1013_single()
1141 arg[n].cmd = TA_CONCURRENT_CMD_BUSY_LOOP; in xtest_tee_test_1013_single()
1142 arg[n].repeat = repeat * 10; in xtest_tee_test_1013_single()
1143 arg[n].shm = &shm; in xtest_tee_test_1013_single()
1145 test_1013_thread, arg + n))) in xtest_tee_test_1013_single()
1151 if (arg[n].res == TEEC_ERROR_OUT_OF_MEMORY && in xtest_tee_test_1013_single()
1157 ADBG_EXPECT_TEEC_SUCCESS(c, arg[n].res); in xtest_tee_test_1013_single()
1158 if (arg[n].max_concurrency > max_concurrency) in xtest_tee_test_1013_single()
1159 max_concurrency = arg[n].max_concurrency; in xtest_tee_test_1013_single()
1178 memset(arg, 0, sizeof(arg)); in xtest_tee_test_1013_single()
1183 arg[n].uuid = uuid; in xtest_tee_test_1013_single()
1184 arg[n].cmd = TA_CONCURRENT_CMD_SHA256; in xtest_tee_test_1013_single()
1185 arg[n].repeat = repeat; in xtest_tee_test_1013_single()
1186 arg[n].shm = &shm; in xtest_tee_test_1013_single()
1187 arg[n].in = sha256_in; in xtest_tee_test_1013_single()
1188 arg[n].in_len = sizeof(sha256_in); in xtest_tee_test_1013_single()
1189 arg[n].out = out; in xtest_tee_test_1013_single()
1190 arg[n].out_len = sizeof(out); in xtest_tee_test_1013_single()
1192 test_1013_thread, arg + n))) in xtest_tee_test_1013_single()
1198 if (arg[n].res == TEEC_ERROR_OUT_OF_MEMORY && in xtest_tee_test_1013_single()
1203 if (ADBG_EXPECT_TEEC_SUCCESS(c, arg[n].res)) in xtest_tee_test_1013_single()
1205 arg[n].out, arg[n].out_len); in xtest_tee_test_1013_single()
1206 if (arg[n].max_concurrency > max_concurrency) in xtest_tee_test_1013_single()
1207 max_concurrency = arg[n].max_concurrency; in xtest_tee_test_1013_single()