Lines Matching refs:argv

17 			   char *const argv[])  in do_tpm2_startup()  argument
29 if (!strcasecmp("TPM2_SU_CLEAR", argv[1])) { in do_tpm2_startup()
31 } else if (!strcasecmp("TPM2_SU_STATE", argv[1])) { in do_tpm2_startup()
34 printf("Couldn't recognize mode string: %s\n", argv[1]); in do_tpm2_startup()
42 char *const argv[]) in do_tpm2_self_test() argument
54 if (!strcasecmp("full", argv[1])) { in do_tpm2_self_test()
56 } else if (!strcasecmp("continue", argv[1])) { in do_tpm2_self_test()
59 printf("Couldn't recognize test mode: %s\n", argv[1]); in do_tpm2_self_test()
67 char *const argv[]) in do_tpm2_clear() argument
70 const char *pw = (argc < 3) ? NULL : argv[2]; in do_tpm2_clear()
85 if (!strcasecmp("TPM2_RH_LOCKOUT", argv[1])) in do_tpm2_clear()
87 else if (!strcasecmp("TPM2_RH_PLATFORM", argv[1])) in do_tpm2_clear()
96 char *const argv[]) in do_tpm2_pcr_extend() argument
100 u32 index = simple_strtoul(argv[1], NULL, 0); in do_tpm2_pcr_extend()
101 void *digest = map_sysmem(simple_strtoul(argv[2], NULL, 0), 0); in do_tpm2_pcr_extend()
128 char *const argv[]) in do_tpm_pcr_read() argument
148 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_pcr_read()
152 data = map_sysmem(simple_strtoul(argv[2], NULL, 0), 0); in do_tpm_pcr_read()
167 char *const argv[]) in do_tpm_get_capability() argument
183 capability = simple_strtoul(argv[1], NULL, 0); in do_tpm_get_capability()
184 property = simple_strtoul(argv[2], NULL, 0); in do_tpm_get_capability()
185 data = map_sysmem(simple_strtoul(argv[3], NULL, 0), 0); in do_tpm_get_capability()
186 count = simple_strtoul(argv[4], NULL, 0); in do_tpm_get_capability()
210 char *const argv[]) in do_tpm_dam_reset() argument
212 const char *pw = (argc < 2) ? NULL : argv[1]; in do_tpm_dam_reset()
231 char *const argv[]) in do_tpm_dam_parameters() argument
233 const char *pw = (argc < 5) ? NULL : argv[4]; in do_tpm_dam_parameters()
255 if (strict_strtoul(argv[1], 0, &max_tries)) in do_tpm_dam_parameters()
258 if (strict_strtoul(argv[2], 0, &recovery_time)) in do_tpm_dam_parameters()
261 if (strict_strtoul(argv[3], 0, &lockout_recovery)) in do_tpm_dam_parameters()
275 char *const argv[]) in do_tpm_change_auth() argument
278 const char *newpw = argv[2]; in do_tpm_change_auth()
279 const char *oldpw = (argc == 3) ? NULL : argv[3]; in do_tpm_change_auth()
295 if (!strcasecmp("TPM2_RH_LOCKOUT", argv[1])) in do_tpm_change_auth()
297 else if (!strcasecmp("TPM2_RH_ENDORSEMENT", argv[1])) in do_tpm_change_auth()
299 else if (!strcasecmp("TPM2_RH_OWNER", argv[1])) in do_tpm_change_auth()
301 else if (!strcasecmp("TPM2_RH_PLATFORM", argv[1])) in do_tpm_change_auth()
311 char *const argv[]) in do_tpm_pcr_setauthpolicy() argument
313 u32 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_pcr_setauthpolicy()
314 char *key = argv[2]; in do_tpm_pcr_setauthpolicy()
315 const char *pw = (argc < 4) ? NULL : argv[3]; in do_tpm_pcr_setauthpolicy()
335 int argc, char *const argv[]) in do_tpm_pcr_setauthvalue() argument
337 u32 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_pcr_setauthvalue()
338 char *key = argv[2]; in do_tpm_pcr_setauthvalue()
340 const char *pw = (argc < 4) ? NULL : argv[3]; in do_tpm_pcr_setauthvalue()