Home
last modified time | relevance | path

Searched refs:s_NVFile (Results 1 – 2 of 2) sorted by relevance

/external/tpm2/
DNVMem.c21 static FILE* s_NVFile; variable
72 if(s_NVFile != NULL) return 0; in _plat__NVEnable()
74 s_NVFile = fopen("NVChip", "r+b"); in _plat__NVEnable()
75 if(NULL != s_NVFile) in _plat__NVEnable()
78 fseek(s_NVFile, 0, SEEK_END); in _plat__NVEnable()
79 if(0 == ftell(s_NVFile)) in _plat__NVEnable()
80 s_NVFile = NULL; in _plat__NVEnable()
82 if(s_NVFile == NULL) in _plat__NVEnable()
87 s_NVFile = fopen("NVChip", "w+b"); in _plat__NVEnable()
89 fseek(s_NVFile, 0, SEEK_END); in _plat__NVEnable()
[all …]
Dpart4.txt36082 27 if(s_NVFile != NULL) return 0;
36085 30 if(0 != fopen_s(&s_NVFile, "NVChip", "r+b"))
36086 31 s_NVFile = NULL;
36088 33 if(NULL != s_NVFile)
36091 36 fseek(s_NVFile, 0, SEEK_END);
36092 37 if(0 == ftell(s_NVFile))
36093 38 s_NVFile = NULL;
36096 41 if(s_NVFile == NULL)
36102 47 fopen_s(&s_NVFile, "NVChip", "w+b");
36104 49 fseek(s_NVFile, 0, SEEK_END);
[all …]