Lines Matching refs:filename

67   char filename[256];  in nfc_hal_nv_co_read()  local
74 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block); in nfc_hal_nv_co_read()
76 ALOGD("%s: buffer len=%u; file=%s", __func__, nbytes, filename); in nfc_hal_nv_co_read()
77 int fileStream = open(filename, O_RDONLY); in nfc_hal_nv_co_read()
119 char filename[256]; in nfc_hal_nv_co_write() local
127 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), block); in nfc_hal_nv_co_write()
128 ALOGD("%s: bytes=%u; file=%s", __func__, nbytes, filename); in nfc_hal_nv_co_write()
130 fileStream = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in nfc_hal_nv_co_write()
185 char filename[256]; in delete_hal_non_volatile_store() local
199 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), DH_NV_BLOCK); in delete_hal_non_volatile_store()
200 remove(filename); in delete_hal_non_volatile_store()
201 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F3_NV_BLOCK); in delete_hal_non_volatile_store()
202 remove(filename); in delete_hal_non_volatile_store()
203 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F4_NV_BLOCK); in delete_hal_non_volatile_store()
204 remove(filename); in delete_hal_non_volatile_store()
205 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F2_NV_BLOCK); in delete_hal_non_volatile_store()
206 remove(filename); in delete_hal_non_volatile_store()
207 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F5_NV_BLOCK); in delete_hal_non_volatile_store()
208 remove(filename); in delete_hal_non_volatile_store()
225 char filename[256]; in verify_hal_non_volatile_store() local
234 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), DH_NV_BLOCK); in verify_hal_non_volatile_store()
235 if (crcChecksumVerifyIntegrity(filename)) { in verify_hal_non_volatile_store()
236 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F3_NV_BLOCK); in verify_hal_non_volatile_store()
237 if (crcChecksumVerifyIntegrity(filename)) { in verify_hal_non_volatile_store()
238 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), HC_F4_NV_BLOCK); in verify_hal_non_volatile_store()
239 if (crcChecksumVerifyIntegrity(filename)) { in verify_hal_non_volatile_store()
240 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), in verify_hal_non_volatile_store()
242 if (crcChecksumVerifyIntegrity(filename)) { in verify_hal_non_volatile_store()
243 snprintf(filename, sizeof(filename), "%s%u", fn.c_str(), in verify_hal_non_volatile_store()
245 if (crcChecksumVerifyIntegrity(filename)) isValid = true; in verify_hal_non_volatile_store()