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