Lines Matching refs:algo

108 static const char *algo_str(uint32_t algo)  in algo_str()  argument
110 switch (algo) { in algo_str()
126 static int hash_size(uint32_t algo) in hash_size() argument
128 switch (algo) { in hash_size()
148 static void alloc_shm(size_t sz, uint32_t algo, int offset) in alloc_shm() argument
158 out_shm.size = hash_size(algo); in alloc_shm()
236 static void prepare_op(int algo) in prepare_op() argument
244 op.params[0].value.a = algo; in prepare_op()
286 extern void sha_perf_run_test(int algo, size_t size, unsigned int n, in sha_perf_run_test() argument
306 prepare_op(algo); in sha_perf_run_test()
308 alloc_shm(size, algo, offset); in sha_perf_run_test()
321 op.params[1].memref.size = hash_size(algo); in sha_perf_run_test()
326 algo_str(algo), size); in sha_perf_run_test()
355 int algo, size_t size, int warmup, int l, int n) in usage() argument
363 …err, " -a ALGO Algorithm (SHA1, SHA224, SHA256, SHA384, SHA512) [%s]\n", algo_str(algo)); in usage()
394 int algo = TA_SHA_SHA1; /* Algorithm (-a) */ in sha_perf_runner_cmd_parser() local
404 usage(argv[0], algo, size, warmup, l, n); in sha_perf_runner_cmd_parser()
415 algo = TA_SHA_SHA1; in sha_perf_runner_cmd_parser()
417 algo = TA_SHA_SHA224; in sha_perf_runner_cmd_parser()
419 algo = TA_SHA_SHA256; in sha_perf_runner_cmd_parser()
421 algo = TA_SHA_SHA384; in sha_perf_runner_cmd_parser()
423 algo = TA_SHA_SHA512; in sha_perf_runner_cmd_parser()
427 usage(argv[0], algo, size, warmup, l, n); in sha_perf_runner_cmd_parser()
451 usage(argv[0], algo, size, warmup, l, n); in sha_perf_runner_cmd_parser()
456 sha_perf_run_test(algo, size, n, l, random_in, offset, warmup, verbosity); in sha_perf_runner_cmd_parser()