Lines Matching refs:filename
81 char filename[256], filename2[256]; in nfa_nv_co_read() local
83 memset(filename, 0, sizeof(filename)); in nfa_nv_co_read()
91 sprintf(filename, "%s%u", filename2, block); in nfa_nv_co_read()
93 ALOGD("%s: buffer len=%u; file=%s", __func__, nbytes, filename); in nfa_nv_co_read()
94 int fileStream = open(filename, O_RDONLY); in nfa_nv_co_read()
134 char filename[256], filename2[256]; in nfa_nv_co_write() local
136 memset(filename, 0, sizeof(filename)); in nfa_nv_co_write()
144 sprintf(filename, "%s%u", filename2, block); in nfa_nv_co_write()
145 ALOGD("%s: bytes=%u; file=%s", __func__, nbytes, filename); in nfa_nv_co_write()
149 fileStream = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in nfa_nv_co_write()
182 char filename[256], filename2[256]; in delete_stack_non_volatile_store() local
189 memset(filename, 0, sizeof(filename)); in delete_stack_non_volatile_store()
197 sprintf(filename, "%s%u", filename2, DH_NV_BLOCK); in delete_stack_non_volatile_store()
198 remove(filename); in delete_stack_non_volatile_store()
199 sprintf(filename, "%s%u", filename2, HC_F3_NV_BLOCK); in delete_stack_non_volatile_store()
200 remove(filename); in delete_stack_non_volatile_store()
201 sprintf(filename, "%s%u", filename2, HC_F4_NV_BLOCK); in delete_stack_non_volatile_store()
202 remove(filename); in delete_stack_non_volatile_store()
203 sprintf(filename, "%s%u", filename2, HC_F2_NV_BLOCK); in delete_stack_non_volatile_store()
204 remove(filename); in delete_stack_non_volatile_store()
205 sprintf(filename, "%s%u", filename2, HC_F5_NV_BLOCK); in delete_stack_non_volatile_store()
206 remove(filename); in delete_stack_non_volatile_store()
222 char filename[256], filename2[256]; in verify_stack_non_volatile_store() local
225 memset(filename, 0, sizeof(filename)); in verify_stack_non_volatile_store()
234 sprintf(filename, "%s%u", filename2, DH_NV_BLOCK); in verify_stack_non_volatile_store()
235 if (crcChecksumVerifyIntegrity(filename)) { in verify_stack_non_volatile_store()
236 sprintf(filename, "%s%u", filename2, HC_F3_NV_BLOCK); in verify_stack_non_volatile_store()
237 if (crcChecksumVerifyIntegrity(filename)) { in verify_stack_non_volatile_store()
238 sprintf(filename, "%s%u", filename2, HC_F4_NV_BLOCK); in verify_stack_non_volatile_store()
239 if (crcChecksumVerifyIntegrity(filename)) { in verify_stack_non_volatile_store()
240 sprintf(filename, "%s%u", filename2, HC_F2_NV_BLOCK); in verify_stack_non_volatile_store()
241 if (crcChecksumVerifyIntegrity(filename)) { in verify_stack_non_volatile_store()
242 sprintf(filename, "%s%u", filename2, HC_F5_NV_BLOCK); in verify_stack_non_volatile_store()
243 if (crcChecksumVerifyIntegrity(filename)) isValid = true; in verify_stack_non_volatile_store()