Lines Matching refs:TeecContext
110 TEEC_Context TeecContext; in trusty_base_write_security_data() local
128 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_base_write_security_data()
148 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_base_write_security_data()
163 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem0); in trusty_base_write_security_data()
174 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem1); in trusty_base_write_security_data()
202 TEEC_FinalizeContext(&TeecContext); in trusty_base_write_security_data()
213 TEEC_Context TeecContext; in trusty_base_read_security_data() local
232 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_base_read_security_data()
252 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_base_read_security_data()
267 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem0); in trusty_base_read_security_data()
278 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem1); in trusty_base_read_security_data()
303 TEEC_FinalizeContext(&TeecContext); in trusty_base_read_security_data()
311 TEEC_Context TeecContext; in trusty_base_end_security_data() local
323 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_base_end_security_data()
327 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_base_end_security_data()
350 TEEC_FinalizeContext(&TeecContext); in trusty_base_end_security_data()
359 TEEC_Context TeecContext; in trusty_notify_always_use_security() local
371 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_notify_always_use_security()
375 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_notify_always_use_security()
398 TEEC_FinalizeContext(&TeecContext); in trusty_notify_always_use_security()
487 TEEC_Context TeecContext; in trusty_base_end_efuse_or_otp() local
500 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_base_end_efuse_or_otp()
504 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_base_end_efuse_or_otp()
527 TEEC_FinalizeContext(&TeecContext); in trusty_base_end_efuse_or_otp()
538 TEEC_Context TeecContext; in trusty_base_efuse_or_otp_operation() local
551 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_base_efuse_or_otp_operation()
555 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_base_efuse_or_otp_operation()
570 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem0); in trusty_base_efuse_or_otp_operation()
604 TEEC_FinalizeContext(&TeecContext); in trusty_base_efuse_or_otp_operation()
673 TEEC_Context TeecContext; in trusty_ta_encryption_key_is_written() local
688 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_ta_encryption_key_is_written()
692 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_ta_encryption_key_is_written()
715 TEEC_FinalizeContext(&TeecContext); in trusty_ta_encryption_key_is_written()
729 TEEC_Context TeecContext; in trusty_oem_encrypt_data_is_written() local
744 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_oem_encrypt_data_is_written()
748 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_oem_encrypt_data_is_written()
771 TEEC_FinalizeContext(&TeecContext); in trusty_oem_encrypt_data_is_written()
822 TEEC_Context TeecContext; in trusty_write_oem_ns_otp() local
835 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_write_oem_ns_otp()
839 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_write_oem_ns_otp()
856 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem); in trusty_write_oem_ns_otp()
879 TEEC_FinalizeContext(&TeecContext); in trusty_write_oem_ns_otp()
887 TEEC_Context TeecContext; in trusty_read_oem_ns_otp() local
900 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_read_oem_ns_otp()
904 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_read_oem_ns_otp()
921 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem); in trusty_read_oem_ns_otp()
945 TEEC_FinalizeContext(&TeecContext); in trusty_read_oem_ns_otp()
954 TEEC_Context TeecContext; in trusty_write_oem_otp_key() local
967 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_write_oem_otp_key()
971 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_write_oem_otp_key()
988 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem); in trusty_write_oem_otp_key()
1011 TEEC_FinalizeContext(&TeecContext); in trusty_write_oem_otp_key()
1019 TEEC_Context TeecContext; in trusty_oem_otp_key_is_written() local
1034 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_oem_otp_key_is_written()
1038 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_oem_otp_key_is_written()
1063 TEEC_FinalizeContext(&TeecContext); in trusty_oem_otp_key_is_written()
1071 TEEC_Context TeecContext; in trusty_set_oem_hr_otp_read_lock() local
1084 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_set_oem_hr_otp_read_lock()
1088 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_set_oem_hr_otp_read_lock()
1114 TEEC_FinalizeContext(&TeecContext); in trusty_set_oem_hr_otp_read_lock()
1124 TEEC_Context TeecContext; in trusty_oem_otp_key_cipher() local
1175 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_oem_otp_key_cipher()
1179 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_oem_otp_key_cipher()
1190 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem_config); in trusty_oem_otp_key_cipher()
1219 TEEC_FinalizeContext(&TeecContext); in trusty_oem_otp_key_cipher()
1227 TEEC_Context TeecContext; in trusty_write_oem_hdcp_key() local
1240 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_write_oem_hdcp_key()
1244 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_write_oem_hdcp_key()
1261 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem); in trusty_write_oem_hdcp_key()
1284 TEEC_FinalizeContext(&TeecContext); in trusty_write_oem_hdcp_key()
1292 TEEC_Context TeecContext; in trusty_oem_hdcp_key_is_written() local
1307 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_oem_hdcp_key_is_written()
1311 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_oem_hdcp_key_is_written()
1336 TEEC_FinalizeContext(&TeecContext); in trusty_oem_hdcp_key_is_written()
1344 TEEC_Context TeecContext; in trusty_set_oem_hdcp_key_mask() local
1357 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_set_oem_hdcp_key_mask()
1361 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_set_oem_hdcp_key_mask()
1387 TEEC_FinalizeContext(&TeecContext); in trusty_set_oem_hdcp_key_mask()
1396 TEEC_Context TeecContext; in trusty_write_esck_key() local
1409 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_write_esck_key()
1413 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_write_esck_key()
1430 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem); in trusty_write_esck_key()
1453 TEEC_FinalizeContext(&TeecContext); in trusty_write_esck_key()
1461 TEEC_Context TeecContext; in trusty_esck_key_is_written() local
1476 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_esck_key_is_written()
1480 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_esck_key_is_written()
1505 TEEC_FinalizeContext(&TeecContext); in trusty_esck_key_is_written()
1513 TEEC_Context TeecContext; in trusty_set_esck_key_mask() local
1526 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_set_esck_key_mask()
1530 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_set_esck_key_mask()
1556 TEEC_FinalizeContext(&TeecContext); in trusty_set_esck_key_mask()
1565 TEEC_Context TeecContext; in trusty_write_fw_encrypt_key() local
1578 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_write_fw_encrypt_key()
1582 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_write_fw_encrypt_key()
1599 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem); in trusty_write_fw_encrypt_key()
1622 TEEC_FinalizeContext(&TeecContext); in trusty_write_fw_encrypt_key()
1630 TEEC_Context TeecContext; in trusty_fw_encrypt_key_is_written() local
1645 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_fw_encrypt_key_is_written()
1649 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_fw_encrypt_key_is_written()
1674 TEEC_FinalizeContext(&TeecContext); in trusty_fw_encrypt_key_is_written()
1682 TEEC_Context TeecContext; in trusty_set_fw_encrypt_key_mask() local
1695 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_set_fw_encrypt_key_mask()
1699 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_set_fw_encrypt_key_mask()
1725 TEEC_FinalizeContext(&TeecContext); in trusty_set_fw_encrypt_key_mask()
1732 TEEC_Context TeecContext; in trusty_oem_user_ta_transfer() local
1745 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_oem_user_ta_transfer()
1754 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_oem_user_ta_transfer()
1769 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem0); in trusty_oem_user_ta_transfer()
1780 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem1); in trusty_oem_user_ta_transfer()
1818 TEEC_FinalizeContext(&TeecContext); in trusty_oem_user_ta_transfer()
1826 TEEC_Context TeecContext; in trusty_oem_user_ta_storage() local
1838 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_oem_user_ta_storage()
1847 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_oem_user_ta_storage()
1871 TEEC_FinalizeContext(&TeecContext); in trusty_oem_user_ta_storage()
1879 TEEC_Context TeecContext; in trusty_attest_dh() local
1900 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_attest_dh()
1918 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_attest_dh()
1933 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem0); in trusty_attest_dh()
1957 TEEC_FinalizeContext(&TeecContext); in trusty_attest_dh()
1965 TEEC_Context TeecContext; in trusty_attest_uuid() local
1986 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_attest_uuid()
2004 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_attest_uuid()
2019 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem0); in trusty_attest_uuid()
2043 TEEC_FinalizeContext(&TeecContext); in trusty_attest_uuid()
2054 TEEC_Context TeecContext; in trusty_attest_get_ca() local
2077 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_attest_get_ca()
2095 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_attest_get_ca()
2110 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem0); in trusty_attest_get_ca()
2124 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem1); in trusty_attest_get_ca()
2149 TEEC_FinalizeContext(&TeecContext); in trusty_attest_get_ca()
2157 TEEC_Context TeecContext; in trusty_attest_set_ca() local
2177 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_attest_set_ca()
2195 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_attest_set_ca()
2210 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem0); in trusty_attest_set_ca()
2233 TEEC_FinalizeContext(&TeecContext); in trusty_attest_set_ca()
2243 TEEC_Context TeecContext; in trusty_fw_key_cipher() local
2281 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_fw_key_cipher()
2285 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_fw_key_cipher()
2296 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem_config); in trusty_fw_key_cipher()
2325 TEEC_FinalizeContext(&TeecContext); in trusty_fw_key_cipher()
2332 TEEC_Context TeecContext; in trusty_verify_config_ip() local
2344 TeecResult = TEEC_InitializeContext(NULL, &TeecContext); in trusty_verify_config_ip()
2348 TeecResult = TEEC_OpenSession(&TeecContext, in trusty_verify_config_ip()
2356 TEEC_FinalizeContext(&TeecContext); in trusty_verify_config_ip()
2365 TeecResult = TEEC_AllocateSharedMemory(&TeecContext, &SharedMem); in trusty_verify_config_ip()
2387 TEEC_FinalizeContext(&TeecContext); in trusty_verify_config_ip()