Lines Matching refs:DestMax
745 UINTN DestMax; in CopyStringIntoPerfRecordAndUpdateLength() local
750 DestMax = STRING_SIZE; in CopyStringIntoPerfRecordAndUpdateLength()
752 DestMax = AsciiStrSize (Source); in CopyStringIntoPerfRecordAndUpdateLength()
753 if (DestMax > STRING_SIZE) { in CopyStringIntoPerfRecordAndUpdateLength()
754 DestMax = STRING_SIZE; in CopyStringIntoPerfRecordAndUpdateLength()
758 if (StringLen >= DestMax) { in CopyStringIntoPerfRecordAndUpdateLength()
759 StringLen = DestMax -1; in CopyStringIntoPerfRecordAndUpdateLength()
762 AsciiStrnCpyS(Destination, DestMax, Source, StringLen); in CopyStringIntoPerfRecordAndUpdateLength()
763 *Length += (UINT8)DestMax; in CopyStringIntoPerfRecordAndUpdateLength()
932 UINTN DestMax; in InsertFpdtRecord() local
1215 …DestMax = CachedFpdtRecordPtr.DynamicStringEvent->Header.Length - sizeof (FPDT_DYNAMIC_STRING_EVEN… in InsertFpdtRecord()
1217 if (StringLen >= DestMax) { in InsertFpdtRecord()
1218 StringLen = DestMax -1; in InsertFpdtRecord()
1221 … AsciiStrnCpyS (CachedFpdtRecordPtr.DynamicStringEvent->String, DestMax, StringPtr, StringLen); in InsertFpdtRecord()
1223 …DestMax = FpdtRecordPtr.DynamicStringEvent->Header.Length - sizeof (FPDT_DYNAMIC_STRING_EVENT_RECO… in InsertFpdtRecord()
1225 if (StringLen >= DestMax) { in InsertFpdtRecord()
1226 StringLen = DestMax -1; in InsertFpdtRecord()
1229 …AsciiStrnCpyS (FpdtRecordPtr.DynamicStringEvent->String, DestMax, CachedFpdtRecordPtr.DynamicStrin… in InsertFpdtRecord()