Lines Matching refs:argv
17 char *const argv[]) in do_tpm_startup() argument
28 if (!strcasecmp("TPM_ST_CLEAR", argv[1])) { in do_tpm_startup()
30 } else if (!strcasecmp("TPM_ST_STATE", argv[1])) { in do_tpm_startup()
32 } else if (!strcasecmp("TPM_ST_DEACTIVATED", argv[1])) { in do_tpm_startup()
35 printf("Couldn't recognize mode string: %s\n", argv[1]); in do_tpm_startup()
43 char *const argv[]) in do_tpm_nv_define_space() argument
55 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_nv_define_space()
56 perm = simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_define_space()
57 size = simple_strtoul(argv[3], NULL, 0); in do_tpm_nv_define_space()
63 char *const argv[]) in do_tpm_nv_read_value() argument
75 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_nv_read_value()
76 data = (void *)simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_read_value()
77 count = simple_strtoul(argv[3], NULL, 0); in do_tpm_nv_read_value()
89 char *const argv[]) in do_tpm_nv_write_value() argument
102 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_nv_write_value()
103 data = parse_byte_string(argv[2], NULL, &count); in do_tpm_nv_write_value()
105 printf("Couldn't parse byte string %s\n", argv[2]); in do_tpm_nv_write_value()
116 char *const argv[]) in do_tpm_extend() argument
128 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_extend()
129 if (!parse_byte_string(argv[2], in_digest, NULL)) { in do_tpm_extend()
130 printf("Couldn't parse byte string %s\n", argv[2]); in do_tpm_extend()
145 char *const argv[]) in do_tpm_pcr_read() argument
157 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_pcr_read()
158 data = (void *)simple_strtoul(argv[2], NULL, 0); in do_tpm_pcr_read()
159 count = simple_strtoul(argv[3], NULL, 0); in do_tpm_pcr_read()
171 int argc, char *const argv[]) in do_tpm_tsc_physical_presence() argument
183 presence = (u16)simple_strtoul(argv[1], NULL, 0); in do_tpm_tsc_physical_presence()
189 char *const argv[]) in do_tpm_read_pubek() argument
201 data = (void *)simple_strtoul(argv[1], NULL, 0); in do_tpm_read_pubek()
202 count = simple_strtoul(argv[2], NULL, 0); in do_tpm_read_pubek()
214 int argc, char *const argv[]) in do_tpm_physical_set_deactivated() argument
226 state = (u8)simple_strtoul(argv[1], NULL, 0); in do_tpm_physical_set_deactivated()
232 char *const argv[]) in do_tpm_get_capability() argument
245 cap_area = simple_strtoul(argv[1], NULL, 0); in do_tpm_get_capability()
246 sub_cap = simple_strtoul(argv[2], NULL, 0); in do_tpm_get_capability()
247 cap = (void *)simple_strtoul(argv[3], NULL, 0); in do_tpm_get_capability()
248 count = simple_strtoul(argv[4], NULL, 0); in do_tpm_get_capability()
260 char *const argv[]) in do_tpm_raw_transfer() argument
268 command = parse_byte_string(argv[1], NULL, &count); in do_tpm_raw_transfer()
270 printf("Couldn't parse byte string %s\n", argv[1]); in do_tpm_raw_transfer()
289 char *const argv[]) in do_tpm_nv_define() argument
301 size = type_string_get_space_size(argv[1]); in do_tpm_nv_define()
306 index = simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_define()
307 perm = simple_strtoul(argv[3], NULL, 0); in do_tpm_nv_define()
313 char *const argv[]) in do_tpm_nv_read() argument
326 if (argc != 3 + type_string_get_num_values(argv[1])) in do_tpm_nv_read()
328 index = simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_read()
329 data = type_string_alloc(argv[1], &count); in do_tpm_nv_read()
337 if (type_string_write_vars(argv[1], data, argv + 3)) { in do_tpm_nv_read()
348 char *const argv[]) in do_tpm_nv_write() argument
361 if (argc != 3 + type_string_get_num_values(argv[1])) in do_tpm_nv_write()
363 index = simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_write()
364 data = type_string_alloc(argv[1], &count); in do_tpm_nv_write()
369 if (type_string_pack(argv[1], argv + 3, data)) { in do_tpm_nv_write()
384 char *const argv[]) in do_tpm_oiap() argument
401 char *const argv[]) in do_tpm_load_key_by_sha1() argument
417 parse_byte_string(argv[1], parent_hash, NULL); in do_tpm_load_key_by_sha1()
418 key = (void *)simple_strtoul(argv[2], NULL, 0); in do_tpm_load_key_by_sha1()
419 key_len = simple_strtoul(argv[3], NULL, 0); in do_tpm_load_key_by_sha1()
420 if (strlen(argv[4]) != 2 * DIGEST_LENGTH) in do_tpm_load_key_by_sha1()
422 parse_byte_string(argv[4], usage_auth, NULL); in do_tpm_load_key_by_sha1()
444 char *const argv[]) in do_tpm_load_key2_oiap() argument
459 parent_handle = simple_strtoul(argv[1], NULL, 0); in do_tpm_load_key2_oiap()
460 key = (void *)simple_strtoul(argv[2], NULL, 0); in do_tpm_load_key2_oiap()
461 key_len = simple_strtoul(argv[3], NULL, 0); in do_tpm_load_key2_oiap()
462 if (strlen(argv[4]) != 2 * DIGEST_LENGTH) in do_tpm_load_key2_oiap()
464 parse_byte_string(argv[4], usage_auth, NULL); in do_tpm_load_key2_oiap()
475 char *const argv[]) in do_tpm_get_pub_key_oiap() argument
491 key_handle = simple_strtoul(argv[1], NULL, 0); in do_tpm_get_pub_key_oiap()
492 if (strlen(argv[2]) != 2 * DIGEST_LENGTH) in do_tpm_get_pub_key_oiap()
494 parse_byte_string(argv[2], usage_auth, NULL); in do_tpm_get_pub_key_oiap()
511 char *const argv[]) in TPM_COMMAND_NO_ARG()
524 if (!strcasecmp(argv[1], "key")) in TPM_COMMAND_NO_ARG()
526 else if (!strcasecmp(argv[1], "auth")) in TPM_COMMAND_NO_ARG()
528 else if (!strcasecmp(argv[1], "hash")) in TPM_COMMAND_NO_ARG()
530 else if (!strcasecmp(argv[1], "trans")) in TPM_COMMAND_NO_ARG()
532 else if (!strcasecmp(argv[1], "context")) in TPM_COMMAND_NO_ARG()
534 else if (!strcasecmp(argv[1], "counter")) in TPM_COMMAND_NO_ARG()
536 else if (!strcasecmp(argv[1], "delegate")) in TPM_COMMAND_NO_ARG()
538 else if (!strcasecmp(argv[1], "daa_tpm")) in TPM_COMMAND_NO_ARG()
540 else if (!strcasecmp(argv[1], "daa_v0")) in TPM_COMMAND_NO_ARG()
542 else if (!strcasecmp(argv[1], "daa_v1")) in TPM_COMMAND_NO_ARG()
546 printf("Resource type %s unknown.\n", argv[1]); in TPM_COMMAND_NO_ARG()
550 if (!strcasecmp(argv[2], "all")) { in TPM_COMMAND_NO_ARG()
569 u32 handle = simple_strtoul(argv[2], NULL, 0); in TPM_COMMAND_NO_ARG()
572 printf("Illegal resource handle %s\n", argv[2]); in TPM_COMMAND_NO_ARG()
584 char *const argv[]) in do_tpm_list() argument
601 if (!strcasecmp(argv[1], "key")) in do_tpm_list()
603 else if (!strcasecmp(argv[1], "auth")) in do_tpm_list()
605 else if (!strcasecmp(argv[1], "hash")) in do_tpm_list()
607 else if (!strcasecmp(argv[1], "trans")) in do_tpm_list()
609 else if (!strcasecmp(argv[1], "context")) in do_tpm_list()
611 else if (!strcasecmp(argv[1], "counter")) in do_tpm_list()
613 else if (!strcasecmp(argv[1], "delegate")) in do_tpm_list()
615 else if (!strcasecmp(argv[1], "daa_tpm")) in do_tpm_list()
617 else if (!strcasecmp(argv[1], "daa_v0")) in do_tpm_list()
619 else if (!strcasecmp(argv[1], "daa_v1")) in do_tpm_list()
623 printf("Resource type %s unknown.\n", argv[1]); in do_tpm_list()
637 printf("Resources of type %s (%02x):\n", argv[1], type); in do_tpm_list()