Home
last modified time | relevance | path

Searched refs:TotalLen (Results 1 – 25 of 26) sorted by relevance

12

/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DTcpOption.c243 UINT8 TotalLen; in TcpParseOption() local
252 TotalLen = (UINT8) ((Tcp->HeadLen << 2) - sizeof (TCP_HEAD)); in TcpParseOption()
253 if (TotalLen <= 0) { in TcpParseOption()
262 if ((TotalLen == TCP_OPTION_TS_ALIGNED_LEN) && (TcpGetUint32 (Head) == TCP_OPTION_TS_FAST)) { in TcpParseOption()
275 while (Cur < TotalLen) { in TcpParseOption()
282 if ((Len != TCP_OPTION_MSS_LEN) || (TotalLen - Cur < TCP_OPTION_MSS_LEN)) { in TcpParseOption()
296 if ((Len != TCP_OPTION_WS_LEN) || (TotalLen - Cur < TCP_OPTION_WS_LEN)) { in TcpParseOption()
310 if ((Len != TCP_OPTION_TS_LEN) || (TotalLen - Cur < TCP_OPTION_TS_LEN)) { in TcpParseOption()
327 Cur = TotalLen; in TcpParseOption()
333 if ((TotalLen - Cur) < Len || Len < 2) { in TcpParseOption()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4Option.c244 UINT8 TotalLen; in TcpParseOption() local
253 TotalLen = (UINT8) ((Tcp->HeadLen << 2) - sizeof (TCP_HEAD)); in TcpParseOption()
254 if (TotalLen <= 0) { in TcpParseOption()
263 if ((TotalLen == TCP_OPTION_TS_ALIGNED_LEN) && in TcpParseOption()
278 while (Cur < TotalLen) { in TcpParseOption()
286 (TotalLen - Cur < TCP_OPTION_MSS_LEN)) { in TcpParseOption()
301 (TotalLen - Cur < TCP_OPTION_WS_LEN)) { in TcpParseOption()
316 (TotalLen - Cur < TCP_OPTION_TS_LEN)) { in TcpParseOption()
333 Cur = TotalLen; in TcpParseOption()
339 if ((TotalLen - Cur) < Len || Len < 2) { in TcpParseOption()
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UserIdentifyManagerDxe/
DUserIdentifyManager.c420 UINTN TotalLen; in CheckAccessPolicy() local
427 TotalLen = 0; in CheckAccessPolicy()
428 while (TotalLen < InfoLen) { in CheckAccessPolicy()
432 CopyMem (&Access, PolicyInfo + TotalLen, sizeof (Access)); in CheckAccessPolicy()
441 Path = (EFI_DEVICE_PATH_PROTOCOL *) (PolicyInfo + TotalLen + sizeof (Access) + OffSet); in CheckAccessPolicy()
475 TotalLen += Access.Size; in CheckAccessPolicy()
478 if (TotalLen != InfoLen) { in CheckAccessPolicy()
502 UINTN TotalLen; in CheckIdentityPolicy() local
506 TotalLen = 0; in CheckIdentityPolicy()
511 while (TotalLen < InfoLen) { in CheckIdentityPolicy()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Input.c58 Assemble->TotalLen = 0; in Ip4CreateAssembleEntry()
380 if (IP4_LAST_FRAGMENT (IpHead->Fragment) && (Assemble->TotalLen == 0)) { in Ip4Reassemble()
381 Assemble->TotalLen = This->End; in Ip4Reassemble()
391 if ((Assemble->TotalLen != 0) && (Assemble->CurLen >= Assemble->TotalLen)) { in Ip4Reassemble()
402 if (IP4_GET_CLIP_INFO (Fragment)->End != Assemble->TotalLen) { in Ip4Reassemble()
720 UINT32 TotalLen; in Ip4PreProcessPacket() local
731 TotalLen = NTOHS (Head->TotalLen); in Ip4PreProcessPacket()
736 if (TotalLen < (*Packet)->TotalSize) { in Ip4PreProcessPacket()
737 NetbufTrim (*Packet, (*Packet)->TotalSize - TotalLen, FALSE); in Ip4PreProcessPacket()
741 (TotalLen < HeadLen) || (TotalLen != (*Packet)->TotalSize)) { in Ip4PreProcessPacket()
[all …]
DIp4Common.c262 Head->TotalLen = NTOHS (Head->TotalLen); in Ip4NtohHead()
DIp4Input.h63 INTN TotalLen; member
DIp4Output.c76 PacketHead->TotalLen = HTONS ((UINT16) Packet->TotalSize); in Ip4PrependHead()
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
DIp6Input.c52 Assemble->TotalLen = 0; in Ip6CreateAssembleEntry()
373 if ((This->LastFrag != 0) && (Assemble->TotalLen == 0)) { in Ip6Reassemble()
374 Assemble->TotalLen = This->End; in Ip6Reassemble()
384 if ((Assemble->TotalLen != 0) && (Assemble->CurLen >= Assemble->TotalLen)) { in Ip6Reassemble()
394 if (IP6_GET_CLIP_INFO (Fragment)->End != (INTN) Assemble->TotalLen) { in Ip6Reassemble()
764 UINT16 TotalLen; in Ip6PreProcessPacket() local
847 TotalLen = (UINT16) (PayloadLen + sizeof (EFI_IP6_HEADER)); in Ip6PreProcessPacket()
852 if (TotalLen < (*Packet)->TotalSize) { in Ip6PreProcessPacket()
853 NetbufTrim (*Packet, (*Packet)->TotalSize - TotalLen, FALSE); in Ip6PreProcessPacket()
856 if (TotalLen != (*Packet)->TotalSize) { in Ip6PreProcessPacket()
[all …]
DIp6Input.h83 UINT32 TotalLen; member
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4Option.c562 UINT16 TotalLen; in DhcpParseOption() local
589 TotalLen = 0; in DhcpParseOption()
596 TotalLen = (UINT16) (TotalLen + OptCount[Index].Offset); in DhcpParseOption()
597 OptCount[Index].Offset = (UINT16) (TotalLen - OptCount[Index].Offset); in DhcpParseOption()
614 Options = AllocateZeroPool ((UINTN) (OptNum * sizeof (DHCP_OPTION)) + TotalLen); in DhcpParseOption()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/
DUfsHci.c437 UINTN TotalLen; in UfsCreateScsiCommandDesc() local
463TotalLen = ROUNDUP8 (sizeof (UTP_COMMAND_UPIU)) + ROUNDUP8 (sizeof (UTP_RESPONSE_UPIU)) + PrdtN… in UfsCreateScsiCommandDesc()
464 CommandDesc = UfsPeimAllocateMem (Private->Pool, TotalLen); in UfsCreateScsiCommandDesc()
514 UINTN TotalLen; in UfsCreateDMCommandDesc() local
555TotalLen = ROUNDUP8 (sizeof (UTP_QUERY_REQ_UPIU)) + ROUNDUP8 (sizeof (UTP_QUERY_RESP_UPIU)) + ROUN… in UfsCreateDMCommandDesc()
557 TotalLen = ROUNDUP8 (sizeof (UTP_QUERY_REQ_UPIU)) + ROUNDUP8 (sizeof (UTP_QUERY_RESP_UPIU)); in UfsCreateDMCommandDesc()
560 CommandDesc = UfsPeimAllocateMem (Private->Pool, TotalLen); in UfsCreateDMCommandDesc()
619 UINTN TotalLen; in UfsCreateNopCommandDesc() local
624 TotalLen = ROUNDUP8 (sizeof (UTP_NOP_OUT_UPIU)) + ROUNDUP8 (sizeof (UTP_NOP_IN_UPIU)); in UfsCreateNopCommandDesc()
625 CommandDesc = UfsPeimAllocateMem (Private->Pool, TotalLen); in UfsCreateNopCommandDesc()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/
DUfsPassThruHci.c511 UINTN TotalLen; in UfsCreateScsiCommandDesc() local
535TotalLen = ROUNDUP8 (sizeof (UTP_COMMAND_UPIU)) + ROUNDUP8 (sizeof (UTP_RESPONSE_UPIU)) + PrdtNu… in UfsCreateScsiCommandDesc()
537 …Status = UfsAllocateAlignCommonBuffer (Private, TotalLen, CmdDescHost, &CmdDescPhyAddr, CmdDescMap… in UfsCreateScsiCommandDesc()
588 UINTN TotalLen; in UfsCreateDMCommandDesc() local
631TotalLen = ROUNDUP8 (sizeof (UTP_QUERY_REQ_UPIU)) + ROUNDUP8 (sizeof (UTP_QUERY_RESP_UPIU)) + ROUN… in UfsCreateDMCommandDesc()
633 TotalLen = ROUNDUP8 (sizeof (UTP_QUERY_REQ_UPIU)) + ROUNDUP8 (sizeof (UTP_QUERY_RESP_UPIU)); in UfsCreateDMCommandDesc()
636 …Status = UfsAllocateAlignCommonBuffer (Private, TotalLen, CmdDescHost, &CmdDescPhyAddr, CmdDescMap… in UfsCreateDMCommandDesc()
699 UINTN TotalLen; in UfsCreateNopCommandDesc() local
706 TotalLen = ROUNDUP8 (sizeof (UTP_NOP_OUT_UPIU)) + ROUNDUP8 (sizeof (UTP_NOP_IN_UPIU)); in UfsCreateNopCommandDesc()
707 …Status = UfsAllocateAlignCommonBuffer (Private, TotalLen, CmdDescHost, &CmdDescPhyAddr, CmdDescM… in UfsCreateNopCommandDesc()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeNetLib/
DNetBuffer.c731 UINT32 TotalLen; in NetbufFromExt() local
750 TotalLen = 0; in NetbufFromExt()
795 TotalLen += ExtFragment[Index].Len; in NetbufFromExt()
811 TotalLen += Len; in NetbufFromExt()
856 TotalLen += ExtFragment[Index].Len; in NetbufFromExt()
860 Vector->Len = TotalLen + HeadSpace; in NetbufFromExt()
861 Nbuf->TotalSize = TotalLen; in NetbufFromExt()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/
DXhciSched.c227 UINTN TotalLen; in XhcPeiCreateTransferTrb() local
349 TotalLen = 0; in XhcPeiCreateTransferTrb()
353 while (TotalLen < Urb->DataLen) { in XhcPeiCreateTransferTrb()
354 if ((TotalLen + 0x10000) >= Urb->DataLen) { in XhcPeiCreateTransferTrb()
355 Len = Urb->DataLen - TotalLen; in XhcPeiCreateTransferTrb()
360 TrbStart->TrbNormal.TRBPtrLo = XHC_LOW_32BIT((UINT8 *) Urb->DataPhy + TotalLen); in XhcPeiCreateTransferTrb()
361 TrbStart->TrbNormal.TRBPtrHi = XHC_HIGH_32BIT((UINT8 *) Urb->DataPhy + TotalLen); in XhcPeiCreateTransferTrb()
375 TotalLen += Len; in XhcPeiCreateTransferTrb()
384 TotalLen = 0; in XhcPeiCreateTransferTrb()
388 while (TotalLen < Urb->DataLen) { in XhcPeiCreateTransferTrb()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
DXhciSched.c233 UINTN TotalLen; in XhcCreateTransferTrb() local
377 TotalLen = 0; in XhcCreateTransferTrb()
381 while (TotalLen < Urb->DataLen) { in XhcCreateTransferTrb()
382 if ((TotalLen + 0x10000) >= Urb->DataLen) { in XhcCreateTransferTrb()
383 Len = Urb->DataLen - TotalLen; in XhcCreateTransferTrb()
388 TrbStart->TrbNormal.TRBPtrLo = XHC_LOW_32BIT((UINT8 *) Urb->DataPhy + TotalLen); in XhcCreateTransferTrb()
389 TrbStart->TrbNormal.TRBPtrHi = XHC_HIGH_32BIT((UINT8 *) Urb->DataPhy + TotalLen); in XhcCreateTransferTrb()
403 TotalLen += Len; in XhcCreateTransferTrb()
412 TotalLen = 0; in XhcCreateTransferTrb()
416 while (TotalLen < Urb->DataLen) { in XhcCreateTransferTrb()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/Udp6Dxe/
DUdp6Impl.c788 UINT32 TotalLen; in Udp6ValidateTxToken() local
803 TotalLen = 0; in Udp6ValidateTxToken()
815 TotalLen += TxData->FragmentTable[Index].FragmentLength; in Udp6ValidateTxToken()
818 if (TotalLen != TxData->DataLength) { in Udp6ValidateTxToken()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Udp4Dxe/
DUdp4Impl.c789 UINT32 TotalLen; in Udp4ValidateTxToken() local
805 TotalLen = 0; in Udp4ValidateTxToken()
816 TotalLen += TxData->FragmentTable[Index].FragmentLength; in Udp4ValidateTxToken()
819 if (TotalLen != TxData->DataLength) { in Udp4ValidateTxToken()
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIpSecImpl.c1091 … NTOHS (((IP4_HEAD *)IpPayload)->TotalLen) - (((IP4_HEAD *)IpPayload)->HeadLen << 2) in IpSecTunnelInboundPacket()
1102 …tAddChecksum (*Checksum, HTONS((UINT16)(NTOHS (((IP4_HEAD *)IpPayload)->TotalLen) - (((IP4_HEAD *)… in IpSecTunnelInboundPacket()
1629 …((IP4_HEAD *) IpHead)->TotalLen = HTONS ((UINT16) ((((IP4_HEAD *) IpHead)->HeadLen << 2) + PlainPa… in IpSecEspInboundPacket()
1858 ((IP4_HEAD *)InnerHead)->TotalLen = HTONS ((UINT16) PlainPayloadSize); in IpSecEspOutboundPacket()
2005 …((IP4_HEAD *) IpHead)->TotalLen = HTONS ((UINT16) ((((IP4_HEAD *) IpHead)->HeadLen << 2) + EspSize… in IpSecEspOutboundPacket()
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UserProfileManagerDxe/
DUserProfileModify.c1396 UINTN TotalLen; in GetAccessRight() local
1453 TotalLen = Info->InfoSize - sizeof (EFI_USER_INFO); in GetAccessRight()
1458 while (CheckLen < TotalLen) { in GetAccessRight()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiVfrCompile/
DVfrUtilityLib.cpp477 UINT32 TotalLen; in OutputCFile() local
489 TotalLen = sizeof (UINT32); in OutputCFile()
491 TotalLen += sizeof (UINT16) * 2; in OutputCFile()
493 Output.WriteLine (pFile, BYTES_PRE_LINE, " ", (INT8 *)&TotalLen, sizeof (UINT32)); in OutputCFile()
507 TotalLen = sizeof (UINT32); in OutputCFile()
509 TotalLen += Info->mWidth + sizeof (UINT16) * 2; in OutputCFile()
511 Output.WriteLine (pFile, BYTES_PRE_LINE, " ", (INT8 *)&TotalLen, sizeof (UINT32)); in OutputCFile()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/UefiEfiIfrSupportLib/
DUefiIfrForm.c653 UINT32 TotalLen; in ExtractDefault() local
671 EfiCopyMem (&TotalLen, BufCfgArray, sizeof (UINT32)); in ExtractDefault()
674 while ((UINT32)(BufferPos - BufCfgArray) < TotalLen) { in ExtractDefault()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/
DVfrUtilityLib.cpp400 UINT32 TotalLen; in OutputCFile() local
412 TotalLen = sizeof (UINT32); in OutputCFile()
414 TotalLen += sizeof (UINT16) * 2; in OutputCFile()
416 Output.WriteLine (pFile, BYTES_PRE_LINE, " ", (CHAR8 *)&TotalLen, sizeof (UINT32)); in OutputCFile()
430 TotalLen = sizeof (UINT32); in OutputCFile()
432 TotalLen += Info->mWidth + sizeof (UINT16) * 2; in OutputCFile()
434 Output.WriteLine (pFile, BYTES_PRE_LINE, " ", (CHAR8 *)&TotalLen, sizeof (UINT32)); in OutputCFile()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/
DIScsiProto.c441 UINT32 TotalLen; in IScsiAddKeyValuePair() local
458 TotalLen = KeyLen + 1 + ValueLen + 1; in IScsiAddKeyValuePair()
463 Data = (CHAR8 *)NetbufAllocSpace (Pdu, TotalLen, NET_BUF_TAIL); in IScsiAddKeyValuePair()
487 ISCSI_SET_DATASEG_LEN (LoginReq, DataSegLen + TotalLen); in IScsiAddKeyValuePair()
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiProto.c659 UINT32 TotalLen; in IScsiAddKeyValuePair() local
676 TotalLen = KeyLen + 1 + ValueLen + 1; in IScsiAddKeyValuePair()
681 Data = (CHAR8 *) NetbufAllocSpace (Pdu, TotalLen, NET_BUF_TAIL); in IScsiAddKeyValuePair()
705 ISCSI_SET_DATASEG_LEN (LoginReq, DataSegLen + TotalLen); in IScsiAddKeyValuePair()
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/
DNetLib.h134 UINT16 TotalLen; member

12