Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 3 of 3) sorted by relevance

/optee_test/ta/aes_perf/
A Dta_aes_perf.c89 int unit = 0; in cmd_process() local
138 unit = params[2].value.b; in cmd_process()
139 if (!unit) in cmd_process()
140 unit = insz; in cmd_process()
149 for (i = 0; i < insz / unit; i++) { in cmd_process()
150 res = do_update(crypto_op, in, unit, out, &outsz); in cmd_process()
152 in = (void *)((uintptr_t)in + unit); in cmd_process()
153 out = (void *)((uintptr_t)out + unit); in cmd_process()
155 if (insz % unit) { in cmd_process()
156 res = do_update(crypto_op, in, insz % unit, out, &outsz); in cmd_process()
/optee_test/host/xtest/
A Daes_perf.c188 size_t unit, int warmup, unsigned int l, unsigned int n) in usage() argument
212 fprintf(stderr, " (0 to ignore) [%zu]\n", unit); in usage()
426 void aes_perf_run_test(int mode, int keysize, int decrypt, size_t size, size_t unit, in aes_perf_run_test() argument
474 op.params[2].value.b = unit; in aes_perf_run_test()
481 verbose("unit=%zu\n", unit); in aes_perf_run_test()
542 #define USAGE() usage(argv[0], keysize, mode, size, unit, warmup, l, n)
551 size_t unit = CRYPTO_DEF_UNIT_SIZE; /* Divide buffer (-u) */ in aes_perf_runner_cmd_parser() local
650 unit = atoi(argv[i]); in aes_perf_runner_cmd_parser()
672 aes_perf_run_test(mode, keysize, decrypt, size, unit, n, l, in aes_perf_runner_cmd_parser()
A Dcrypto_common.h44 size_t unit, unsigned int n, unsigned int l,

Completed in 8 milliseconds