Lines Matching refs:MaxSize
50 ASSERT(LogFile->CurrentSize <= LogFile->Header.MaxSize); in ReadLogBuffer()
131 ASSERT(LogFile->CurrentSize <= LogFile->Header.MaxSize); in WriteLogBuffer()
300 IN ULONG MaxSize, in ElfpInitNewFile() argument
329 LogFile->Header.MaxSize = ROUND_UP(MaxSize, sizeof(ULONG)); in ElfpInitNewFile()
330 LogFile->CurrentSize = LogFile->Header.MaxSize; // or: FileSize ?? in ElfpInitNewFile()
449 if (LogFile->CurrentSize > LogFile->Header.MaxSize) in ElfpInitExistingFile()
450 LogFile->Header.MaxSize = LogFile->CurrentSize; in ElfpInitExistingFile()
635 (LogFile->Header.MaxSize - LogFile->Header.StartOffset < sizeof(EVENTLOGRECORD))) in ElfpInitExistingFile()
664 if (LogFile->Header.MaxSize - LogFile->Header.EndOffset + in ElfpInitExistingFile()
828 if (LogFile->Header.MaxSize - NextOffset.QuadPart < sizeof(EVENTLOGRECORD)) in ElfpInitExistingFile()
880 IN ULONG MaxSize, in ElfCreateFile() argument
947 Status = ElfpInitNewFile(LogFile, FileSize, MaxSize, Retention); in ElfCreateFile()
973 LogFile->Header.MaxSize, in ElfReCreateFile()
1016 Header->MaxSize = LogFile->Header.MaxSize; in ElfBackupFile()
1122 Header->MaxSize = ROUND_UP(Header->EndOffset + sizeof(EofRec), sizeof(ULONG)); in ElfBackupFile()
1297 …FreeSpace = LogFile->Header.MaxSize - LogFile->Header.EndOffset + LogFile->Header.StartOffset - si… in ElfWriteRecord()
1315 UpperBound = LogFile->Header.MaxSize; in ElfWriteRecord()
1324 LogFile->Header.MaxSize, UpperBound, WriteOffset, BufSize); in ElfWriteRecord()
1329 …(LogFile->Header.MaxSize - WriteOffset < sizeof(RecBuf)) ) // (UpperBound - WriteOffset < sizeof(R… in ElfWriteRecord()
1444 if (LogFile->Header.MaxSize - RecOffset < sizeof(EVENTLOGRECORD)) in ElfWriteRecord()
1447 FreeSpace += LogFile->Header.MaxSize - RecOffset; in ElfWriteRecord()
1479 …LogFile->Header.MaxSize, LogFile->Header.StartOffset, WriteOffset, LogFile->Header.EndOffset, BufS… in ElfWriteRecord()
1489 if (LogFile->CurrentSize < LogFile->Header.MaxSize) in ElfWriteRecord()
1492 LogFile->CurrentSize, LogFile->Header.MaxSize); in ElfWriteRecord()
1494 LogFile->CurrentSize = LogFile->Header.MaxSize; in ElfWriteRecord()
1506 … WrittenLength = ROUND_DOWN(LogFile->Header.MaxSize - LogFile->Header.EndOffset, sizeof(ULONG)); in ElfWriteRecord()
1629 DbgPrint("MaxSize = 0x%x\n", Header->MaxSize); in PRINT_HEADER()