Home
last modified time | relevance | path

Searched refs:NTOHL (Results 1 – 25 of 46) sorted by relevance

12

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/
DMtftp4Impl.c195 if (IP4_IS_UNSPECIFIED (NTOHL (Ip)) || IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Mtftp4OverrideValid()
202 Gateway = NTOHL (Gateway); in Mtftp4OverrideValid()
208 Netmask = NTOHL (Netmask); in Mtftp4OverrideValid()
209 Ip = NTOHL (Ip); in Mtftp4OverrideValid()
445 Instance->ServerIp = NTOHL (Instance->ServerIp); in Mtftp4Start()
451 Instance->Gateway = NTOHL (Instance->Gateway); in Mtftp4Start()
461 Instance->ServerIp = NTOHL (Instance->ServerIp); in Mtftp4Start()
462 Instance->Gateway = NTOHL (Instance->Gateway); in Mtftp4Start()
665 Ip = NTOHL (Ip); in EfiMtftp4Configure()
666 Netmask = NTOHL (Netmask); in EfiMtftp4Configure()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/
DIScsiProto.c679 LoginRsp->InitiatorTaskTag = NTOHL (LoginRsp->InitiatorTaskTag); in IScsiProcessLoginRsp()
699 LoginRsp->StatSN = NTOHL (LoginRsp->StatSN); in IScsiProcessLoginRsp()
700 LoginRsp->ExpCmdSN = NTOHL (LoginRsp->ExpCmdSN); in IScsiProcessLoginRsp()
701 LoginRsp->MaxCmdSN = NTOHL (LoginRsp->MaxCmdSN); in IScsiProcessLoginRsp()
1883 ScsiCmd->ExpDataXferLength = NTOHL (Packet->InTransferLength); in IScsiNewScsiCmdPdu()
1888 ScsiCmd->ExpDataXferLength = NTOHL (Packet->OutTransferLength); in IScsiNewScsiCmdPdu()
1893 ScsiCmd->ExpDataXferLength = NTOHL (Packet->OutTransferLength); in IScsiNewScsiCmdPdu()
1903 BiExpReadDataLenAHS->ExpReadDataLength = NTOHL (Packet->InTransferLength); in IScsiNewScsiCmdPdu()
1910 ScsiCmd->InitiatorTaskTag = NTOHL (Tcb->InitiatorTaskTag); in IScsiNewScsiCmdPdu()
1911 ScsiCmd->CmdSN = NTOHL (Tcb->CmdSN); in IScsiNewScsiCmdPdu()
[all …]
DIScsiConfig.c732 …!NetIp4IsUnicast (NTOHL (HostIp.Addr[0]), NTOHL(*(UINT32*)Private->Current->SessionConfigData.Subn… in IScsiFormCallback()
759 …!NetIp4IsUnicast (NTOHL (Gateway.Addr[0]), NTOHL(*(UINT32*)Private->Current->SessionConfigData.Sub… in IScsiFormCallback()
875 …if (IP4_IS_UNSPECIFIED (NTOHL (HostIp.Addr[0])) || IP4_IS_LOCAL_BROADCAST (NTOHL (HostIp.Addr[0]))… in IScsiFormCallback()
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiProto.c920 LoginRsp->InitiatorTaskTag = NTOHL (LoginRsp->InitiatorTaskTag); in IScsiProcessLoginRsp()
940 LoginRsp->StatSN = NTOHL (LoginRsp->StatSN); in IScsiProcessLoginRsp()
941 LoginRsp->ExpCmdSN = NTOHL (LoginRsp->ExpCmdSN); in IScsiProcessLoginRsp()
942 LoginRsp->MaxCmdSN = NTOHL (LoginRsp->MaxCmdSN); in IScsiProcessLoginRsp()
2212 ScsiCmd->ExpDataXferLength = NTOHL (Packet->InTransferLength); in IScsiNewScsiCmdPdu()
2217 ScsiCmd->ExpDataXferLength = NTOHL (Packet->OutTransferLength); in IScsiNewScsiCmdPdu()
2222 ScsiCmd->ExpDataXferLength = NTOHL (Packet->OutTransferLength); in IScsiNewScsiCmdPdu()
2232 BiExpReadDataLenAHS->ExpReadDataLength = NTOHL (Packet->InTransferLength); in IScsiNewScsiCmdPdu()
2239 ScsiCmd->InitiatorTaskTag = NTOHL (Tcb->InitiatorTaskTag); in IScsiNewScsiCmdPdu()
2240 ScsiCmd->CmdSN = NTOHL (Tcb->CmdSN); in IScsiNewScsiCmdPdu()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Icmp.c115 IpIf = Ip4FindInterface (IpSb, NTOHL (Icmp->IpHead.Src)); in Ip4ProcessIcmpRedirect()
116 Gateway = NTOHL (Icmp->Fourth); in Ip4ProcessIcmpRedirect()
138 Dst = NTOHL (Icmp->IpHead.Dst); in Ip4ProcessIcmpRedirect()
139 Src = NTOHL (Icmp->IpHead.Src); in Ip4ProcessIcmpRedirect()
146 if ((CacheEntry != NULL) && (NTOHL (Head->Src) == CacheEntry->NextHop)) { in Ip4ProcessIcmpRedirect()
DIp4Impl.c637 Ip = NTOHL (Ip); in Ip4ConfigProtocol()
638 Netmask = NTOHL (Netmask); in Ip4ConfigProtocol()
948 IpAddress = NTOHL (IpAddress); in EfiIp4Configure()
949 SubnetMask = NTOHL (SubnetMask); in EfiIp4Configure()
1072 if (EFI_ERROR (Ip4JoinGroup (IpInstance, NTOHL (Group)))) { in Ip4Groups()
1096 if (EFI_ERROR (Ip4LeaveGroup (IpInstance, NTOHL (Group)))) { in Ip4Groups()
1170 if (!IP4_IS_MULTICAST (NTOHL (McastIp))) { in EfiIp4Groups()
1289 Dest = NTOHL (Dest); in EfiIp4Routes()
1290 Netmask = NTOHL (Netmask); in EfiIp4Routes()
1291 Nexthop = NTOHL (Nexthop); in EfiIp4Routes()
[all …]
DIp4Config2Nv.c618 …if (EFI_ERROR (Status) || !NetIp4IsUnicast (NTOHL (StationAddress.Addr[0]), NTOHL (SubnetMask.Addr… in Ip4Config2ConvertIfrNvDataToConfigNvData()
624 …ROR (Status) || ((Gateway.Addr[0] != 0) && !NetIp4IsUnicast (NTOHL (Gateway.Addr[0]), NTOHL (Subne… in Ip4Config2ConvertIfrNvDataToConfigNvData()
633 if (IP4_IS_UNSPECIFIED (NTOHL (Ip)) || IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Ip4Config2ConvertIfrNvDataToConfigNvData()
1149 … (EFI_ERROR (Status) || IP4_IS_UNSPECIFIED (NTOHL (StationAddress.Addr[0])) || IP4_IS_LOCAL_BROADC… in Ip4FormCallback()
1165 if (EFI_ERROR (Status) || IP4_IS_LOCAL_BROADCAST(NTOHL(Gateway.Addr[0]))) { in Ip4FormCallback()
1176 if (IP4_IS_UNSPECIFIED (NTOHL (Ip)) || IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Ip4FormCallback()
DIp4Common.c265 Head->Src = NTOHL (Head->Src); in Ip4NtohHead()
266 Head->Dst = NTOHL (Head->Dst); in Ip4NtohHead()
DIp4Igmp.c460 Address = NTOHL (Igmp.Group); in Ip4IgmpHandle()
488 Address = NTOHL (Igmp.Group); in Ip4IgmpHandle()
DIp4Config2Impl.c740 if (IP4_IS_UNSPECIFIED (NTOHL (DnsAddress)) || IP4_IS_LOCAL_BROADCAST (NTOHL (DnsAddress))) { in Ip4Config2SetDnsServerWorker()
1361 !NetIp4IsUnicast (NTOHL (Gateway), IpSb->DefaultInterface->SubnetMask)) { in Ip4Config2SetGateway()
1396 NTOHL (Gateway) in Ip4Config2SetGateway()
1408 NTOHL (Gateway) in Ip4Config2SetGateway()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4Main.c173 if (IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Tcp4Configure()
186 …if (!IP4_IS_VALID_NETMASK (NTOHL (SubnetMask)) || !NetIp4IsUnicast (NTOHL (Ip), NTOHL (SubnetMask)… in Tcp4Configure()
DTcp4Output.c332 Head->Seq = NTOHL (Seg->Seq); in TcpTransmitSegment()
333 Head->Ack = NTOHL (Tcb->RcvNxt); in TcpTransmitSegment()
1086 Nhead->Ack = HTONL (NTOHL (Head->Seq) + Len); in TcpSendReset()
DTcp4Option.c50 return NTOHL (Value); in TcpGetUint32()
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIkeCommon.c133 Header->MessageId = NTOHL (Header->MessageId); in IkeHdrNetToHost()
134 Header->Length = NTOHL (Header->Length); in IkeHdrNetToHost()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Udp4Dxe/
DUdp4Main.c168 StationAddress = NTOHL (StationAddress); in Udp4Configure()
169 SubnetMask = NTOHL (SubnetMask); in Udp4Configure()
170 RemoteAddress = NTOHL (RemoteAddress); in Udp4Configure()
344 if (!IP4_IS_MULTICAST (NTOHL (McastIp))) { in Udp4Groups()
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DTcpMain.c150 if (IP4_IS_LOCAL_BROADCAST (NTOHL (Ip))) { in Tcp4Configure()
162 …if (!IP4_IS_VALID_NETMASK (NTOHL (SubnetMask)) || !NetIp4IsUnicast (NTOHL (Ip), NTOHL (SubnetMask)… in Tcp4Configure()
DTcpOutput.c326 Head->Seq = NTOHL (Seg->Seq); in TcpTransmitSegment()
327 Head->Ack = NTOHL (Tcb->RcvNxt); in TcpTransmitSegment()
1137 Nhead->Ack = HTONL (NTOHL (Head->Seq) + Len); in TcpSendReset()
DTcpOption.c51 return NTOHL (Value); in TcpGetUint32()
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DHost.h22 #define NTOHL _UNIX_EFI_NAME_MANGLE_NTOHL_ macro
80 #undef NTOHL
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/UefiPxeBcDxe/
DPxeBcImpl.c179 (NTOHL (Mode->SubnetMask.Addr[0]) != 0) && in IcmpErrorListenHandlerDpc()
180 …IP4_NET_EQUAL (NTOHL(Mode->StationIp.Addr[0]), EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (M… in IcmpErrorListenHandlerDpc()
181 … !NetIp4IsUnicast (EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (Mode->SubnetMask.Addr[0]))) { in IcmpErrorListenHandlerDpc()
1169 (IP4_IS_UNSPECIFIED (NTOHL (ServerIp->Addr[0])) || in EfiPxeBcMtftp()
1170 IP4_IS_LOCAL_BROADCAST (NTOHL (ServerIp->Addr[0])))) || in EfiPxeBcMtftp()
1385 … ((GatewayIp != NULL) && (IP4_IS_UNSPECIFIED (NTOHL (GatewayIp->Addr[0])) || IP4_IS_LOCAL_BROADCAS… in EfiPxeBcUdpWrite()
2317 if (NewSubnetMask != NULL && !IP4_IS_VALID_NETMASK (NTOHL (NewSubnetMask->Addr[0]))) { in EfiPxeBcSetStationIP()
2322 if (IP4_IS_UNSPECIFIED(NTOHL (NewStationIp->Addr[0])) || in EfiPxeBcSetStationIP()
2323 IP4_IS_LOCAL_BROADCAST(NTOHL (NewStationIp->Addr[0])) || in EfiPxeBcSetStationIP()
2324 …(NewSubnetMask != NULL && !NetIp4IsUnicast (NTOHL (NewStationIp->Addr[0]), NTOHL (NewSubnetMask->A… in EfiPxeBcSetStationIP()
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Dendian.h126 #define NTOHL(x) (void) (x) macro
138 #define NTOHL(x) (x) = ntohl((uint32_t)(x))
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/
DPxeBcImpl.c873 …if (IP4_IS_UNSPECIFIED (NTOHL (ServerIp->Addr[0])) || IP4_IS_LOCAL_BROADCAST (NTOHL (ServerIp->Add… in EfiPxeBcMtftp()
1088 …if (!Mode->UsingIpv6 && GatewayIp != NULL && !NetIp4IsUnicast (NTOHL (GatewayIp->Addr[0]), EFI_NTO… in EfiPxeBcUdpWrite()
2012 !IP4_IS_VALID_NETMASK (NTOHL (NewSubnetMask->Addr[0]))) { in EfiPxeBcSetStationIP()
2017 if (IP4_IS_UNSPECIFIED(NTOHL (NewStationIp->Addr[0])) || in EfiPxeBcSetStationIP()
2018 IP4_IS_LOCAL_BROADCAST(NTOHL (NewStationIp->Addr[0])) || in EfiPxeBcSetStationIP()
2019 …(NewSubnetMask != NULL && !NetIp4IsUnicast (NTOHL (NewStationIp->Addr[0]), NTOHL (NewSubnetMask->A… in EfiPxeBcSetStationIP()
DPxeBcSupport.c261 (NTOHL (Mode->SubnetMask.Addr[0]) != 0) && in PxeBcIcmpErrorDpcHandle()
262 …IP4_NET_EQUAL (NTOHL(Mode->StationIp.Addr[0]), EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (M… in PxeBcIcmpErrorDpcHandle()
263 … !NetIp4IsUnicast (EFI_NTOHL (RxData->Header->SourceAddress), NTOHL (Mode->SubnetMask.Addr[0]))) { in PxeBcIcmpErrorDpcHandle()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4Impl.c663 if (IP4_IS_LOCAL_BROADCAST(NTOHL (Ip))) { in EfiDhcp4Configure()
1516 (NTOHL (Token->Packet->Dhcp4.Header.Xid) == Instance->Service->Xid) || in EfiDhcp4TransmitReceive()
1581 EndPoint.RemoteAddr.Addr[0] = NTOHL (Ip); in EfiDhcp4TransmitReceive()
1595 Gateway.Addr[0] = NTOHL (Gateway.Addr[0]); in EfiDhcp4TransmitReceive()
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/
DNetLib.h218 #define NTOHL(x) SwapBytes32 (x) macro
220 #define HTONL(x) NTOHL(x)
245 #define EFI_NTOHL(EfiIp) (NTOHL (EFI_IP4 ((EfiIp))))

12