/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/ |
D | Ip4Common.c | 262 Head->TotalLen = NTOHS (Head->TotalLen); in Ip4NtohHead() 263 Head->Id = NTOHS (Head->Id); in Ip4NtohHead() 264 Head->Fragment = NTOHS (Head->Fragment); in Ip4NtohHead()
|
/device/linaro/bootloader/edk2/NetworkPkg/HttpBootDxe/ |
D | HttpBootDhcp6.c | 156 if (NTOHS (Option->OpCode) == OptTag) { in HttpBootParseDhcp6Options() 161 Offset += (NTOHS(Option->OpLen) + 4); in HttpBootParseDhcp6Options() 214 if (NTOHS (Option->OpCode) == DHCP6_OPT_IA_NA) { in HttpBootParseDhcp6Packet() 216 } else if (NTOHS (Option->OpCode) == DHCP6_OPT_BOOT_FILE_URL) { in HttpBootParseDhcp6Packet() 221 } else if (NTOHS (Option->OpCode) == DHCP6_OPT_BOOT_FILE_PARAM) { in HttpBootParseDhcp6Packet() 223 } else if (NTOHS (Option->OpCode) == DHCP6_OPT_VENDOR_CLASS) { in HttpBootParseDhcp6Packet() 225 } else if (NTOHS (Option->OpCode) == DHCP6_OPT_DNS_SERVERS) { in HttpBootParseDhcp6Packet() 229 Offset += (NTOHS (Option->OpLen) + 4); in HttpBootParseDhcp6Packet() 240 NTOHS (Option->OpLen), in HttpBootParseDhcp6Packet() 254 NTOHS(Option->OpLen) >= 16 && in HttpBootParseDhcp6Packet()
|
D | HttpBootDhcp6.h | 95 sizeof (EFI_DHCP6_PACKET_OPTION) + (NTOHS ((Opt)->OpLen)) - 1)
|
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/ |
D | PxeBcDhcp6.c | 55 if (NTOHS (Option->OpCode) == OptTag) { in PxeBcParseDhcp6Options() 60 Offset += (NTOHS(Option->OpLen) + 4); in PxeBcParseDhcp6Options() 611 Length = NTOHS (Length); in PxeBcExtractBootFileParam() 683 if (NTOHS (Option->OpCode) == DHCP6_OPT_IA_NA) { in PxeBcParseDhcp6Packet() 685 } else if (NTOHS (Option->OpCode) == DHCP6_OPT_BOOT_FILE_URL) { in PxeBcParseDhcp6Packet() 690 } else if (NTOHS (Option->OpCode) == DHCP6_OPT_BOOT_FILE_PARAM) { in PxeBcParseDhcp6Packet() 692 } else if (NTOHS (Option->OpCode) == DHCP6_OPT_VENDOR_CLASS) { in PxeBcParseDhcp6Packet() 694 } else if (NTOHS (Option->OpCode) == DHCP6_OPT_DNS_SERVERS) { in PxeBcParseDhcp6Packet() 698 Offset += (NTOHS (Option->OpLen) + 4); in PxeBcParseDhcp6Packet() 710 NTOHS (Option->OpLen), in PxeBcParseDhcp6Packet() [all …]
|
D | PxeBcBoot.c | 334 *Type = NTOHS (*Type); in PxeBcSelectBootMenu() 445 *Type = NTOHS (*Type); in PxeBcSelectBootMenu() 542 Value = NTOHS (Value); in PxeBcDhcp4BootInfo() 640 NTOHS (Cache6->OptList[PXEBC_DHCP6_IDX_BOOT_FILE_URL]->OpLen) in PxeBcDhcp6BootInfo() 801 Info->SrvList[Index].Type = NTOHS (Entry->Type); in PxeBcExtractDiscoverInfo()
|
D | PxeBcDhcp6.h | 46 sizeof (EFI_DHCP6_PACKET_OPTION) + (NTOHS ((Opt)->OpLen)) - 1)
|
/device/linaro/bootloader/edk2/NetworkPkg/DnsDxe/ |
D | DnsImpl.c | 1083 if (NTOHS (DnsHeader->Identification) == Identification && in IsValidDnsResponse() 1084 NTOHS (QuerySection->Type) == Type && in IsValidDnsResponse() 1085 NTOHS (QuerySection->Class) == Class) { in IsValidDnsResponse() 1171 DnsHeader->Identification = NTOHS (DnsHeader->Identification); in ParseDnsResponse() 1172 DnsHeader->Flags.Uint16 = NTOHS (DnsHeader->Flags.Uint16); in ParseDnsResponse() 1173 DnsHeader->QuestionsNum = NTOHS (DnsHeader->QuestionsNum); in ParseDnsResponse() 1174 DnsHeader->AnswersNum = NTOHS (DnsHeader->AnswersNum); in ParseDnsResponse() 1175 DnsHeader->AuthorityNum = NTOHS (DnsHeader->AuthorityNum); in ParseDnsResponse() 1176 DnsHeader->AditionalNum = NTOHS (DnsHeader->AditionalNum); in ParseDnsResponse() 1187 QuerySection->Type = NTOHS (QuerySection->Type); in ParseDnsResponse() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
D | Tcp4Misc.c | 600 Seg->Urg = NTOHS (Head->Urg); in TcpFormatNetbuf() 601 Seg->Wnd = (NTOHS (Head->Wnd) << Tcb->SndWndScale); in TcpFormatNetbuf() 611 Seg->Wnd = NTOHS (Head->Wnd); in TcpFormatNetbuf() 905 LocalPort = NTOHS (Tcb->LocalEnd.Port); in TcpInstallDevicePath() 906 RemotePort = NTOHS (Tcb->RemoteEnd.Port); in TcpInstallDevicePath()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/ |
D | Host.h | 24 #define NTOHS _UNIX_EFI_NAME_MANGLE_NTOHS_ macro 82 #undef NTOHS
|
/device/linaro/bootloader/edk2/NetworkPkg/Dhcp6Dxe/ |
D | Dhcp6Utility.c | 227 OptionSize = NTOHS (SorCfg->OptionList[Index]->OpLen) + 4; in Dhcp6CopyConfigData() 646 CopyMem (Buf, Data, NTOHS (OptLen)); in Dhcp6AppendOption() 647 Buf += NTOHS (OptLen); in Dhcp6AppendOption() 950 DataLen = NTOHS (ReadUnaligned16 ((UINT16 *) (Cursor + 2))); in Dhcp6SeekOption() 995 DataLen = NTOHS (ReadUnaligned16 ((UINT16 *) (Cursor + 2))); in Dhcp6SeekIaOption() 1109 DataLen = NTOHS (ReadUnaligned16 ((UINT16 *) (Cursor + 2))); in Dhcp6ParseAddrOption()
|
D | Dhcp6Io.c | 630 IaInnerLen = (UINT16) (NTOHS (ReadUnaligned16 ((UINT16 *) (Option + 2))) - 12); in Dhcp6UpdateIaInfo() 635 IaInnerLen = (UINT16) (NTOHS (ReadUnaligned16 ((UINT16 *) (Option + 2))) - 4); in Dhcp6UpdateIaInfo() 661 StsCode = NTOHS (ReadUnaligned16 ((UINT16 *) (Option + 4))); in Dhcp6UpdateIaInfo() 718 StsCode = NTOHS (ReadUnaligned16 ((UINT16 *) (*Option + 4))); in Dhcp6SeekStsOption() 779 IaInnerLen = (UINT16) (NTOHS (ReadUnaligned16 ((UINT16 *) (*Option + 2))) - 12); in Dhcp6SeekStsOption() 782 IaInnerLen = (UINT16) (NTOHS (ReadUnaligned16 ((UINT16 *) (*Option + 2))) - 4); in Dhcp6SeekStsOption() 806 StsCode = NTOHS (ReadUnaligned16 ((UINT16 *) (*Option + 4))); in Dhcp6SeekStsOption() 946 UserLen += (NTOHS (Instance->Config->OptionList[Index]->OpLen) + 4); in Dhcp6SendSolicitMsg() 1128 UserLen += (NTOHS (Instance->Config->OptionList[Index]->OpLen) + 4); in Dhcp6SendRequestMsg() 1551 UserLen += (NTOHS (Instance->Config->OptionList[Index]->OpLen) + 4); in Dhcp6SendRenewRebindMsg() [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/ |
D | IScsiDhcp6.c | 277 OptionList[Index]->OpCode = NTOHS (OptionList[Index]->OpCode); in IScsiDhcp6ParseReply() 278 OptionList[Index]->OpLen = NTOHS (OptionList[Index]->OpLen); in IScsiDhcp6ParseReply() 318 if (NTOHS (ParaLen) != 16) { in IScsiDhcp6ParseReply()
|
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
D | TcpMisc.c | 707 Seg->Urg = NTOHS (Head->Urg); in TcpFormatNetbuf() 708 Seg->Wnd = (NTOHS (Head->Wnd) << Tcb->SndWndScale); in TcpFormatNetbuf() 718 Seg->Wnd = NTOHS (Head->Wnd); in TcpFormatNetbuf() 998 LocalPort = NTOHS (Tcb->LocalEnd.Port); in TcpInstallDevicePath() 999 RemotePort = NTOHS (Tcb->RemoteEnd.Port); in TcpInstallDevicePath()
|
D | TcpDispatcher.c | 105 AccessPoint->StationPort = NTOHS (Tcb->LocalEnd.Port); in Tcp4GetMode() 109 AccessPoint->RemotePort = NTOHS (Tcb->RemoteEnd.Port); in Tcp4GetMode() 183 AccessPoint->StationPort = NTOHS (Tcb->LocalEnd.Port); in Tcp6GetMode() 184 AccessPoint->RemotePort = NTOHS (Tcb->RemoteEnd.Port); in Tcp6GetMode()
|
/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
D | endian.h | 127 #define NTOHS(x) (void) (x) macro 139 #define NTOHS(x) (x) = ntohs((uint16_t)(x))
|
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/Ikev2/ |
D | Payload.c | 1842 ProposalSize = NTOHS (Proposal->Header.PayloadLength); in Ikev2DecodeSa() 1931 ProposalSize = NTOHS (Proposal->Header.PayloadLength); in Ikev2DecodeSa() 1953 TransformData->TransformId = NTOHS (Transform->TransformId); in Ikev2DecodeSa() 1955 TransformSize = NTOHS (Transform->Header.PayloadLength); in Ikev2DecodeSa() 1979 …TransformData->Attribute.AttrType = (UINT16)((NTOHS (SaAttribute->AttrType)) & ~SA_ATTR_FOR… in Ikev2DecodeSa() 1980 TransformData->Attribute.Attr.AttrValue = NTOHS (SaAttribute->Attr.AttrValue); in Ikev2DecodeSa() 2211 NotifyPayload->MessageType = NTOHS (NotifyPayload->MessageType); in Ikev2DecodePayload() 2221 DeletePayload->NumSpis = NTOHS (DeletePayload->NumSpis); in Ikev2DecodePayload() 2250 TsSelector->SelecorLen = NTOHS (TsSelector->SelecorLen); in Ikev2DecodePayload() 2251 TsSelector->StartPort = NTOHS (TsSelector->StartPort); in Ikev2DecodePayload() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/ |
D | Mtftp4Rrq.c | 154 Block = NTOHS (Packet->Data.Block); in Mtftp4RrqSaveBlock() 260 BlockNum = NTOHS (Packet->Data.Block); in Mtftp4RrqHandleData() 711 Opcode = NTOHS (Packet->OpCode); in Mtftp4RrqInput()
|
D | Mtftp4Wrq.c | 151 AckNum = NTOHS (Packet->Ack.Block[0]); in Mtftp4WrqHandleAck() 404 Opcode = NTOHS (Packet->OpCode); in Mtftp4WrqInput()
|
D | Mtftp4Support.c | 485 OpCode = NTOHS (*(UINT16 *)Buffer); in Mtftp4SendPacket() 543 OpCode = NTOHS (*(UINT16 *) Buffer); in Mtftp4Retransmit()
|
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/ |
D | IpSecImpl.c | 264 NTOHS (((EFI_UDP_HEADER *) IpPayload)->SrcPort) == SpdLocalPort && in IpSecMatchNextLayerProtocol() 265 NTOHS (((EFI_UDP_HEADER *) IpPayload)->DstPort) == SpdRemotePort in IpSecMatchNextLayerProtocol() 272 NTOHS (((EFI_UDP_HEADER *) IpPayload)->DstPort) == SpdLocalPort && in IpSecMatchNextLayerProtocol() 273 NTOHS (((EFI_UDP_HEADER *) IpPayload)->SrcPort) == SpdRemotePort in IpSecMatchNextLayerProtocol() 1091 … NTOHS (((IP4_HEAD *)IpPayload)->TotalLen) - (((IP4_HEAD *)IpPayload)->HeadLen << 2) in IpSecTunnelInboundPacket() 1102 …*Checksum = (UINT16) ~(NetAddChecksum (*Checksum, HTONS((UINT16)(NTOHS (((IP4_HEAD *)IpPayload)->T… in IpSecTunnelInboundPacket() 1154 NTOHS(((EFI_IP6_HEADER *)IpPayload)->PayloadLength) - OptionLen in IpSecTunnelInboundPacket() 1167 … HTONS ((UINT16)((NTOHS (((EFI_IP6_HEADER *)(IpPayload))->PayloadLength)) - OptionLen)) in IpSecTunnelInboundPacket()
|
/device/linaro/bootloader/edk2/NetworkPkg/Mtftp6Dxe/ |
D | Mtftp6Rrq.c | 102 Block = NTOHS (Packet->Data.Block); in Mtftp6RrqSaveBlock() 227 BlockNum = NTOHS (Packet->Data.Block); in Mtftp6RrqHandleData() 752 Opcode = NTOHS (Packet->OpCode); in Mtftp6RrqInput()
|
D | Mtftp6Wrq.c | 159 AckNum = NTOHS (Packet->Ack.Block[0]); in Mtftp6WrqHandleAck() 455 Opcode = NTOHS (Packet->OpCode); in Mtftp6WrqInput()
|
/device/linaro/bootloader/edk2/NetworkPkg/Udp6Dxe/ |
D | Udp6Impl.c | 1633 Udp6Session->SourcePort = NTOHS (Udp6Header->SrcPort); in Udp6Demultiplex() 1634 Udp6Session->DestinationPort = NTOHS (Udp6Header->DstPort); in Udp6Demultiplex() 1746 NTOHS(((EFI_UDP_HEADER *) Udp6Header)->Length) + in Udp6SendPortUnreach() 1854 Udp6Session.SourcePort = NTOHS (Udp6Header->DstPort); in Udp6IcmpHandler() 1855 Udp6Session.DestinationPort = NTOHS (Udp6Header->SrcPort); in Udp6IcmpHandler()
|
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/ |
D | Ip6Common.c | 668 Head->FlowLabelL = NTOHS (Head->FlowLabelL); in Ip6NtohHead() 669 Head->PayloadLength = NTOHS (Head->PayloadLength); in Ip6NtohHead()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/MnpDxe/ |
D | MnpVlan.c | 148 ProtocolType = NTOHS (*(UINT16 *) (Packet + ProtocolOffset)); in MnpRemoveVlanTag() 156 VlanTag.Uint16 = NTOHS (*(UINT16 *) (Packet + ProtocolOffset + sizeof (ProtocolType))); in MnpRemoveVlanTag()
|