Lines Matching refs:iFileSize

235 	int iFileSize;  in parse_config_file()  local
237 iFileSize = ftell(file); in parse_config_file()
240 pConfigBuf = new char[iFileSize + 1]; in parse_config_file()
245 memset(pConfigBuf, 0, iFileSize + 1); in parse_config_file()
247 iRead = fread(pConfigBuf, 1, iFileSize, file); in parse_config_file()
248 if (iRead != iFileSize){ in parse_config_file()
250 …_pLogObject->Record("%s failed, err=%d, read=%d, total=%d\r\n", __func__, errno, iRead, iFileSize); in parse_config_file()
425 int iFileSize; in parse_parameter_file() local
427 iFileSize = ftell(file); in parse_parameter_file()
430 pParamBuf = new char[iFileSize]; in parse_parameter_file()
436 iRead = fread(pParamBuf, 1, iFileSize, file); in parse_parameter_file()
437 if (iRead != iFileSize) { in parse_parameter_file()
439 … g_pLogObject->Record("%s failed, err=%d, read=%d, total=%d\r\n", __func__, errno,iRead,iFileSize); in parse_parameter_file()
633 int iFileSize; in load_gpt_buffer() local
635 iFileSize = ftell(file); in load_gpt_buffer()
637 if (iFileSize != 67 * SECTOR_SIZE) { in load_gpt_buffer()
837 int iFileSize; in MakeParamBuffer() local
839 iFileSize = ftell(file); in MakeParamBuffer()
842 pParamBuf = new char[iFileSize + 12]; in MakeParamBuffer()
848 memset(pParamBuf,0,iFileSize+12); in MakeParamBuffer()
852 iRead = fread(pParamBuf+8,1,iFileSize,file); in MakeParamBuffer()
853 if (iRead!=iFileSize) in MakeParamBuffer()
856 …_pLogObject->Record("MakeParamBuffer failed,err=%d,read=%d,total=%d\r\n", errno, iRead, iFileSize); in MakeParamBuffer()
863 *(UINT *)(pParamBuf+4) = iFileSize; in MakeParamBuffer()
864 *(UINT *)(pParamBuf+8+iFileSize) = CRC_32( (PBYTE)pParamBuf+8, iFileSize); in MakeParamBuffer()
2765 u64 iTotalWrite = 0, iFileSize = 0,dwChunkDataSize; in write_sparse_lba() local
2790 iFileSize = header.blk_sz * (u64)header.total_blks; in write_sparse_lba()
2794 uiSize = ALIGN(iFileSize, SECTOR_SIZE); in write_sparse_lba()
2834 printf("Write LBA from file (%lld%%)\r\n", (iTotalWrite / 1024) * 100 / (iFileSize / 1024)); in write_sparse_lba()
2836 printf("Write LBA from file (%lld%%)\r\n", iTotalWrite * 100 / iFileSize); in write_sparse_lba()
2841 printf("Write LBA from file (%lld%%)\r\n", (iTotalWrite / 1024) * 100 / (iFileSize / 1024)); in write_sparse_lba()
2875 printf("Write LBA from file (%lld%%)\r\n", (iTotalWrite / 1024) * 100 / (iFileSize / 1024)); in write_sparse_lba()
2877 printf("Write LBA from file (%lld%%)\r\n", iTotalWrite * 100 / iFileSize); in write_sparse_lba()
2882 printf("Write LBA from file (%lld%%)\r\n", (iTotalWrite / 1024) * 100 / (iFileSize / 1024)); in write_sparse_lba()
2893 printf("Write LBA from file (%lld%%)\r\n", (iTotalWrite / 1024) * 100 / (iFileSize / 1024)); in write_sparse_lba()
2895 printf("Write LBA from file (%lld%%)\r\n", iTotalWrite * 100 / iFileSize); in write_sparse_lba()
2900 printf("Write LBA from file (%lld%%)\r\n", (iTotalWrite / 1024) * 100 / (iFileSize / 1024)); in write_sparse_lba()
2931 long long iTotalWrite = 0, iFileSize = 0; in write_lba() local
2947 iFileSize = ftello(file); in write_lba()
2949 while(iTotalWrite < iFileSize) { in write_lba()
2959 printf("Write LBA from file (%lld%%)\r\n", (iTotalWrite / 1024) * 100 / (iFileSize / 1024)); in write_lba()
2961 printf("Write LBA from file (%lld%%)\r\n", iTotalWrite * 100 / iFileSize); in write_lba()
2966 printf("Write LBA from file (%lld%%)\r\n", (iTotalWrite / 1024) * 100 / (iFileSize / 1024)); in write_lba()
3028 int iFileSize; in tag_spl() local
3030 iFileSize = ftell(file); in tag_spl()
3033 Buf = new char[iFileSize + len + 1]; in tag_spl()
3038 memset(Buf, 0, iFileSize + 1); in tag_spl()
3041 iRead = fread(Buf+len, 1, iFileSize, file); in tag_spl()
3042 if (iRead != iFileSize){ in tag_spl()
3062 fwrite(Buf, 1, iFileSize+len, file); in tag_spl()