Home
last modified time | relevance | path

Searched refs:MaxLen (Results 1 – 17 of 17) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/GetAddrInfo/
DGetAddrInfo.c46 int MaxLen; in main() local
95 MaxLen = pInfo->ai_addr->sa_len; in main()
96 if ( sizeof ( struct sockaddr_in6 ) < MaxLen ) { in main()
97 MaxLen = sizeof ( struct sockaddr_in6 ); in main()
99 for ( Index = 0; ( MaxLen - 2 ) > Index; Index++ ) { in main()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/DisplayEngineDxe/
DProcessOptions.c961 UINTN MaxLen; in ProcessOptions() local
1004 MaxLen = OrderList->MaxContainers * BufferSize / sizeof (CHAR16); in ProcessOptions()
1005 *OptionString = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in ProcessOptions()
1063 NewStrCat (OptionString[0], MaxLen, Character); in ProcessOptions()
1066 NewStrCat (OptionString[0], MaxLen, StringPtr); in ProcessOptions()
1068 NewStrCat (OptionString[0], MaxLen, Character); in ProcessOptions()
1070 NewStrCat (OptionString[0], MaxLen, Character); in ProcessOptions()
1098 NewStrCat (OptionString[0], MaxLen, Character); in ProcessOptions()
1101 NewStrCat (OptionString[0], MaxLen, StringPtr); in ProcessOptions()
1103 NewStrCat (OptionString[0], MaxLen, Character); in ProcessOptions()
[all …]
DInputHandler.c87 UINTN MaxLen; in ReadString() local
106 MaxLen = Maximum + 1; in ReadString()
107 TempString = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in ReadString()
248 StrCpyS (StringPtr, MaxLen, TempString); in ReadString()
257 StrnCpyS (StringPtr, MaxLen, &Key.UnicodeChar, 1); in ReadString()
268 StrCatS (TempString, MaxLen, KeyPad); in ReadString()
269 StrCatS (TempString, MaxLen, StringPtr + CurrentCursor); in ReadString()
270 StrCpyS (StringPtr, MaxLen, TempString); in ReadString()
272 StrCatS (StringPtr, MaxLen, KeyPad); in ReadString()
DFormDisplay.c2154 UINTN MaxLen; in FxConfirmPopup() local
2215 MaxLen = CfmStrLen + 1 + 1; in FxConfirmPopup()
2216 CfmStr = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in FxConfirmPopup()
2220 StrCpyS (CfmStr, MaxLen, gConfirmDiscardMsg); in FxConfirmPopup()
2225 StrCatS (CfmStr, MaxLen, gConfirmMsgConnect); in FxConfirmPopup()
2226 StrCatS (CfmStr, MaxLen, gConfirmDefaultMsg2nd); in FxConfirmPopup()
2228 StrCpyS (CfmStr, MaxLen, gConfirmDefaultMsg); in FxConfirmPopup()
2234 StrCatS (CfmStr, MaxLen, gConfirmMsgConnect); in FxConfirmPopup()
2235 StrCatS (CfmStr, MaxLen, gConfirmSubmitMsg2nd); in FxConfirmPopup()
2237 StrCpyS (CfmStr, MaxLen, gConfirmSubmitMsg); in FxConfirmPopup()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/build/
DBuildReport.py660 self.MaxLen = 0
676 if len(Pcd.TokenCName) > self.MaxLen:
677 self.MaxLen = len(Pcd.TokenCName)
816 …FileWrite(File, ' %-*s: %6s %10s = %-22s' % (self.MaxLen, Pcd.TokenCName, TypeName, '(' + Pcd.D…
820 …FileWrite(File, ' *F %-*s: %6s %10s = %-22s' % (self.MaxLen, Pcd.TokenCName, TypeName, '(' + Pcd.D…
822 …FileWrite(File, ' *P %-*s: %6s %10s = %-22s' % (self.MaxLen, Pcd.TokenCName, TypeName, '(' + Pcd.D…
824 …FileWrite(File, ' *M %-*s: %6s %10s = %-22s' % (self.MaxLen, Pcd.TokenCName, TypeName, '(' + Pcd.D…
829 …FileWrite(File, '%*s: %s: %s' % (self.MaxLen + 4, SkuInfo.VariableGuid, SkuInfo.VariableName, SkuI…
831 FileWrite(File, '%*s' % (self.MaxLen + 4, SkuInfo.VpdOffset))
834 … FileWrite(File, ' %*s = %s' % (self.MaxLen + 19, 'DSC DEFAULT', DscDefaultValue.strip()))
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/HiiDatabaseDxe/
DConfigKeywordHandler.c1674 UINTN MaxLen; in ConstructConfigHdr() local
1738 MaxLen = 5 + sizeof (EFI_GUID) * 2 + 6 + NameLength * 4 + 6 + DevicePathSize * 2 + 1; in ConstructConfigHdr()
1739 String = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in ConstructConfigHdr()
1747 StrCpyS (String, MaxLen, L"GUID="); in ConstructConfigHdr()
1763 StrCatS (ReturnString, MaxLen, L"&NAME="); in ConstructConfigHdr()
1778 StrCatS (ReturnString, MaxLen, L"&PATH="); in ConstructConfigHdr()
1998 UINTN MaxLen; in ExtractConfigRequest() local
2039 MaxLen = StrLen (ConfigHdr) + 1 + StrLen(RequestElement) + 1; in ExtractConfigRequest()
2040 *ConfigRequest = AllocatePool (MaxLen * sizeof (CHAR16)); in ExtractConfigRequest()
2048 StrCpyS (StringPtr, MaxLen, ConfigHdr); in ExtractConfigRequest()
[all …]
DConfigRouting.c394 UINTN MaxLen; in AppendToMultiString() local
402 MaxLen = MAX_STRING_LENGTH / sizeof (CHAR16); in AppendToMultiString()
414 MaxLen = (MultiStringSize + AppendStringSize) / sizeof (CHAR16); in AppendToMultiString()
420 StrCatS (*MultiString, MaxLen, AppendString); in AppendToMultiString()
541 UINTN MaxLen; in MergeDefaultString() local
579 MaxLen = 1 + HeaderLength + 8 + 4 + 1; in MergeDefaultString()
580 AltConfigHdr = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in MergeDefaultString()
584 StrCpyS (AltConfigHdr, MaxLen, L"&"); in MergeDefaultString()
585 StrnCatS (AltConfigHdr, MaxLen, *AltCfgResp, HeaderLength); in MergeDefaultString()
586 StrCatS (AltConfigHdr, MaxLen, L"&ALTCFG="); in MergeDefaultString()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/FileExplorerLib/
DFileExplorer.c610 UINTN MaxLen; in LibAppendFileName() local
618 MaxLen = (Size1 + Size2 + sizeof (CHAR16))/ sizeof (CHAR16); in LibAppendFileName()
625 StrCpyS (Str, MaxLen, Str1); in LibAppendFileName()
627 StrCatS (Str, MaxLen, L"\\"); in LibAppendFileName()
630 StrCatS (Str, MaxLen, Str2); in LibAppendFileName()
646 StrCpyS (TmpStr, MaxLen, Ptr + 3); in LibAppendFileName()
647 StrCpyS (LastSlash, MaxLen - (UINTN) (LastSlash - Str), TmpStr); in LibAppendFileName()
658 StrCpyS (TmpStr, MaxLen, Ptr + 2); in LibAppendFileName()
659 StrCpyS (Ptr, MaxLen - (UINTN) (Ptr - Str), TmpStr); in LibAppendFileName()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/
DBootOption.c1090 UINTN MaxLen; in BOpt_AppendFileName() local
1098 MaxLen = (Size1 + Size2 + sizeof (CHAR16)) / sizeof (CHAR16); in BOpt_AppendFileName()
1099 Str = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in BOpt_AppendFileName()
1102 TmpStr = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in BOpt_AppendFileName()
1105 StrCatS (Str, MaxLen, Str1); in BOpt_AppendFileName()
1107 StrCatS (Str, MaxLen, L"\\"); in BOpt_AppendFileName()
1110 StrCatS (Str, MaxLen, Str2); in BOpt_AppendFileName()
1126 StrCpyS (TmpStr, MaxLen, Ptr + 3); in BOpt_AppendFileName()
1127 StrCpyS (LastSlash, MaxLen - (UINTN) (LastSlash - Str), TmpStr); in BOpt_AppendFileName()
1138 StrCpyS (TmpStr, MaxLen, Ptr + 2); in BOpt_AppendFileName()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/SetupBrowserDxe/
DSetup.c637 UINTN MaxLen; in ProcessStorage() local
676 MaxLen = BufferSize / sizeof (CHAR16); in ProcessStorage()
680 StrCpyS (ConfigResp, MaxLen, BrowserStorage->ConfigHdr); in ProcessStorage()
681 StrCatS (ConfigResp, MaxLen, L"&"); in ProcessStorage()
682 StrCatS (ConfigResp, MaxLen, *ResultsData); in ProcessStorage()
1083 UINTN MaxLen; in NewStringCat() local
1090 MaxLen = ( StrSize (*Dest) + StrSize (Src) - 1) / sizeof (CHAR16); in NewStringCat()
1091 NewString = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in NewStringCat()
1094 StrCpyS (NewString, MaxLen, *Dest); in NewStringCat()
1095 StrCatS (NewString, MaxLen, Src); in NewStringCat()
[all …]
DIfrParse.c691 UINTN MaxLen; in InitializeRequestElement() local
738 MaxLen = StringSize / sizeof (CHAR16) + FormsetStorage->SpareStrLen; in InitializeRequestElement()
747 MaxLen = StringSize / sizeof (CHAR16) + CONFIG_REQUEST_STRING_INCREMENTAL; in InitializeRequestElement()
748 NewStr = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in InitializeRequestElement()
758 StrCatS (FormsetStorage->ConfigRequest, MaxLen, RequestElement); in InitializeRequestElement()
790 MaxLen = StringSize / sizeof (CHAR16) + ConfigInfo->SpareStrLen; in InitializeRequestElement()
799 MaxLen = StringSize / sizeof (CHAR16) + CONFIG_REQUEST_STRING_INCREMENTAL; in InitializeRequestElement()
800 NewStr = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in InitializeRequestElement()
810 StrCatS (ConfigInfo->ConfigRequest, MaxLen, RequestElement); in InitializeRequestElement()
DExpression.c1327 UINTN MaxLen; in IfrCatenate() local
1367 MaxLen = (StrSize (String[1]) + Size) / sizeof (CHAR16); in IfrCatenate()
1368 StringPtr= AllocatePool (MaxLen * sizeof (CHAR16)); in IfrCatenate()
1370 StrCpyS (StringPtr, MaxLen, String[1]); in IfrCatenate()
1371 StrCatS (StringPtr, MaxLen, String[0]); in IfrCatenate()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/BootManagerLib/
DBootManager.c448 UINTN MaxLen; in UpdateBootManager() local
546 MaxLen = (TempSize + StrSize (L"Device Path : "))/sizeof(CHAR16); in UpdateBootManager()
548 StrCatS (HelpString, MaxLen, L"Device Path : "); in UpdateBootManager()
549 StrCatS (HelpString, MaxLen, TempStr); in UpdateBootManager()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/SmbiosDxe/
DSmbiosDxe.c181 UINTN MaxLen; in GetSmbiosStructureSize() local
203 MaxLen = SMBIOS_STRING_MAX_LENGTH; in GetSmbiosStructureSize()
211 MaxLen = SMBIOS_TABLE_MAX_LENGTH; in GetSmbiosStructureSize()
217 MaxLen = SMBIOS_3_0_TABLE_MAX_LENGTH; in GetSmbiosStructureSize()
220 for (StrLen = 0 ; StrLen < MaxLen; StrLen++) { in GetSmbiosStructureSize()
226 if (StrLen == MaxLen) { in GetSmbiosStructureSize()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiHiiLib/
DHiiLib.c720 UINTN MaxLen; in HiiConstructConfigHdr() local
751 MaxLen = 5 + sizeof (EFI_GUID) * 2 + 6 + NameLength * 4 + 6 + DevicePathSize * 2 + 1; in HiiConstructConfigHdr()
752 String = AllocateZeroPool (MaxLen * sizeof (CHAR16)); in HiiConstructConfigHdr()
760 StrCpyS (String, MaxLen, L"GUID="); in HiiConstructConfigHdr()
776 StrCatS (ReturnString, MaxLen, L"&NAME="); in HiiConstructConfigHdr()
791 StrCatS (ReturnString, MaxLen, L"&PATH="); in HiiConstructConfigHdr()
2128 UINTN MaxLen; in InternalHiiIfrValueAction() local
2384 MaxLen = 1 + StringPtr - StringHdr + 8 + 1; in InternalHiiIfrValueAction()
2385 ConfigAltHdr = AllocateZeroPool ( MaxLen * sizeof (CHAR16)); in InternalHiiIfrValueAction()
2390 StrCpyS (ConfigAltHdr, MaxLen, L"&"); in InternalHiiIfrValueAction()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciPei/
DUhcPeim.c2069 IN UINT16 MaxLen in SetTDTokenMaxLength() argument
2076 if (MaxLen > 0x500) { in SetTDTokenMaxLength()
2077 MaxLen = 0x500; in SetTDTokenMaxLength()
2080 PtrTDStruct->TDData.TDTokenMaxLen = MaxLen - 1; in SetTDTokenMaxLength()
2082 return MaxLen; in SetTDTokenMaxLength()
DUhcPeim.h899 IN UINT16 MaxLen