Lines Matching refs:mode
166 static const char *mode_str(uint32_t mode) in mode_str() argument
168 switch (mode) { in mode_str()
187 static void usage(const char *progname, int keysize, int mode, size_t size, in usage() argument
206 fprintf(stderr, " -m MODE AES mode: ECB, CBC, CTR, XTS, GCM [%s]\n", mode_str(mode)); in usage()
352 static void prepare_key(int decrypt, int keysize, int mode) in prepare_key() argument
363 op.params[1].value.a = mode; in prepare_key()
426 void aes_perf_run_test(int mode, int keysize, int decrypt, size_t size, size_t unit, in aes_perf_run_test() argument
459 prepare_key(decrypt, keysize, mode); in aes_perf_run_test()
477 mode_str(mode), (decrypt ? "de" : "en"), keysize, size); in aes_perf_run_test()
542 #define USAGE() usage(argv[0], keysize, mode, size, unit, warmup, l, n)
557 int mode = TA_AES_ECB; /* AES mode (-m) */ in aes_perf_runner_cmd_parser() local
593 mode = TA_AES_ECB; in aes_perf_runner_cmd_parser()
595 mode = TA_AES_CBC; in aes_perf_runner_cmd_parser()
597 mode = TA_AES_CTR; in aes_perf_runner_cmd_parser()
599 mode = TA_AES_XTS; in aes_perf_runner_cmd_parser()
601 mode = TA_AES_GCM; in aes_perf_runner_cmd_parser()
672 aes_perf_run_test(mode, keysize, decrypt, size, unit, n, l, in aes_perf_runner_cmd_parser()