Lines Matching refs:argv

16 			  char *const argv[])  in do_tpm_startup()  argument
27 if (!strcasecmp("TPM_ST_CLEAR", argv[1])) { in do_tpm_startup()
29 } else if (!strcasecmp("TPM_ST_STATE", argv[1])) { in do_tpm_startup()
31 } else if (!strcasecmp("TPM_ST_DEACTIVATED", argv[1])) { in do_tpm_startup()
34 printf("Couldn't recognize mode string: %s\n", argv[1]); in do_tpm_startup()
42 char *const argv[]) in do_tpm_nv_define_space() argument
54 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_nv_define_space()
55 perm = simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_define_space()
56 size = simple_strtoul(argv[3], NULL, 0); in do_tpm_nv_define_space()
62 char *const argv[]) in do_tpm_nv_read_value() argument
74 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_nv_read_value()
75 data = (void *)simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_read_value()
76 count = simple_strtoul(argv[3], NULL, 0); in do_tpm_nv_read_value()
88 char *const argv[]) in do_tpm_nv_write_value() argument
101 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_nv_write_value()
102 data = parse_byte_string(argv[2], NULL, &count); in do_tpm_nv_write_value()
104 printf("Couldn't parse byte string %s\n", argv[2]); in do_tpm_nv_write_value()
115 char *const argv[]) in do_tpm_extend() argument
127 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_extend()
128 if (!parse_byte_string(argv[2], in_digest, NULL)) { in do_tpm_extend()
129 printf("Couldn't parse byte string %s\n", argv[2]); in do_tpm_extend()
143 char *const argv[]) in do_tpm_pcr_read() argument
155 index = simple_strtoul(argv[1], NULL, 0); in do_tpm_pcr_read()
156 data = (void *)simple_strtoul(argv[2], NULL, 0); in do_tpm_pcr_read()
157 count = simple_strtoul(argv[3], NULL, 0); in do_tpm_pcr_read()
169 int argc, char *const argv[]) in do_tpm_tsc_physical_presence() argument
181 presence = (u16)simple_strtoul(argv[1], NULL, 0); in do_tpm_tsc_physical_presence()
187 char *const argv[]) in do_tpm_read_pubek() argument
199 data = (void *)simple_strtoul(argv[1], NULL, 0); in do_tpm_read_pubek()
200 count = simple_strtoul(argv[2], NULL, 0); in do_tpm_read_pubek()
212 int argc, char *const argv[]) in do_tpm_physical_set_deactivated() argument
224 state = (u8)simple_strtoul(argv[1], NULL, 0); in do_tpm_physical_set_deactivated()
230 char *const argv[]) in do_tpm_get_capability() argument
243 cap_area = simple_strtoul(argv[1], NULL, 0); in do_tpm_get_capability()
244 sub_cap = simple_strtoul(argv[2], NULL, 0); in do_tpm_get_capability()
245 cap = (void *)simple_strtoul(argv[3], NULL, 0); in do_tpm_get_capability()
246 count = simple_strtoul(argv[4], NULL, 0); in do_tpm_get_capability()
258 char *const argv[]) in do_tpm_raw_transfer() argument
266 command = parse_byte_string(argv[1], NULL, &count); in do_tpm_raw_transfer()
268 printf("Couldn't parse byte string %s\n", argv[1]); in do_tpm_raw_transfer()
287 char *const argv[]) in do_tpm_nv_define() argument
299 size = type_string_get_space_size(argv[1]); in do_tpm_nv_define()
304 index = simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_define()
305 perm = simple_strtoul(argv[3], NULL, 0); in do_tpm_nv_define()
311 char *const argv[]) in do_tpm_nv_read() argument
324 if (argc != 3 + type_string_get_num_values(argv[1])) in do_tpm_nv_read()
326 index = simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_read()
327 data = type_string_alloc(argv[1], &count); in do_tpm_nv_read()
335 if (type_string_write_vars(argv[1], data, argv + 3)) { in do_tpm_nv_read()
346 char *const argv[]) in do_tpm_nv_write() argument
359 if (argc != 3 + type_string_get_num_values(argv[1])) in do_tpm_nv_write()
361 index = simple_strtoul(argv[2], NULL, 0); in do_tpm_nv_write()
362 data = type_string_alloc(argv[1], &count); in do_tpm_nv_write()
367 if (type_string_pack(argv[1], argv + 3, data)) { in do_tpm_nv_write()
382 char *const argv[]) in do_tpm_oiap() argument
399 char *const argv[]) in do_tpm_load_key_by_sha1() argument
415 parse_byte_string(argv[1], parent_hash, NULL); in do_tpm_load_key_by_sha1()
416 key = (void *)simple_strtoul(argv[2], NULL, 0); in do_tpm_load_key_by_sha1()
417 key_len = simple_strtoul(argv[3], NULL, 0); in do_tpm_load_key_by_sha1()
418 if (strlen(argv[4]) != 2 * DIGEST_LENGTH) in do_tpm_load_key_by_sha1()
420 parse_byte_string(argv[4], usage_auth, NULL); in do_tpm_load_key_by_sha1()
442 char *const argv[]) in do_tpm_load_key2_oiap() argument
457 parent_handle = simple_strtoul(argv[1], NULL, 0); in do_tpm_load_key2_oiap()
458 key = (void *)simple_strtoul(argv[2], NULL, 0); in do_tpm_load_key2_oiap()
459 key_len = simple_strtoul(argv[3], NULL, 0); in do_tpm_load_key2_oiap()
460 if (strlen(argv[4]) != 2 * DIGEST_LENGTH) in do_tpm_load_key2_oiap()
462 parse_byte_string(argv[4], usage_auth, NULL); in do_tpm_load_key2_oiap()
473 char *const argv[]) in do_tpm_get_pub_key_oiap() argument
489 key_handle = simple_strtoul(argv[1], NULL, 0); in do_tpm_get_pub_key_oiap()
490 if (strlen(argv[2]) != 2 * DIGEST_LENGTH) in do_tpm_get_pub_key_oiap()
492 parse_byte_string(argv[2], usage_auth, NULL); in do_tpm_get_pub_key_oiap()
509 char *const argv[]) in TPM_COMMAND_NO_ARG()
522 if (!strcasecmp(argv[1], "key")) in TPM_COMMAND_NO_ARG()
524 else if (!strcasecmp(argv[1], "auth")) in TPM_COMMAND_NO_ARG()
526 else if (!strcasecmp(argv[1], "hash")) in TPM_COMMAND_NO_ARG()
528 else if (!strcasecmp(argv[1], "trans")) in TPM_COMMAND_NO_ARG()
530 else if (!strcasecmp(argv[1], "context")) in TPM_COMMAND_NO_ARG()
532 else if (!strcasecmp(argv[1], "counter")) in TPM_COMMAND_NO_ARG()
534 else if (!strcasecmp(argv[1], "delegate")) in TPM_COMMAND_NO_ARG()
536 else if (!strcasecmp(argv[1], "daa_tpm")) in TPM_COMMAND_NO_ARG()
538 else if (!strcasecmp(argv[1], "daa_v0")) in TPM_COMMAND_NO_ARG()
540 else if (!strcasecmp(argv[1], "daa_v1")) in TPM_COMMAND_NO_ARG()
544 printf("Resource type %s unknown.\n", argv[1]); in TPM_COMMAND_NO_ARG()
548 if (!strcasecmp(argv[2], "all")) { in TPM_COMMAND_NO_ARG()
567 u32 handle = simple_strtoul(argv[2], NULL, 0); in TPM_COMMAND_NO_ARG()
570 printf("Illegal resource handle %s\n", argv[2]); in TPM_COMMAND_NO_ARG()
582 char *const argv[]) in do_tpm_list() argument
594 if (!strcasecmp(argv[1], "key")) in do_tpm_list()
596 else if (!strcasecmp(argv[1], "auth")) in do_tpm_list()
598 else if (!strcasecmp(argv[1], "hash")) in do_tpm_list()
600 else if (!strcasecmp(argv[1], "trans")) in do_tpm_list()
602 else if (!strcasecmp(argv[1], "context")) in do_tpm_list()
604 else if (!strcasecmp(argv[1], "counter")) in do_tpm_list()
606 else if (!strcasecmp(argv[1], "delegate")) in do_tpm_list()
608 else if (!strcasecmp(argv[1], "daa_tpm")) in do_tpm_list()
610 else if (!strcasecmp(argv[1], "daa_v0")) in do_tpm_list()
612 else if (!strcasecmp(argv[1], "daa_v1")) in do_tpm_list()
616 printf("Resource type %s unknown.\n", argv[1]); in do_tpm_list()
630 printf("Resources of type %s (%02x):\n", argv[1], type); in do_tpm_list()