Lines Matching +full:0 +full:xc1
31 static struct session_data oiap_session = {0, };
38 0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0x0, in tpm1_startup()
44 0, command, sizeof(command), in tpm1_startup()
59 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x50, in tpm1_self_test_full()
67 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x53, in tpm1_continue_self_test()
89 ret = tpm1_physical_set_deactivated(dev, 0); in tpm1_clear_and_reenable()
101 0x0, 0xc1, /* TPM_TAG */ in tpm1_nv_define_space()
102 0x0, 0x0, 0x0, 0x65, /* parameter size */ in tpm1_nv_define_space()
103 0x0, 0x0, 0x0, 0xcc, /* TPM_COMMAND_CODE */ in tpm1_nv_define_space()
105 0x0, 0x18, /* ...->TPM_STRUCTURE_TAG */ in tpm1_nv_define_space()
106 0, 0, 0, 0, /* ...->TPM_NV_INDEX */ in tpm1_nv_define_space()
108 0x0, 0x3, in tpm1_nv_define_space()
109 0, 0, 0, in tpm1_nv_define_space()
110 0x1f, in tpm1_nv_define_space()
111 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, in tpm1_nv_define_space()
113 0x0, 0x3, in tpm1_nv_define_space()
114 0, 0, 0, in tpm1_nv_define_space()
115 0x1f, in tpm1_nv_define_space()
116 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, in tpm1_nv_define_space()
118 0x0, 0x17, /* ...->TPM_STRUCTURE_TAG */ in tpm1_nv_define_space()
119 0, 0, 0, 0, /* ...->attributes */ in tpm1_nv_define_space()
121 0, /* bReadSTClear */ in tpm1_nv_define_space()
122 0, /* bWriteSTClear */ in tpm1_nv_define_space()
123 0, /* bWriteDefine */ in tpm1_nv_define_space()
124 0, 0, 0, 0, /* size */ in tpm1_nv_define_space()
132 0, command, sizeof(command), in tpm1_nv_define_space()
143 return tpm1_nv_define_space(dev, TPM_NV_INDEX_LOCK, 0, 0); in tpm1_nv_set_locked()
149 0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0xcf, in tpm1_nv_read_value()
161 0, command, sizeof(command), in tpm1_nv_read_value()
177 return 0; in tpm1_nv_read_value()
184 0x0, 0xc1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcd, in tpm1_nv_write_value()
198 0, command, sizeof(command), in tpm1_nv_write_value()
208 return 0; in tpm1_nv_write_value()
215 0x0, 0xc1, 0x0, 0x0, 0x0, 0x22, 0x0, 0x0, 0x0, 0x14, in tpm1_extend()
226 0, command, sizeof(command), in tpm1_extend()
240 return 0; in tpm1_extend()
246 0x0, 0xc1, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x15, in tpm1_pcr_read()
258 0, command, sizeof(command), in tpm1_pcr_read()
268 return 0; in tpm1_pcr_read()
274 0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x0, in tpm1_tsc_physical_presence()
280 0, command, sizeof(command), in tpm1_tsc_physical_presence()
290 0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x2, 0xa0, in tpm1_finalise_physical_presence()
299 0x0, 0xc1, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x0, 0x0, 0x7c, in tpm1_read_pubek()
324 return 0; in tpm1_read_pubek()
330 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5d, in tpm1_force_clear()
339 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x6f, in tpm1_physical_enable()
348 0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x70, in tpm1_physical_disable()
357 0x0, 0xc1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0, 0x72, in tpm1_physical_set_deactivated()
363 0, command, sizeof(command), in tpm1_physical_set_deactivated()
374 0x0, 0xc1, /* TPM_TAG */ in tpm1_get_capability()
375 0x0, 0x0, 0x0, 0x16, /* parameter size */ in tpm1_get_capability()
376 0x0, 0x0, 0x0, 0x65, /* TPM_COMMAND_CODE */ in tpm1_get_capability()
377 0x0, 0x0, 0x0, 0x0, /* TPM_CAPABILITY_AREA */ in tpm1_get_capability()
378 0x0, 0x0, 0x0, 0x4, /* subcap size */ in tpm1_get_capability()
379 0x0, 0x0, 0x0, 0x0, /* subcap value */ in tpm1_get_capability()
391 0, command, sizeof(command), in tpm1_get_capability()
407 return 0; in tpm1_get_capability()
414 0x0, 0xc1, /* TPM_TAG */ in tpm1_get_permanent_flags()
415 0x0, 0x0, 0x0, 0x16, /* parameter size */ in tpm1_get_permanent_flags()
416 0x0, 0x0, 0x0, 0x65, /* TPM_COMMAND_CODE */ in tpm1_get_permanent_flags()
417 0x0, 0x0, 0x0, 0x4, /* TPM_CAP_FLAG_PERM */ in tpm1_get_permanent_flags()
418 0x0, 0x0, 0x0, 0x4, /* subcap size */ in tpm1_get_permanent_flags()
419 0x0, 0x0, 0x1, 0x8, /* subcap value */ in tpm1_get_permanent_flags()
446 return 0; in tpm1_get_permanent_flags()
452 0x0, 0xc1, /* TPM_TAG */ in tpm1_get_permissions()
453 0x0, 0x0, 0x0, 0x16, /* parameter size */ in tpm1_get_permissions()
454 0x0, 0x0, 0x0, 0x65, /* TPM_COMMAND_CODE */ in tpm1_get_permissions()
455 0x0, 0x0, 0x0, 0x11, in tpm1_get_permissions()
456 0x0, 0x0, 0x0, 0x4, in tpm1_get_permissions()
465 0, command, sizeof(command), in tpm1_get_permissions()
475 return 0; in tpm1_get_permissions()
482 0x00, 0xc1, /* TPM_TAG */ in tpm1_flush_specific()
483 0x00, 0x00, 0x00, 0x12, /* parameter size */ in tpm1_flush_specific()
484 0x00, 0x00, 0x00, 0xba, /* TPM_COMMAND_CODE */ in tpm1_flush_specific()
485 0x00, 0x00, 0x00, 0x00, /* key handle */ in tpm1_flush_specific()
486 0x00, 0x00, 0x00, 0x00, /* resource type */ in tpm1_flush_specific()
495 0, command, sizeof(command), in tpm1_flush_specific()
503 return 0; in tpm1_flush_specific()
551 0, auth_session->handle, in create_request_auth()
600 0, command_code)) in verify_response_auth()
641 0x00, 0xc1, /* TPM_TAG */ in tpm1_terminate_auth_session()
642 0x00, 0x00, 0x00, 0x00, /* parameter size */ in tpm1_terminate_auth_session()
643 0x00, 0x00, 0x00, 0xba, /* TPM_COMMAND_CODE */ in tpm1_terminate_auth_session()
644 0x00, 0x00, 0x00, 0x00, /* TPM_HANDLE */ in tpm1_terminate_auth_session()
645 0x00, 0x00, 0x00, 0x02, /* TPM_RESOURCE_TYPE */ in tpm1_terminate_auth_session()
651 0, command, sizeof(command), in tpm1_terminate_auth_session()
655 oiap_session.valid = 0; in tpm1_terminate_auth_session()
672 0x00, 0xc1, /* TPM_TAG */ in tpm1_oiap()
673 0x00, 0x00, 0x00, 0x0a, /* parameter size */ in tpm1_oiap()
674 0x00, 0x00, 0x00, 0x0a, /* TPM_COMMAND_CODE */ in tpm1_oiap()
696 return 0; in tpm1_oiap()
704 0x00, 0xc2, /* TPM_TAG */ in tpm1_load_key2_oiap()
705 0x00, 0x00, 0x00, 0x00, /* parameter size */ in tpm1_load_key2_oiap()
706 0x00, 0x00, 0x00, 0x41, /* TPM_COMMAND_CODE */ in tpm1_load_key2_oiap()
707 0x00, 0x00, 0x00, 0x00, /* parent handle */ in tpm1_load_key2_oiap()
725 0, command, sizeof(command), in tpm1_load_key2_oiap()
743 oiap_session.valid = 0; in tpm1_load_key2_oiap()
747 err = verify_response_auth(0x00000041, response, in tpm1_load_key2_oiap()
762 return 0; in tpm1_load_key2_oiap()
770 0x00, 0xc2, /* TPM_TAG */ in tpm1_get_pub_key_oiap()
771 0x00, 0x00, 0x00, 0x00, /* parameter size */ in tpm1_get_pub_key_oiap()
772 0x00, 0x00, 0x00, 0x21, /* TPM_COMMAND_CODE */ in tpm1_get_pub_key_oiap()
773 0x00, 0x00, 0x00, 0x00, /* key handle */ in tpm1_get_pub_key_oiap()
790 0, command, sizeof(command), in tpm1_get_pub_key_oiap()
804 oiap_session.valid = 0; in tpm1_get_pub_key_oiap()
807 err = verify_response_auth(0x00000021, response, in tpm1_get_pub_key_oiap()
809 0, &oiap_session, in tpm1_get_pub_key_oiap()
827 return 0; in tpm1_get_pub_key_oiap()
850 for (i = 0; i < key_count; ++i, ptr += 4) in tpm1_find_key_sha1()
854 for (i = 0; i < key_count; ++i) { in tpm1_find_key_sha1()
864 return 0; in tpm1_find_key_sha1()
876 0x0, 0xc1, /* TPM_TAG */ in tpm1_get_random()
877 0x0, 0x0, 0x0, 0xe, /* parameter size */ in tpm1_get_random()
878 0x0, 0x0, 0x0, 0x46, /* TPM_COMMAND_CODE */ in tpm1_get_random()
888 while (count > 0) { in tpm1_get_random()
894 0, command, sizeof(command), in tpm1_get_random()
914 return 0; in tpm1_get_random()