/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/Observable/ |
D | Observable.c | 97 OBS_LEAF* Head in DeleteSubscriber() 102 if (Head) { in DeleteSubscriber() 103 Temp = Head; in DeleteSubscriber() 104 Head = Head->Next; in DeleteSubscriber() 108 return Head; in DeleteSubscriber() 121 OBS_LEAF* Head in DeleteAllSubscribers() 124 if (Head) { in DeleteAllSubscribers() 125 if (Head->Next) { in DeleteAllSubscribers() 129 Head->Next = DeleteAllSubscribers(Head->Next); in DeleteAllSubscribers() 135 Head = DeleteSubscriber(Head); in DeleteAllSubscribers() [all …]
|
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/ |
D | Malloc.c | 86 CPOOL_HEAD *Head; in malloc() local 101 Status = gBS->AllocatePool( EfiLoaderData, NodeSize, (void**)&Head); in malloc() 108 assert(Head != NULL); in malloc() 110 Head->Signature = CPOOL_HEAD_SIGNATURE; in malloc() 111 Head->Size = NodeSize; in malloc() 114 (void)InsertTailList(&MemPoolHead, (LIST_ENTRY *)Head); in malloc() 117 RetVal = (void*)Head->Data; in malloc() 118 DEBUG((DEBUG_POOL, " Head: %p, Returns %p\n", Head, RetVal)); in malloc() 171 CPOOL_HEAD *Head; in free() local 173 Head = BASE_CR(Ptr, CPOOL_HEAD, Data); in free() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/ |
D | Ip4Output.c | 41 IN IP4_HEAD *Head, in Ip4PrependHead() argument 55 FirstFragment = IP4_FIRST_FRAGMENT (Head->Fragment); in Ip4PrependHead() 75 PacketHead->Tos = Head->Tos; in Ip4PrependHead() 77 PacketHead->Id = HTONS (Head->Id); in Ip4PrependHead() 78 PacketHead->Fragment = HTONS (Head->Fragment); in Ip4PrependHead() 80 PacketHead->Ttl = Head->Ttl; in Ip4PrependHead() 81 PacketHead->Protocol = Head->Protocol; in Ip4PrependHead() 82 PacketHead->Src = HTONL (Head->Src); in Ip4PrependHead() 83 PacketHead->Dst = HTONL (Head->Dst); in Ip4PrependHead() 219 IN IP4_HEAD *Head, in Ip4Output() argument [all …]
|
D | Ip4Input.c | 60 Assemble->Head = NULL; in Ip4CreateAssembleEntry() 227 LIST_ENTRY *Head; in Ip4Reassemble() local 281 Head = &Assemble->Fragments; in Ip4Reassemble() 283 NET_LIST_FOR_EACH (Cur, Head) { in Ip4Reassemble() 297 if ((Prev = Cur->BackLink) != Head) { in Ip4Reassemble() 323 while (Cur != Head) { in Ip4Reassemble() 371 ASSERT (Assemble->Head == NULL); in Ip4Reassemble() 373 Assemble->Head = IpHead; in Ip4Reassemble() 400 Fragment = NET_LIST_USER_STRUCT (Head->BackLink, NET_BUF, List); in Ip4Reassemble() 423 NewPacket->Ip.Ip4 = Assemble->Head; in Ip4Reassemble() [all …]
|
D | Ip4Icmp.c | 98 IN IP4_HEAD *Head, in Ip4ProcessIcmpRedirect() argument 146 if ((CacheEntry != NULL) && (NTOHL (Head->Src) == CacheEntry->NextHop)) { in Ip4ProcessIcmpRedirect() 174 IN IP4_HEAD *Head, in Ip4ProcessIcmpError() argument 191 if (Icmp.Head.Type == ICMP_REDIRECT) { in Ip4ProcessIcmpError() 192 return Ip4ProcessIcmpRedirect (IpSb, Head, Packet, &Icmp); in Ip4ProcessIcmpError() 196 return Ip4Demultiplex (IpSb, Head, Packet, NULL, 0); in Ip4ProcessIcmpError() 216 IN IP4_HEAD *Head, in Ip4IcmpReplyEcho() argument 244 Icmp->Head.Type = ICMP_ECHO_REPLY; in Ip4IcmpReplyEcho() 245 Icmp->Head.Checksum = 0; in Ip4IcmpReplyEcho() 246 Icmp->Head.Checksum = (UINT16) (~NetblockChecksum ((UINT8 *) Icmp, Data->TotalSize)); in Ip4IcmpReplyEcho() [all …]
|
D | Ip4Common.c | 259 IN IP4_HEAD *Head in Ip4NtohHead() argument 262 Head->TotalLen = NTOHS (Head->TotalLen); in Ip4NtohHead() 263 Head->Id = NTOHS (Head->Id); in Ip4NtohHead() 264 Head->Fragment = NTOHS (Head->Fragment); in Ip4NtohHead() 265 Head->Src = NTOHL (Head->Src); in Ip4NtohHead() 266 Head->Dst = NTOHL (Head->Dst); in Ip4NtohHead() 268 return Head; in Ip4NtohHead()
|
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/ |
D | Ip6Icmp.c | 137 IN EFI_IP6_HEADER *Head, in Ip6IcmpReplyEcho() argument 168 Icmp->Head.Type = ICMP_V6_ECHO_REPLY; in Ip6IcmpReplyEcho() 169 Icmp->Head.Checksum = 0; in Ip6IcmpReplyEcho() 181 IP6_COPY_ADDRESS (&ReplyHead.DestinationAddress, &Head->SourceAddress); in Ip6IcmpReplyEcho() 183 if (Ip6IsOneOfSetAddress (IpSb, &Head->DestinationAddress, NULL, NULL)) { in Ip6IcmpReplyEcho() 184 IP6_COPY_ADDRESS (&ReplyHead.SourceAddress, &Head->DestinationAddress); in Ip6IcmpReplyEcho() 228 IN EFI_IP6_HEADER *Head, in Ip6ProcessPacketTooBig() argument 290 IN EFI_IP6_HEADER *Head, in Ip6ProcessIcmpError() argument 304 if (Icmp.Head.Type == ICMP_V6_PACKET_TOO_BIG) { in Ip6ProcessIcmpError() 305 return Ip6ProcessPacketTooBig (IpSb, Head, Packet); in Ip6ProcessIcmpError() [all …]
|
D | Ip6Mld.c | 141 EFI_IP6_HEADER Head; in Ip6SendMldReport() local 172 Head.FlowLabelL = 0; in Ip6SendMldReport() 173 Head.FlowLabelH = 0; in Ip6SendMldReport() 174 Head.PayloadLength = HTONS (PayloadLen); in Ip6SendMldReport() 175 Head.NextHeader = IP6_HOP_BY_HOP; in Ip6SendMldReport() 176 Head.HopLimit = 1; in Ip6SendMldReport() 177 IP6_COPY_ADDRESS (&Head.DestinationAddress, MulticastAddr); in Ip6SendMldReport() 182 IP6_COPY_ADDRESS (&Head.SourceAddress, &IpSb->LinkLocalAddr); in Ip6SendMldReport() 204 MldHead->Head.Type = ICMP_V6_LISTENER_REPORT; in Ip6SendMldReport() 205 MldHead->Head.Code = 0; in Ip6SendMldReport() [all …]
|
D | Ip6Input.c | 54 Assemble->Head = NULL; in Ip6CreateAssembleEntry() 169 EFI_IP6_HEADER *Head; in Ip6Reassemble() local 186 Head = Packet->Ip.Ip6; in Ip6Reassemble() 189 ASSERT (Head != NULL); in Ip6Reassemble() 195 Index = IP6_ASSEMBLE_HASH (&Head->DestinationAddress, &Head->SourceAddress, This->Id); in Ip6Reassemble() 201 EFI_IP6_EQUAL (&Entry->Src, &Head->SourceAddress) && in Ip6Reassemble() 202 EFI_IP6_EQUAL (&Entry->Dst, &Head->DestinationAddress) in Ip6Reassemble() 214 &Head->DestinationAddress, in Ip6Reassemble() 215 &Head->SourceAddress, in Ip6Reassemble() 323 if ((Assemble->Head != NULL) || (Assemble->Packet != NULL)) { in Ip6Reassemble() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciDxe/ |
D | UsbHcMem.c | 240 USBHC_MEM_BLOCK *Head; in UsbHcGetPciAddressForHostMem() local 246 Head = Pool->Head; in UsbHcGetPciAddressForHostMem() 253 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcGetPciAddressForHostMem() 282 IN USBHC_MEM_BLOCK *Head, in UsbHcInsertMemBlockToPool() argument 286 ASSERT ((Head != NULL) && (Block != NULL)); in UsbHcInsertMemBlockToPool() 287 Block->Next = Head->Next; in UsbHcInsertMemBlockToPool() 288 Head->Next = Block; in UsbHcInsertMemBlockToPool() 327 IN USBHC_MEM_BLOCK *Head, in UsbHcUnlinkMemBlock() argument 333 ASSERT ((Head != NULL) && (BlockToUnlink != NULL)); in UsbHcUnlinkMemBlock() 335 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcUnlinkMemBlock() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciDxe/ |
D | UsbHcMem.c | 239 USBHC_MEM_BLOCK *Head; in UsbHcGetPciAddressForHostMem() local 245 Head = Pool->Head; in UsbHcGetPciAddressForHostMem() 252 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcGetPciAddressForHostMem() 280 IN USBHC_MEM_BLOCK *Head, in UsbHcInsertMemBlockToPool() argument 284 ASSERT ((Head != NULL) && (Block != NULL)); in UsbHcInsertMemBlockToPool() 285 Block->Next = Head->Next; in UsbHcInsertMemBlockToPool() 286 Head->Next = Block; in UsbHcInsertMemBlockToPool() 325 IN USBHC_MEM_BLOCK *Head, in UsbHcUnlinkMemBlock() argument 331 ASSERT ((Head != NULL) && (BlockToUnlink != NULL)); in UsbHcUnlinkMemBlock() 333 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcUnlinkMemBlock() [all …]
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/ |
D | UsbHcMem.c | 240 USBHC_MEM_BLOCK *Head; in UsbHcGetPciAddressForHostMem() local 246 Head = Pool->Head; in UsbHcGetPciAddressForHostMem() 253 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcGetPciAddressForHostMem() 282 IN USBHC_MEM_BLOCK *Head, in UsbHcInsertMemBlockToPool() argument 286 ASSERT ((Head != NULL) && (Block != NULL)); in UsbHcInsertMemBlockToPool() 287 Block->Next = Head->Next; in UsbHcInsertMemBlockToPool() 288 Head->Next = Block; in UsbHcInsertMemBlockToPool() 327 IN USBHC_MEM_BLOCK *Head, in UsbHcUnlinkMemBlock() argument 333 ASSERT ((Head != NULL) && (BlockToUnlink != NULL)); in UsbHcUnlinkMemBlock() 335 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcUnlinkMemBlock() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/ |
D | UsbHcMem.c | 199 USBHC_MEM_BLOCK *Head; in UsbHcGetPciAddrForHostAddr() local 205 Head = Pool->Head; in UsbHcGetPciAddrForHostAddr() 212 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcGetPciAddrForHostAddr() 248 USBHC_MEM_BLOCK *Head; in UsbHcGetHostAddrForPciAddr() local 254 Head = Pool->Head; in UsbHcGetHostAddrForPciAddr() 261 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcGetHostAddrForPciAddr() 289 IN USBHC_MEM_BLOCK *Head, in UsbHcInsertMemBlockToPool() argument 293 ASSERT ((Head != NULL) && (Block != NULL)); in UsbHcInsertMemBlockToPool() 294 Block->Next = Head->Next; in UsbHcInsertMemBlockToPool() 295 Head->Next = Block; in UsbHcInsertMemBlockToPool() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/ |
D | UfsHcMem.c | 180 IN UFS_PEIM_MEM_BLOCK *Head, in UfsPeimInsertMemBlockToPool() argument 184 ASSERT ((Head != NULL) && (Block != NULL)); in UfsPeimInsertMemBlockToPool() 185 Block->Next = Head->Next; in UfsPeimInsertMemBlockToPool() 186 Head->Next = Block; in UfsPeimInsertMemBlockToPool() 224 IN UFS_PEIM_MEM_BLOCK *Head, in UfsPeimUnlinkMemBlock() argument 230 ASSERT ((Head != NULL) && (BlockToUnlink != NULL)); in UfsPeimUnlinkMemBlock() 232 for (Block = Head; Block != NULL; Block = Block->Next) { in UfsPeimUnlinkMemBlock() 271 Pool->Head = UfsPeimAllocMemBlock (UFS_PEIM_MEM_DEFAULT_PAGES); in UfsPeimInitMemPool() 273 if (Pool->Head == NULL) { in UfsPeimInitMemPool() 297 ASSERT (Pool->Head != NULL); in UfsPeimFreeMemPool() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/ |
D | SdHcMem.c | 180 IN SD_PEIM_MEM_BLOCK *Head, in SdPeimInsertMemBlockToPool() argument 184 ASSERT ((Head != NULL) && (Block != NULL)); in SdPeimInsertMemBlockToPool() 185 Block->Next = Head->Next; in SdPeimInsertMemBlockToPool() 186 Head->Next = Block; in SdPeimInsertMemBlockToPool() 224 IN SD_PEIM_MEM_BLOCK *Head, in SdPeimUnlinkMemBlock() argument 230 ASSERT ((Head != NULL) && (BlockToUnlink != NULL)); in SdPeimUnlinkMemBlock() 232 for (Block = Head; Block != NULL; Block = Block->Next) { in SdPeimUnlinkMemBlock() 271 Pool->Head = SdPeimAllocMemBlock (SD_PEIM_MEM_DEFAULT_PAGES); in SdPeimInitMemPool() 273 if (Pool->Head == NULL) { in SdPeimInitMemPool() 297 ASSERT (Pool->Head != NULL); in SdPeimFreeMemPool() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/EmmcBlockIoPei/ |
D | EmmcHcMem.c | 180 IN EMMC_PEIM_MEM_BLOCK *Head, in EmmcPeimInsertMemBlockToPool() argument 184 ASSERT ((Head != NULL) && (Block != NULL)); in EmmcPeimInsertMemBlockToPool() 185 Block->Next = Head->Next; in EmmcPeimInsertMemBlockToPool() 186 Head->Next = Block; in EmmcPeimInsertMemBlockToPool() 224 IN EMMC_PEIM_MEM_BLOCK *Head, in EmmcPeimUnlinkMemBlock() argument 230 ASSERT ((Head != NULL) && (BlockToUnlink != NULL)); in EmmcPeimUnlinkMemBlock() 232 for (Block = Head; Block != NULL; Block = Block->Next) { in EmmcPeimUnlinkMemBlock() 271 Pool->Head = EmmcPeimAllocMemBlock (EMMC_PEIM_MEM_DEFAULT_PAGES); in EmmcPeimInitMemPool() 273 if (Pool->Head == NULL) { in EmmcPeimInitMemPool() 297 ASSERT (Pool->Head != NULL); in EmmcPeimFreeMemPool() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/ |
D | UsbHcMem.c | 232 USBHC_MEM_BLOCK *Head; in UsbHcGetPciAddrForHostAddr() local 238 Head = Pool->Head; in UsbHcGetPciAddrForHostAddr() 245 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcGetPciAddrForHostAddr() 281 USBHC_MEM_BLOCK *Head; in UsbHcGetHostAddrForPciAddr() local 287 Head = Pool->Head; in UsbHcGetHostAddrForPciAddr() 294 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcGetHostAddrForPciAddr() 322 IN USBHC_MEM_BLOCK *Head, in UsbHcInsertMemBlockToPool() argument 326 ASSERT ((Head != NULL) && (Block != NULL)); in UsbHcInsertMemBlockToPool() 327 Block->Next = Head->Next; in UsbHcInsertMemBlockToPool() 328 Head->Next = Block; in UsbHcInsertMemBlockToPool() [all …]
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/ |
D | UsbHcMem.c | 209 IN USBHC_MEM_BLOCK *Head, in UsbHcInsertMemBlockToPool() argument 213 ASSERT ((Head != NULL) && (Block != NULL)); in UsbHcInsertMemBlockToPool() 214 Block->Next = Head->Next; in UsbHcInsertMemBlockToPool() 215 Head->Next = Block; in UsbHcInsertMemBlockToPool() 254 IN USBHC_MEM_BLOCK *Head, in UsbHcUnlinkMemBlock() argument 260 ASSERT ((Head != NULL) && (BlockToUnlink != NULL)); in UsbHcUnlinkMemBlock() 262 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcUnlinkMemBlock() 309 Pool->Head = UsbHcAllocMemBlock (Pool, USBHC_MEM_DEFAULT_PAGES); in UsbHcInitMemPool() 311 if (Pool->Head == NULL) { in UsbHcInitMemPool() 335 ASSERT (Pool->Head != NULL); in UsbHcFreeMemPool() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciPei/ |
D | UsbHcMem.c | 207 IN USBHC_MEM_BLOCK *Head, in UsbHcInsertMemBlockToPool() argument 211 ASSERT ((Head != NULL) && (Block != NULL)); in UsbHcInsertMemBlockToPool() 212 Block->Next = Head->Next; in UsbHcInsertMemBlockToPool() 213 Head->Next = Block; in UsbHcInsertMemBlockToPool() 251 IN USBHC_MEM_BLOCK *Head, in UsbHcUnlinkMemBlock() argument 257 ASSERT ((Head != NULL) && (BlockToUnlink != NULL)); in UsbHcUnlinkMemBlock() 259 for (Block = Head; Block != NULL; Block = Block->Next) { in UsbHcUnlinkMemBlock() 308 Pool->Head = UsbHcAllocMemBlock (Ehc, Pool, USBHC_MEM_DEFAULT_PAGES); in UsbHcInitMemPool() 310 if (Pool->Head == NULL) { in UsbHcInitMemPool() 333 ASSERT (Pool->Head != NULL); in UsbHcFreeMemPool() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Mem/ |
D | Pool.c | 310 POOL_HEAD *Head; in CoreAllocatePoolI() local 349 Head = NULL; in CoreAllocatePoolI() 358 Head = CoreAllocatePoolPages (PoolType, NoPages, Granularity); in CoreAllocatePoolI() 395 Head = (POOL_HEAD *) NewPage; in CoreAllocatePoolI() 425 Head = (POOL_HEAD *) Free; in CoreAllocatePoolI() 430 if (Head != NULL) { in CoreAllocatePoolI() 435 Head->Signature = POOL_HEAD_SIGNATURE; in CoreAllocatePoolI() 436 Head->Size = Size; in CoreAllocatePoolI() 437 Head->Type = (EFI_MEMORY_TYPE) PoolType; in CoreAllocatePoolI() 438 Tail = HEAD_TO_TAIL (Head); in CoreAllocatePoolI() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Console/TerminalDxe/ |
D | TerminalConIn.c | 94 TerminalDevice->RawFiFo->Head = TerminalDevice->RawFiFo->Tail; in TerminalConInReset() 95 TerminalDevice->UnicodeFiFo->Head = TerminalDevice->UnicodeFiFo->Tail; in TerminalConInReset() 96 TerminalDevice->EfiKeyFiFo->Head = TerminalDevice->EfiKeyFiFo->Tail; in TerminalConInReset() 97 TerminalDevice->EfiKeyFiFoForNotify->Head = TerminalDevice->EfiKeyFiFoForNotify->Tail; in TerminalConInReset() 752 UINT8 Head; in RawFiFoRemoveOneKey() local 754 Head = TerminalDevice->RawFiFo->Head; in RawFiFoRemoveOneKey() 764 *Output = TerminalDevice->RawFiFo->Data[Head]; in RawFiFoRemoveOneKey() 766 TerminalDevice->RawFiFo->Head = (UINT8) ((Head + 1) % (RAW_FIFO_MAX_NUMBER + 1)); in RawFiFoRemoveOneKey() 785 if (TerminalDevice->RawFiFo->Head == TerminalDevice->RawFiFo->Tail) { in IsRawFiFoEmpty() 807 UINT8 Head; in IsRawFiFoFull() local [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
D | TcpOption.c | 242 UINT8 *Head; in TcpParseOption() local 257 Head = (UINT8 *) (Tcp + 1); in TcpParseOption() 262 if ((TotalLen == TCP_OPTION_TS_ALIGNED_LEN) && (TcpGetUint32 (Head) == TCP_OPTION_TS_FAST)) { in TcpParseOption() 264 Option->TSVal = TcpGetUint32 (Head + 4); in TcpParseOption() 265 Option->TSEcr = TcpGetUint32 (Head + 8); in TcpParseOption() 276 Type = Head[Cur]; in TcpParseOption() 280 Len = Head[Cur + 1]; in TcpParseOption() 287 Option->Mss = TcpGetUint16 (&Head[Cur + 2]); in TcpParseOption() 294 Len = Head[Cur + 1]; in TcpParseOption() 301 Option->WndScale = (UINT8) MIN (14, Head[Cur + 2]); in TcpParseOption() [all …]
|
D | TcpOutput.c | 290 TCP_HEAD *Head; in TcpTransmitSegment() local 314 Head = (TCP_HEAD *) NetbufAllocSpace ( in TcpTransmitSegment() 320 ASSERT (Head != NULL); in TcpTransmitSegment() 322 Nbuf->Tcp = Head; in TcpTransmitSegment() 324 Head->SrcPort = Tcb->LocalEnd.Port; in TcpTransmitSegment() 325 Head->DstPort = Tcb->RemoteEnd.Port; in TcpTransmitSegment() 326 Head->Seq = NTOHL (Seg->Seq); in TcpTransmitSegment() 327 Head->Ack = NTOHL (Tcb->RcvNxt); in TcpTransmitSegment() 328 Head->HeadLen = (UINT8) (Len >> 2); in TcpTransmitSegment() 329 Head->Res = 0; in TcpTransmitSegment() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
D | Tcp4Option.c | 243 UINT8 *Head; in TcpParseOption() local 258 Head = (UINT8 *) (Tcp + 1); in TcpParseOption() 264 (TcpGetUint32 (Head) == TCP_OPTION_TS_FAST)) { in TcpParseOption() 266 Option->TSVal = TcpGetUint32 (Head + 4); in TcpParseOption() 267 Option->TSEcr = TcpGetUint32 (Head + 8); in TcpParseOption() 279 Type = Head[Cur]; in TcpParseOption() 283 Len = Head[Cur + 1]; in TcpParseOption() 291 Option->Mss = TcpGetUint16 (&Head[Cur + 2]); in TcpParseOption() 298 Len = Head[Cur + 1]; in TcpParseOption() 306 Option->WndScale = (UINT8) MIN (14, Head[Cur + 2]); in TcpParseOption() [all …]
|
D | Tcp4Output.c | 296 TCP_HEAD *Head; in TcpTransmitSegment() local 320 Head = (TCP_HEAD *) NetbufAllocSpace ( in TcpTransmitSegment() 326 ASSERT (Head != NULL); in TcpTransmitSegment() 328 Nbuf->Tcp = Head; in TcpTransmitSegment() 330 Head->SrcPort = Tcb->LocalEnd.Port; in TcpTransmitSegment() 331 Head->DstPort = Tcb->RemoteEnd.Port; in TcpTransmitSegment() 332 Head->Seq = NTOHL (Seg->Seq); in TcpTransmitSegment() 333 Head->Ack = NTOHL (Tcb->RcvNxt); in TcpTransmitSegment() 334 Head->HeadLen = (UINT8) (Len >> 2); in TcpTransmitSegment() 335 Head->Res = 0; in TcpTransmitSegment() [all …]
|