Home
last modified time | relevance | path

Searched refs:MaxSize (Results 1 – 25 of 60) sorted by relevance

123

/device/linaro/bootloader/edk2/BaseTools/Scripts/
DBinToPcd.py119 if args.MaxSize is None:
125 elif args.MaxSize < len(Buffer):
129 Pcd = ' %s|%s|VOID*|%d' % (args.PcdName, ByteArray (Buffer), args.MaxSize)
130 args.MaxSize = len(Buffer)
139 if args.MaxSize is None:
144 args.MaxSize = len(Buffer)
145 if args.MaxSize < len(Buffer):
153 Pcd = ' %s|*|%d|%s' % (args.PcdName, args.MaxSize, ByteArray (Buffer))
158 Pcd = ' %s|%d|%d|%s' % (args.PcdName, args.Offset, args.MaxSize, ByteArray (Buffer))
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/
DOnigurumaUefiPort.h65 #define strlen_s(String,MaxSize) AsciiStrnLenS (String, MaxSize) argument
66 #define strcat_s(Dest,MaxSize,Src) AsciiStrCatS (Dest, MaxSize, Src) argument
67 #define strncpy_s(Dest,MaxSize,Src,Length) AsciiStrnCpyS (Dest, MaxSize, Src, Length) argument
/device/linaro/bootloader/edk2/OvmfPkg/Library/SerializeVariablesLib/
DSerializeVariablesLib.c59 IN UINTN MaxSize, in UnpackVariableFromBuffer() argument
78 if (Offset > MaxSize) { in UnpackVariableFromBuffer()
84 if (Offset > MaxSize) { in UnpackVariableFromBuffer()
90 if (Offset > MaxSize) { in UnpackVariableFromBuffer()
96 if (Offset > MaxSize) { in UnpackVariableFromBuffer()
102 if (Offset > MaxSize) { in UnpackVariableFromBuffer()
108 if (Offset > MaxSize) { in UnpackVariableFromBuffer()
136 IN UINTN MaxSize in IterateVariablesInBuffer() argument
163 !EFI_ERROR (Status) && (TotalSizeUsed < MaxSize); in IterateVariablesInBuffer()
167 (MaxSize - TotalSizeUsed), in IterateVariablesInBuffer()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Application/VariableInfo/
DVariableInfo.c94 UINTN MaxSize; in PrintInfoFromSmm() local
118 MaxSize = 0; in PrintInfoFromSmm()
123 if (Size > MaxSize) { in PrintInfoFromSmm()
124 MaxSize = Size; in PrintInfoFromSmm()
125 RealCommSize = MaxSize; in PrintInfoFromSmm()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/
DCEATABlockIo.c335 UINT64 MaxSize; in CEATABlockIoInit() local
379 MaxSize = *(UINT64*)(CardData->IndentifyDeviceData.MaximumLBA); in CEATABlockIoInit()
380 MaxSize = MultU64x32 (MaxSize, 512); in CEATABlockIoInit()
383 …CardData->BlockNumber = DivU64x32Remainder (MaxSize, CardData->BlockIoMedia.BlockSize, &Remainder); in CEATABlockIoInit()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/PCD/Pei/
DPcd.c424 UINTN MaxSize; in PeiPcdGetSize() local
447 return GetPtrTypeSize (TokenNumber, &MaxSize, PeiPcdDb); in PeiPcdGetSize()
1277 OUT UINTN *MaxSize, in GetPtrTypeSize() argument
1295 *MaxSize = SizeTable[SizeTableIdx]; in GetPtrTypeSize()
1307 return *MaxSize; in GetPtrTypeSize()
1359 UINTN MaxSize; in SetPtrTypeSize() local
1369 MaxSize = SizeTable[SizeTableIdx]; in SetPtrTypeSize()
1381 if ((*CurrentSize > MaxSize) || in SetPtrTypeSize()
1383 *CurrentSize = MaxSize; in SetPtrTypeSize()
DService.c34 UINTN MaxSize; in GetLocalTokenNumber() local
49 GetPtrTypeSize (TokenNumber, &MaxSize, Database); in GetLocalTokenNumber()
51 MaxSize = Size; in GetLocalTokenNumber()
53 LocalTokenNumber = GetSkuEnabledTokenNumber (LocalTokenNumber & ~PCD_TYPE_SKU_ENABLED, MaxSize); in GetLocalTokenNumber()
731 UINTN MaxSize; in SetWorker() local
756 GetPtrTypeSize (TokenNumber, &MaxSize, PeiPcdDb); in SetWorker()
757 if (*Size > MaxSize) { in SetWorker()
758 *Size = MaxSize; in SetWorker()
/device/linaro/bootloader/edk2/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/
DUefiDevicePathLib.c97 IN UINTN MaxSize in IsDevicePathValid() argument
106 if (MaxSize == 0) { in IsDevicePathValid()
107 MaxSize = MAX_UINTN; in IsDevicePathValid()
113 if (MaxSize < sizeof (EFI_DEVICE_PATH_PROTOCOL)) { in IsDevicePathValid()
131 if (Size > MaxSize - END_DEVICE_PATH_LENGTH ) { in IsDevicePathValid()
/device/linaro/bootloader/edk2/MdePkg/Library/UefiDevicePathLib/
DDevicePathUtilities.c55 IN UINTN MaxSize in IsDevicePathValid() argument
64 if (MaxSize == 0) { in IsDevicePathValid()
65 MaxSize = MAX_UINTN; in IsDevicePathValid()
71 if (MaxSize < sizeof (EFI_DEVICE_PATH_PROTOCOL)) { in IsDevicePathValid()
89 if (Size > MaxSize - END_DEVICE_PATH_LENGTH ) { in IsDevicePathValid()
/device/linaro/bootloader/edk2/Omap35xxPkg/LcdGraphicsOutputDxe/
DLcdGraphicsOutputDxe.c113 UINTN MaxSize; in LcdPlatformGetVram() local
115 MaxSize = 0x500000; in LcdPlatformGetVram()
116 *VramSize = MaxSize; in LcdPlatformGetVram()
119 …Status = gBS->AllocatePages (AllocateAnyPages, EfiBootServicesData, EFI_SIZE_TO_PAGES((MaxSize)), … in LcdPlatformGetVram()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/
DSafeString.c126 IN UINTN MaxSize in StrnLenS() argument
148 if (Length >= MaxSize - 1) { in StrnLenS()
149 return MaxSize; in StrnLenS()
560 IN UINTN MaxSize in AsciiStrnLenS() argument
580 if (Length >= MaxSize - 1) { in AsciiStrnLenS()
581 return MaxSize; in AsciiStrnLenS()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/PartitionDxe/
DGpt.c128 IN UINTN MaxSize,
146 IN UINTN MaxSize,
802 IN UINTN MaxSize, in PartitionCheckCrc() argument
806 return PartitionCheckCrcAltSize (MaxSize, Hdr->HeaderSize, Hdr); in PartitionCheckCrc()
823 IN UINTN MaxSize, in PartitionCheckCrcAltSize() argument
841 if ((MaxSize != 0) && (Size > MaxSize)) { in PartitionCheckCrcAltSize()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/PatchPcdValue/
DPatchPcdValue.py47 def PatchBinaryFile(FileName, ValueOffset, TypeName, ValueString, MaxSize=0): argument
74 if MaxSize == 0:
76 ValueLength = int(MaxSize)
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/PCD/Dxe/
DService.c59 UINTN MaxSize; in GetLocalTokenNumber() local
83 GetPtrTypeSize (TmpTokenNumber, &MaxSize); in GetLocalTokenNumber()
85 MaxSize = Size; in GetLocalTokenNumber()
87 …LocalTokenNumber = GetSkuEnabledTokenNumber (LocalTokenNumber & ~PCD_TYPE_SKU_ENABLED, MaxSize, Is… in GetLocalTokenNumber()
1137 UINTN MaxSize; in SetWorker() local
1160 GetPtrTypeSize (TokenNumber, &MaxSize); in SetWorker()
1161 if (*Size > MaxSize) { in SetWorker()
1162 *Size = MaxSize; in SetWorker()
1760 OUT UINTN *MaxSize in GetPtrTypeSize() argument
1792 *MaxSize = SizeTable[SizeTableIdx]; in GetPtrTypeSize()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/AcpiTableDxe/
DAcpiSdt.c133 OUT UINTN *MaxSize in SdtGetMaxAmlBufferSize() argument
143 *MaxSize = (UINTN)CurrentTableList->Table + CurrentTableList->Table->Length - (UINTN)Buffer; in SdtGetMaxAmlBufferSize()
565 UINTN MaxSize; in Open() local
567 MaxSize = 0; in Open()
576 Status = SdtGetMaxAmlBufferSize (Buffer, &MaxSize); in Open()
581 return SdtOpenEx (Buffer, MaxSize, Handle); in Open()
/device/linaro/bootloader/edk2/FatPkg/EnhancedFatDxe/
DDiskCache.c118 UINT64 MaxSize; in FatExchangeCachePage() local
132 MaxSize = DiskCache->LimitAddress - EntryPos; in FatExchangeCachePage()
133 if (MaxSize < RealSize) { in FatExchangeCachePage()
135 RealSize = (UINTN) MaxSize; in FatExchangeCachePage()
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Protocol/
DVarCheck.h63 UINTN MaxSize; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/
DIfrOpCodeCreation.c515 IN UINT8 MaxSize, in CreateStringOpCode() argument
565 String.MaxSize = MaxSize; in CreateStringOpCode()
DIfrOnTheFly.c889 IN UINT8 MaxSize, in CreateString() argument
965 String.MaxSize = MaxSize; in CreateString()
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Include/Framework/
DFrameworkInternalFormRepresentation.h252 UINT8 MaxSize; ///< Maximum allowable sized password. member
265 UINT8 MaxSize; ///< Maximum allowable sized password. member
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/
DVarCheck.c55 Property.MaxSize = MAX_UINTN; in VariableLockRequestToLock()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Include/
DEfiInternalFormRepresentation.h263 UINT8 MaxSize; // Maximum allowable sized password member
276 UINT8 MaxSize; // Maximum allowable sized password member
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DDevicePathLib.h42 IN UINTN MaxSize
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DPiSmmCpuDxeSmm.c963 UINT64 MaxSize; in FindSmramInfo() local
991 for (Index = 0, MaxSize = SIZE_256KB - EFI_PAGE_SIZE; Index < SmramRangeCount; Index++) { in FindSmramInfo()
1001 if (SmramRanges[Index].PhysicalSize >= MaxSize) { in FindSmramInfo()
1002 MaxSize = SmramRanges[Index].PhysicalSize; in FindSmramInfo()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckLib/
DVarCheckLib.c648 if ((DataSize < Property->MinSize) || (DataSize > Property->MaxSize)) { in VarCheckLibSetVariableCheck()
649 …ot in 0x%x - 0x%x) %r - %g:%s\n", DataSize, Property->MinSize, Property->MaxSize, EFI_INVALID_PARA… in VarCheckLibSetVariableCheck()

123