/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
D | TcpOption.c | 243 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/ |
D | Tcp4Option.c | 244 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/ |
D | UserIdentifyManager.c | 420 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/ |
D | Ip4Input.c | 58 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 …]
|
D | Ip4Common.c | 262 Head->TotalLen = NTOHS (Head->TotalLen); in Ip4NtohHead()
|
D | Ip4Input.h | 63 INTN TotalLen; member
|
D | Ip4Output.c | 76 PacketHead->TotalLen = HTONS ((UINT16) Packet->TotalSize); in Ip4PrependHead()
|
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/ |
D | Ip6Input.c | 52 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 …]
|
D | Ip6Input.h | 83 UINT32 TotalLen; member
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/ |
D | Dhcp4Option.c | 562 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/ |
D | UfsHci.c | 437 UINTN TotalLen; in UfsCreateScsiCommandDesc() local 463 …TotalLen = 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 555 …TotalLen = 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/ |
D | UfsPassThruHci.c | 511 UINTN TotalLen; in UfsCreateScsiCommandDesc() local 535 …TotalLen = 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 631 …TotalLen = 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/ |
D | NetBuffer.c | 731 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/ |
D | XhciSched.c | 227 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/ |
D | XhciSched.c | 233 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/ |
D | Udp6Impl.c | 788 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/ |
D | Udp4Impl.c | 789 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/ |
D | IpSecImpl.c | 1091 … 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/ |
D | UserProfileModify.c | 1396 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/ |
D | VfrUtilityLib.cpp | 477 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/ |
D | UefiIfrForm.c | 653 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/ |
D | VfrUtilityLib.cpp | 400 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/ |
D | IScsiProto.c | 441 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/ |
D | IScsiProto.c | 659 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/ |
D | NetLib.h | 134 UINT16 TotalLen; member
|