Home
last modified time | relevance | path

Searched refs:Len (Results 1 – 25 of 216) sorted by relevance

123456789

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Option.c39 UINT32 Len; in Ip4OptionIsValid() local
57 Len = Option[Cur + 1]; in Ip4OptionIsValid()
63 if ((OptionLen - Cur < Len) || (Len < 3) || ((Len - 3) % 4 != 0)) { in Ip4OptionIsValid()
67 if ((Point > Len + 1) || (Point % 4 != 0)) { in Ip4OptionIsValid()
77 ((Rcvd && (Point != Len + 1)) || (!Rcvd && (Point != 4)))) { in Ip4OptionIsValid()
82 Cur += Len; in Ip4OptionIsValid()
86 Len = Option[Cur + 1]; in Ip4OptionIsValid()
88 if ((OptionLen - Cur < Len) || (Len < 2)) { in Ip4OptionIsValid()
92 Cur = Cur + Len; in Ip4OptionIsValid()
132 UINT32 Len; in Ip4CopyOption() local
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeNetLib/
DNetBuffer.c98 IN UINT32 Len in NetbufAlloc() argument
105 ASSERT (Len > 0); in NetbufAlloc()
113 Bulk = AllocatePool (Len); in NetbufAlloc()
120 Vector->Len = Len; in NetbufAlloc()
123 Vector->Block[0].Len = Len; in NetbufAlloc()
126 Nbuf->BlockOp[0].BlockTail = Bulk + Len; in NetbufAlloc()
381 UINT32 Len; in NetbufGetByte() local
390 Len = 0; in NetbufGetByte()
394 if (Len + BlockOp[Loop].Size <= Offset) { in NetbufGetByte()
395 Len += BlockOp[Loop].Size; in NetbufGetByte()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/
DSimpleFileParsing.c97 int Len
299 unsigned int Len; in SFPIsToken() local
305 if ((Len = t_strcmp (mGlobals.SourceFile.FileBufferPtr, Str)) > 0) { in SFPIsToken()
306 mGlobals.SourceFile.FileBufferPtr += Len; in SFPIsToken()
340 unsigned int Len; in SFPIsKeyword() local
346 if ((Len = t_strcmp (mGlobals.SourceFile.FileBufferPtr, Str)) > 0) { in SFPIsKeyword()
347 if (isalnum (mGlobals.SourceFile.FileBufferPtr[Len])) { in SFPIsKeyword()
351 mGlobals.SourceFile.FileBufferPtr += Len; in SFPIsKeyword()
365 unsigned int Len in SFPGetNextToken() argument
397 if (Len < 2) { in SFPGetNextToken()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DSimpleFileParsing.c90 INTN Len
277 UINTN Len; in SFPIsToken() local
283 if ((Len = t_strcmp (mGlobals.SourceFile.FileBufferPtr, Str)) > 0) { in SFPIsToken()
284 mGlobals.SourceFile.FileBufferPtr += Len; in SFPIsToken()
318 UINTN Len; in SFPIsKeyword() local
324 if ((Len = t_strcmp (mGlobals.SourceFile.FileBufferPtr, Str)) > 0) { in SFPIsKeyword()
325 if (isalnum ((int)mGlobals.SourceFile.FileBufferPtr[Len])) { in SFPIsKeyword()
329 mGlobals.SourceFile.FileBufferPtr += Len; in SFPIsKeyword()
343 UINTN Len in SFPGetNextToken() argument
375 if (Len < 2) { in SFPGetNextToken()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DTcpOption.c116 UINT16 Len; in TcpSynBuildOption() local
120 Len = 0; in TcpSynBuildOption()
139 Len += TCP_OPTION_TS_ALIGNED_LEN; in TcpSynBuildOption()
164 Len += TCP_OPTION_WS_ALIGNED_LEN; in TcpSynBuildOption()
174 Len += TCP_OPTION_MSS_LEN; in TcpSynBuildOption()
177 return Len; in TcpSynBuildOption()
196 UINT16 Len; in TcpBuildOption() local
199 Len = 0; in TcpBuildOption()
215 Len += TCP_OPTION_TS_ALIGNED_LEN; in TcpBuildOption()
222 return Len; in TcpBuildOption()
[all …]
DTcpOutput.c183 UINT32 Len; in TcpDataToSend() local
217 Len = MIN (Win, Left); in TcpDataToSend()
219 if (Len > Tcb->SndMss) { in TcpDataToSend()
220 Len = Tcb->SndMss; in TcpDataToSend()
223 if ((Force != 0)|| (Len == 0 && Left == 0)) { in TcpDataToSend()
224 return Len; in TcpDataToSend()
227 if (Len == 0 && Left != 0) { in TcpDataToSend()
239 if ((Len == Tcb->SndMss) || (2 * Len >= Tcb->SndWndMax)) { in TcpDataToSend()
241 return Len; in TcpDataToSend()
244 if ((Len == Left) && in TcpDataToSend()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4Option.c118 UINT16 Len; in TcpSynBuildOption() local
122 Len = 0; in TcpSynBuildOption()
140 Len += TCP_OPTION_TS_ALIGNED_LEN; in TcpSynBuildOption()
164 Len += TCP_OPTION_WS_ALIGNED_LEN; in TcpSynBuildOption()
174 Len += TCP_OPTION_MSS_LEN; in TcpSynBuildOption()
177 return Len; in TcpSynBuildOption()
197 UINT16 Len; in TcpBuildOption() local
200 Len = 0; in TcpBuildOption()
215 Len += TCP_OPTION_TS_ALIGNED_LEN; in TcpBuildOption()
222 return Len; in TcpBuildOption()
[all …]
DTcp4Output.c188 UINT32 Len; in TcpDataToSend() local
223 Len = MIN (Win, Left); in TcpDataToSend()
225 if (Len > Tcb->SndMss) { in TcpDataToSend()
226 Len = Tcb->SndMss; in TcpDataToSend()
229 if ((Force != 0)|| (Len == 0 && Left == 0)) { in TcpDataToSend()
230 return Len; in TcpDataToSend()
233 if (Len == 0 && Left != 0) { in TcpDataToSend()
245 if ((Len == Tcb->SndMss) || (2 * Len >= Tcb->SndWndMax)) { in TcpDataToSend()
247 return Len; in TcpDataToSend()
250 if ((Len == Left) && in TcpDataToSend()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4Option.c165 IN INTN Len in DhcpOptionIsValid() argument
199 if ((Len % Unit) != 0) { in DhcpOptionIsValid()
206 Occur = Len / Unit; in DhcpOptionIsValid()
245 IN INTN Len, in DhcpGetParameter() argument
326 UINT8 Len; in DhcpIterateBufferOptions() local
346 Len = Buffer[Cur++]; in DhcpIterateBufferOptions()
348 if (Cur + Len > BufLen) { in DhcpIterateBufferOptions()
353 if (Len != 1) { in DhcpIterateBufferOptions()
360 if ((Check != NULL) && EFI_ERROR (Check (Tag, Len, Buffer + Cur, Context))) { in DhcpIterateBufferOptions()
364 Cur += Len; in DhcpIterateBufferOptions()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciDxe/
DEhciUrb.c48 UINTN Len; in EhcCreateQtd() local
79 Len = 0; in EhcCreateQtd()
92 if (Len + ThisBufLen >= DataLen) { in EhcCreateQtd()
93 Len = DataLen; in EhcCreateQtd()
97 Len += ThisBufLen; in EhcCreateQtd()
108 if (Len < DataLen) { in EhcCreateQtd()
109 Len = Len - Len % MaxPacket; in EhcCreateQtd()
112 QtdHw->TotalBytes = (UINT32) Len; in EhcCreateQtd()
113 Qtd->DataLen = Len; in EhcCreateQtd()
379 UINTN Len; in EhcCreateQtds() local
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciPei/
DEhciUrb.c47 UINTN Len; in EhcCreateQtd() local
78 Len = 0; in EhcCreateQtd()
91 if (Len + ThisBufLen >= DataLen) { in EhcCreateQtd()
92 Len = DataLen; in EhcCreateQtd()
96 Len += ThisBufLen; in EhcCreateQtd()
106 if (Len < DataLen) { in EhcCreateQtd()
107 Len = Len - Len % MaxPacket; in EhcCreateQtd()
110 QtdHw->TotalBytes = (UINT32) Len; in EhcCreateQtd()
111 Qtd->DataLen = Len; in EhcCreateQtd()
355 UINTN Len; in EhcCreateQtds() local
[all …]
/device/linaro/bootloader/edk2/ArmVirtPkg/VirtFdtDxe/
DVirtFdtDxe.c157 INT32 Len; in ProcessPciHost() local
172 Prop = fdt_getprop (DeviceTreeBase, Node, "bus-range", &Len); in ProcessPciHost()
173 if (Prop == NULL || Len != 2 * sizeof(UINT32)) { in ProcessPciHost()
195 Prop = fdt_getprop (DeviceTreeBase, Node, "ranges", &Len); in ProcessPciHost()
196 if (Prop == NULL || Len == 0 || in ProcessPciHost()
197 Len % sizeof (DTB_PCI_HOST_RANGE_RECORD) != 0) { in ProcessPciHost()
218 for (RecordIdx = 0; RecordIdx < Len / sizeof (DTB_PCI_HOST_RANGE_RECORD); in ProcessPciHost()
291 INT32 Len; in InitializeVirtFdtDxe() local
335 Type = fdt_getprop (DeviceTreeBase, Node, "compatible", &Len); in InitializeVirtFdtDxe()
340 PropType = GetTypeFromNode (Type, Len); in InitializeVirtFdtDxe()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/
DGuidChk.c300 UINT32 Len
644 UINT32 Len; in ProcessDirectory() local
687 Len = strlen (Path) + 10; in ProcessDirectory()
689 Len += strlen (DirectoryName); in ProcessDirectory()
692 FileMask = malloc (Len); in ProcessDirectory()
949 UINT32 Len; in ProcessIA32FileGuids() local
966 Len = ValidSymbolName (Cptr); in ProcessIA32FileGuids()
967 if (Len) { in ProcessIA32FileGuids()
972 CSavePtr = Cptr + Len; in ProcessIA32FileGuids()
991 Len = SkipWhiteSpace (Cptr); in ProcessIA32FileGuids()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/PyEfiCompressor/
DEfiCompressor.c67 Py_ssize_t Len; in UefiDecompress() local
69 Len = SrcData->ob_type->tp_as_buffer->bf_getreadbuffer((PyObject *)SrcData, Index, &BufSeg); in UefiDecompress()
70 if (Len < 0) { in UefiDecompress()
74 memcpy(TmpBuf, BufSeg, Len); in UefiDecompress()
75 TmpBuf += Len; in UefiDecompress()
144 Py_ssize_t Len; in FrameworkDecompress() local
146 Len = SrcData->ob_type->tp_as_buffer->bf_getreadbuffer((PyObject *)SrcData, Index, &BufSeg); in FrameworkDecompress()
147 if (Len < 0) { in FrameworkDecompress()
151 memcpy(TmpBuf, BufSeg, Len); in FrameworkDecompress()
152 TmpBuf += Len; in FrameworkDecompress()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/MemoryOverwriteControl/
DTcgMor.c89 UINTN Len; in InitiateTPerReset() local
104 Len = ROUNDUP512(sizeof(SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA)); in InitiateTPerReset()
105 Buffer = AllocateZeroPool(Len); in InitiateTPerReset()
121 Len, // PayloadBufferSize, in InitiateTPerReset()
134 Len = ROUNDUP512(sizeof (SUPPORTED_SECURITY_PROTOCOLS_PARAMETER_DATA) + in InitiateTPerReset()
143 Buffer = AllocateZeroPool(Len); in InitiateTPerReset()
157 Len, // PayloadBufferSize, in InitiateTPerReset()
167 Len = (Data->SupportedSecurityListLength[0] << 8) + Data->SupportedSecurityListLength[1]; in InitiateTPerReset()
173 for (Index = 0; Index < Len; Index++) { in InitiateTPerReset()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/
DUsbDesc.c145 IN UINTN Len, in UsbCreateDesc() argument
189 while ((Offset < Len) && (Head->Type != Type)) { in UsbCreateDesc()
190 Offset += Head->Len; in UsbCreateDesc()
191 if (Len <= Offset) { in UsbCreateDesc()
196 if (Head->Len == 0) { in UsbCreateDesc()
202 if ((Len <= Offset) || (Len < Offset + DescLen) || in UsbCreateDesc()
203 (Head->Type != Type) || (Head->Len != DescLen)) { in UsbCreateDesc()
215 *Consumed = Offset + Head->Len; in UsbCreateDesc()
234 IN UINTN Len, in UsbParseInterfaceDesc() argument
246 Setting = UsbCreateDesc (DescBuf, Len, USB_DESC_TYPE_INTERFACE, &Used); in UsbParseInterfaceDesc()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/String/
DComparison.c90 size_t strxfrm(char * __restrict Dest, const char * __restrict Src, size_t Len) in strxfrm() argument
98 if (Len != 0) { in strxfrm()
99 copysize = srclen < Len ? srclen : Len - 1; in strxfrm()
/device/linaro/bootloader/edk2/OvmfPkg/XenBusDxe/
DXenStore.c72 UINT32 Len; member
194 IN UINTN Len, in ExtractStrings() argument
201 for (Ptr = Strings; Ptr < Strings + Len; Ptr += AsciiStrSize (Ptr)) { in ExtractStrings()
232 IN UINTN Len, in Split() argument
242 if (Len > 0) { in Split()
243 Strings[Len - 1] = '\0'; in Split()
247 *NumPtr = ExtractStrings (Strings, Len, NULL); in Split()
250 Dst = AllocatePool (*NumPtr * sizeof (CHAR8 *) + Len); in Split()
251 CopyMem ((VOID*)&Dst[*NumPtr], Strings, Len); in Split()
256 ExtractStrings (Strings, Len, Dst); in Split()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/StrGather/
DStrGather.c568 UINT32 Len; in ParseFile() local
619 ((Len = wstrcmp (SourceFile->FileBufferPtr + 1, L"include")) > 0) in ParseFile()
621 SourceFile->FileBufferPtr += Len + 1; in ParseFile()
624 (Len = wstrcmp (SourceFile->FileBufferPtr + 1, L"scope")) > 0 in ParseFile()
626 SourceFile->FileBufferPtr += Len + 1; in ParseFile()
629 (Len = wstrcmp (SourceFile->FileBufferPtr + 1, L"language")) > 0 in ParseFile()
631 SourceFile->FileBufferPtr += Len + 1; in ParseFile()
634 (Len = wstrcmp (SourceFile->FileBufferPtr + 1, L"langdef")) > 0 in ParseFile()
636 SourceFile->FileBufferPtr += Len + 1; in ParseFile()
639 (Len = wstrcmp (SourceFile->FileBufferPtr + 1, L"string")) > 0 in ParseFile()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/
DMtftp4Wrq.c142 IN UINT32 Len, in Mtftp4WrqHandleAck() argument
261 IN UINT32 Len, in Mtftp4WrqHandleOack() argument
285 Status = Mtftp4ParseOptionOack (Packet, Len, &Reply); in Mtftp4WrqHandleOack()
351 UINT32 Len; in Mtftp4WrqInput() local
387 Len = UdpPacket->TotalSize; in Mtftp4WrqInput()
390 Packet = AllocatePool (Len); in Mtftp4WrqInput()
397 NetbufCopy (UdpPacket, 0, Len, (UINT8 *) Packet); in Mtftp4WrqInput()
416 (UINT16) Len, in Mtftp4WrqInput()
439 if (Len != MTFTP4_OPCODE_LEN + MTFTP4_BLKNO_LEN) { in Mtftp4WrqInput()
443 Status = Mtftp4WrqHandleAck (Instance, Packet, Len, &Completed); in Mtftp4WrqInput()
[all …]
DMtftp4Rrq.c141 IN UINT32 Len in Mtftp4RrqSaveBlock() argument
155 DataLen = Len - MTFTP4_DATA_HEAD_LEN; in Mtftp4RrqSaveBlock()
182 Status = Token->CheckPacket (&Instance->Mtftp4, Token, (UINT16) Len, Packet); in Mtftp4RrqSaveBlock()
250 IN UINT32 Len, in Mtftp4RrqHandleData() argument
275 Status = Mtftp4RrqSaveBlock (Instance, Packet, Len); in Mtftp4RrqHandleData()
482 IN UINT32 Len, in Mtftp4RrqHandleOack() argument
510 Status = Mtftp4ParseOptionOack (Packet, Len, &Reply); in Mtftp4RrqHandleOack()
651 UINT32 Len; in Mtftp4RrqInput() local
694 Len = UdpPacket->TotalSize; in Mtftp4RrqInput()
697 Packet = AllocatePool (Len); in Mtftp4RrqInput()
[all …]
/device/linaro/bootloader/edk2/ArmVirtPkg/Library/ArmVirtPlatformLib/
DVirt.c78 INT32 Len; in ArmPlatformInitializeSystemMemory() local
104 Type = fdt_getprop (DeviceTreeBase, Node, "device_type", &Len); in ArmPlatformInitializeSystemMemory()
105 if (Type && AsciiStrnCmp (Type, "memory", Len) == 0) { in ArmPlatformInitializeSystemMemory()
110 RegProp = fdt_getprop (DeviceTreeBase, Node, "reg", &Len); in ArmPlatformInitializeSystemMemory()
111 if (RegProp != 0 && Len == (2 * sizeof (UINT64))) { in ArmPlatformInitializeSystemMemory()
/device/linaro/bootloader/edk2/ArmVirtPkg/Library/PlatformPeiLib/
DPlatformPeiLib.c42 INT32 Len; in PlatformPeim() local
77 Compatible = fdt_getprop (Base, Node, "compatible", &Len); in PlatformPeim()
82 for (CompItem = Compatible; CompItem != NULL && CompItem < Compatible + Len; in PlatformPeim()
86 RegProp = fdt_getprop (Base, Node, "reg", &Len); in PlatformPeim()
87 ASSERT (Len == 16); in PlatformPeim()
/device/linaro/bootloader/edk2/ArmVirtPkg/HighMemDxe/
DHighMemDxe.c37 INT32 Len; in InitializeHighMemDxe() local
65 Type = fdt_getprop (DeviceTreeBase, Node, "device_type", &Len); in InitializeHighMemDxe()
66 if (Type && AsciiStrnCmp (Type, "memory", Len) == 0) { in InitializeHighMemDxe()
71 RegProp = fdt_getprop (DeviceTreeBase, Node, "reg", &Len); in InitializeHighMemDxe()
72 if (RegProp != NULL && Len == (2 * sizeof (UINT64))) { in InitializeHighMemDxe()
/device/linaro/bootloader/edk2/NetworkPkg/Mtftp6Dxe/
DMtftp6Wrq.c149 IN UINT32 Len, in Mtftp6WrqHandleAck() argument
285 IN UINT32 Len, in Mtftp6WrqHandleOack() argument
314 Status = Mtftp6ParseStart (Packet, Len, &Count, &Options); in Mtftp6WrqHandleOack()
396 UINT32 Len; in Mtftp6WrqInput() local
437 Len = UdpPacket->TotalSize; in Mtftp6WrqInput()
441 Packet = AllocateZeroPool (Len); in Mtftp6WrqInput()
448 NetbufCopy (UdpPacket, 0, Len, (UINT8 *) Packet); in Mtftp6WrqInput()
468 (UINT16) Len, in Mtftp6WrqInput()
503 if (Len != MTFTP6_OPCODE_LEN + MTFTP6_BLKNO_LEN) { in Mtftp6WrqInput()
509 Status = Mtftp6WrqHandleAck (Instance, Packet, Len, &UdpPacket, &IsCompleted); in Mtftp6WrqInput()
[all …]

123456789