/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeNetLib/ |
D | NetBuffer.c | 44 NET_BUF *Nbuf; in NetbufAllocStruct() local 52 Nbuf = AllocateZeroPool (NET_BUF_SIZE (BlockOpNum)); in NetbufAllocStruct() 54 if (Nbuf == NULL) { in NetbufAllocStruct() 58 Nbuf->Signature = NET_BUF_SIGNATURE; in NetbufAllocStruct() 59 Nbuf->RefCnt = 1; in NetbufAllocStruct() 60 Nbuf->BlockOpNum = BlockOpNum; in NetbufAllocStruct() 61 InitializeListHead (&Nbuf->List); in NetbufAllocStruct() 73 Nbuf->Vector = Vector; in NetbufAllocStruct() 76 return Nbuf; in NetbufAllocStruct() 80 FreePool (Nbuf); in NetbufAllocStruct() [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
D | TcpOutput.c | 152 NET_BUF *Nbuf; in TcpGetMaxSndNxt() local 159 Nbuf = NET_LIST_USER_STRUCT (Entry, NET_BUF, List); in TcpGetMaxSndNxt() 161 ASSERT (TCP_SEQ_GEQ (TCPSEG_NETBUF (Nbuf)->End, Tcb->SndNxt)); in TcpGetMaxSndNxt() 162 return TCPSEG_NETBUF (Nbuf)->End; in TcpGetMaxSndNxt() 286 IN NET_BUF *Nbuf in TcpTransmitSegment() argument 295 ASSERT ((Nbuf != NULL) && (Nbuf->Tcp == NULL) && (TcpVerifySegment (Nbuf) != 0)); in TcpTransmitSegment() 297 DataLen = Nbuf->TotalSize; in TcpTransmitSegment() 299 Seg = TCPSEG_NETBUF (Nbuf); in TcpTransmitSegment() 304 Len = TcpSynBuildOption (Tcb, Nbuf); in TcpTransmitSegment() 307 Len = TcpBuildOption (Tcb, Nbuf); in TcpTransmitSegment() [all …]
|
D | TcpInput.c | 287 IN NET_BUF *Nbuf, in TcpTrimSegment() argument 296 Seg = TCPSEG_NETBUF (Nbuf); in TcpTrimSegment() 308 NetbufTrim (Nbuf, Nbuf->TotalSize, NET_BUF_HEAD); in TcpTrimSegment() 340 NetbufTrim (Nbuf, Drop, NET_BUF_HEAD); in TcpTrimSegment() 358 NetbufTrim (Nbuf, Drop, NET_BUF_TAIL); in TcpTrimSegment() 362 ASSERT (TcpVerifySegment (Nbuf) != 0); in TcpTrimSegment() 375 IN NET_BUF *Nbuf in TcpTrimInWnd() argument 378 TcpTrimSegment (Nbuf, Tcb->RcvNxt, Tcb->RcvWl2 + Tcb->RcvWnd); in TcpTrimInWnd() 398 NET_BUF *Nbuf; in TcpDeliverData() local 421 Nbuf = NET_LIST_USER_STRUCT (Entry, NET_BUF, List); in TcpDeliverData() [all …]
|
D | TcpOption.c | 112 IN NET_BUF *Nbuf in TcpSynBuildOption() argument 118 ASSERT ((Tcb != NULL) && (Nbuf != NULL) && (Nbuf->Tcp == NULL)); in TcpSynBuildOption() 128 (!TCP_FLG_ON (TCPSEG_NETBUF (Nbuf)->Flag, TCP_FLG_ACK) || in TcpSynBuildOption() 133 Nbuf, in TcpSynBuildOption() 152 (!TCP_FLG_ON (TCPSEG_NETBUF (Nbuf)->Flag, TCP_FLG_ACK) || in TcpSynBuildOption() 157 Nbuf, in TcpSynBuildOption() 171 Data = NetbufAllocSpace (Nbuf, TCP_OPTION_MSS_LEN, 1); in TcpSynBuildOption() 192 IN NET_BUF *Nbuf in TcpBuildOption() argument 198 ASSERT ((Tcb != NULL) && (Nbuf != NULL) && (Nbuf->Tcp == NULL)); in TcpBuildOption() 205 !TCP_FLG_ON (TCPSEG_NETBUF (Nbuf)->Flag, TCP_FLG_RST) in TcpBuildOption() [all …]
|
D | TcpMisc.c | 661 IN NET_BUF *Nbuf, in TcpChecksum() argument 667 Checksum = NetbufChecksum (Nbuf); in TcpChecksum() 672 HTONS ((UINT16) Nbuf->TotalSize) in TcpChecksum() 691 IN OUT NET_BUF *Nbuf in TcpFormatNetbuf() argument 697 Seg = TCPSEG_NETBUF (Nbuf); in TcpFormatNetbuf() 698 Head = (TCP_HEAD *) NetbufGetByte (Nbuf, 0, NULL); in TcpFormatNetbuf() 701 Nbuf->Tcp = Head; in TcpFormatNetbuf() 705 Seg->End = Seg->Seq + (Nbuf->TotalSize - (Head->HeadLen << 2)); in TcpFormatNetbuf() 934 NET_BUF *Nbuf; in TcpResetConnection() local 937 Nbuf = NetbufAlloc (TCP_MAX_HEAD); in TcpResetConnection() [all …]
|
D | TcpFunc.h | 185 IN NET_BUF *Nbuf, 202 IN OUT NET_BUF *Nbuf 457 IN NET_BUF *Nbuf 478 IN NET_BUF *Nbuf, 502 IN NET_BUF *Nbuf, 641 IN NET_BUF *Nbuf,
|
D | TcpOption.h | 94 IN NET_BUF *Nbuf 109 IN NET_BUF *Nbuf
|
D | TcpIo.c | 70 IN NET_BUF *Nbuf, in TcpSendIpPacket() argument 136 Status = IpIoSend (IpIo, Nbuf, IpSender, NULL, NULL, Dest, &Override); in TcpSendIpPacket()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
D | Tcp4Output.c | 156 NET_BUF *Nbuf; in TcpGetMaxSndNxt() local 163 Nbuf = NET_LIST_USER_STRUCT (Entry, NET_BUF, List); in TcpGetMaxSndNxt() 165 ASSERT (TCP_SEQ_GEQ (TCPSEG_NETBUF (Nbuf)->End, Tcb->SndNxt)); in TcpGetMaxSndNxt() 166 return TCPSEG_NETBUF (Nbuf)->End; in TcpGetMaxSndNxt() 292 IN NET_BUF *Nbuf in TcpTransmitSegment() argument 301 ASSERT ((Nbuf != NULL) && (Nbuf->Tcp == NULL) && (TcpVerifySegment (Nbuf) != 0)); in TcpTransmitSegment() 303 DataLen = Nbuf->TotalSize; in TcpTransmitSegment() 305 Seg = TCPSEG_NETBUF (Nbuf); in TcpTransmitSegment() 310 Len = TcpSynBuildOption (Tcb, Nbuf); in TcpTransmitSegment() 313 Len = TcpBuildOption (Tcb, Nbuf); in TcpTransmitSegment() [all …]
|
D | Tcp4Input.c | 263 IN NET_BUF *Nbuf, in TcpTrimSegment() argument 272 Seg = TCPSEG_NETBUF (Nbuf); in TcpTrimSegment() 284 NetbufTrim (Nbuf, Nbuf->TotalSize, NET_BUF_HEAD); in TcpTrimSegment() 316 NetbufTrim (Nbuf, Drop, NET_BUF_HEAD); in TcpTrimSegment() 334 NetbufTrim (Nbuf, Drop, NET_BUF_TAIL); in TcpTrimSegment() 338 ASSERT (TcpVerifySegment (Nbuf) != 0); in TcpTrimSegment() 352 IN NET_BUF *Nbuf in TcpTrimInWnd() argument 355 TcpTrimSegment (Nbuf, Tcb->RcvNxt, Tcb->RcvWl2 + Tcb->RcvWnd); in TcpTrimInWnd() 376 NET_BUF *Nbuf; in TcpDeliverData() local 399 Nbuf = NET_LIST_USER_STRUCT (Entry, NET_BUF, List); in TcpDeliverData() [all …]
|
D | Tcp4Option.c | 114 IN NET_BUF *Nbuf in TcpSynBuildOption() argument 120 ASSERT ((Tcb != NULL) && (Nbuf != NULL) && (Nbuf->Tcp == NULL)); in TcpSynBuildOption() 130 (!TCP_FLG_ON (TCPSEG_NETBUF (Nbuf)->Flag, TCP_FLG_ACK) || in TcpSynBuildOption() 134 Nbuf, in TcpSynBuildOption() 153 (!TCP_FLG_ON (TCPSEG_NETBUF (Nbuf)->Flag, TCP_FLG_ACK) || in TcpSynBuildOption() 157 Nbuf, in TcpSynBuildOption() 171 Data = NetbufAllocSpace (Nbuf, TCP_OPTION_MSS_LEN, 1); in TcpSynBuildOption() 193 IN NET_BUF *Nbuf in TcpBuildOption() argument 199 ASSERT ((Tcb != NULL) && (Nbuf != NULL) && (Nbuf->Tcp == NULL)); in TcpBuildOption() 206 !TCP_FLG_ON (TCPSEG_NETBUF (Nbuf)->Flag, TCP_FLG_RST)) { in TcpBuildOption() [all …]
|
D | Tcp4Func.h | 174 IN NET_BUF *Nbuf, 338 IN NET_BUF *Nbuf 435 IN NET_BUF *Nbuf, 456 IN NET_BUF *Nbuf, 526 IN NET_BUF *Nbuf 539 IN NET_BUF *Nbuf 571 IN NET_BUF *Nbuf, 588 IN OUT NET_BUF *Nbuf
|
D | Tcp4Misc.c | 555 IN NET_BUF *Nbuf, in TcpChecksum() argument 561 Checksum = NetbufChecksum (Nbuf); in TcpChecksum() 566 HTONS ((UINT16) Nbuf->TotalSize) in TcpChecksum() 585 IN OUT NET_BUF *Nbuf in TcpFormatNetbuf() argument 591 Seg = TCPSEG_NETBUF (Nbuf); in TcpFormatNetbuf() 592 Head = (TCP_HEAD *) NetbufGetByte (Nbuf, 0, NULL); in TcpFormatNetbuf() 594 Nbuf->Tcp = Head; in TcpFormatNetbuf() 598 Seg->End = Seg->Seq + (Nbuf->TotalSize - (Head->HeadLen << 2)); in TcpFormatNetbuf() 635 NET_BUF *Nbuf; in TcpResetConnection() local 638 Nbuf = NetbufAlloc (TCP_MAX_HEAD); in TcpResetConnection() [all …]
|
D | Tcp4Option.h | 94 IN NET_BUF *Nbuf 109 IN NET_BUF *Nbuf
|
D | Tcp4Io.c | 63 IN NET_BUF *Nbuf, in TcpSendIpPacket() argument 104 Status = IpIoSend (IpIo, Nbuf, IpSender, NULL, NULL, &Destination, &Override); in TcpSendIpPacket()
|
D | Tcp4Driver.h | 102 IN NET_BUF *Nbuf,
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/MnpDxe/ |
D | MnpIo.c | 341 if (RxDataWrap->Nbuf->RefCnt > 2) { in MnpInstanceDeliverPacket() 356 NetbufDuplicate (RxDataWrap->Nbuf, DupNbuf, 0); in MnpInstanceDeliverPacket() 357 MnpFreeNbuf (MnpDeviceData, RxDataWrap->Nbuf); in MnpInstanceDeliverPacket() 358 RxDataWrap->Nbuf = DupNbuf; in MnpInstanceDeliverPacket() 373 RxData->MediaHeader = NetbufGetByte (RxDataWrap->Nbuf, 0, NULL); in MnpInstanceDeliverPacket() 450 ASSERT (RxDataWrap->Nbuf != NULL); in MnpRecycleRxData() 458 MnpFreeNbuf (MnpDeviceData, RxDataWrap->Nbuf); in MnpRecycleRxData() 459 RxDataWrap->Nbuf = NULL; in MnpRecycleRxData() 625 IN NET_BUF *Nbuf, in MnpAnalysePacket() argument 642 BufPtr = NetbufGetByte (Nbuf, 0, NULL); in MnpAnalysePacket() [all …]
|
D | MnpConfig.c | 68 NET_BUF *Nbuf; in MnpAddFreeNbuf() local 75 Nbuf = NetbufAlloc (MnpDeviceData->BufferLength + MnpDeviceData->PaddingSize); in MnpAddFreeNbuf() 76 if (Nbuf == NULL) { in MnpAddFreeNbuf() 87 NetbufAllocSpace (Nbuf, MnpDeviceData->PaddingSize, NET_BUF_TAIL); in MnpAddFreeNbuf() 88 NetbufTrim (Nbuf, MnpDeviceData->PaddingSize, NET_BUF_HEAD); in MnpAddFreeNbuf() 91 NetbufQueAppend (&MnpDeviceData->FreeNbufQue, Nbuf); in MnpAddFreeNbuf() 117 NET_BUF *Nbuf; in MnpAllocNbuf() local 136 Nbuf = NULL; in MnpAllocNbuf() 155 Nbuf = NetbufQueRemove (FreeNbufQue); in MnpAllocNbuf() 160 if (Nbuf != NULL) { in MnpAllocNbuf() [all …]
|
D | MnpVlan.h | 57 IN OUT NET_BUF *Nbuf,
|
D | MnpImpl.h | 93 NET_BUF *Nbuf; member 466 IN OUT NET_BUF *Nbuf
|
D | MnpVlan.c | 127 IN OUT NET_BUF *Nbuf, in MnpRemoveVlanTag() argument 141 Packet = NetbufGetByte (Nbuf, 0, NULL); in MnpRemoveVlanTag() 167 NetbufTrim (Nbuf, NET_VLAN_TAG_LEN, NET_BUF_HEAD); in MnpRemoveVlanTag()
|
/device/linaro/bootloader/edk2/NetworkPkg/Mtftp6Dxe/ |
D | Mtftp6Support.c | 479 NET_BUF *Nbuf; in Mtftp6SendRequest() local 529 if ((Nbuf = NetbufAlloc (BufferLength)) == NULL) { in Mtftp6SendRequest() 536 Packet = (EFI_MTFTP6_PACKET *) NetbufAllocSpace (Nbuf, BufferLength, FALSE); in Mtftp6SendRequest() 578 Instance->LastPacket = Nbuf; in Mtftp6SendRequest() 581 return Mtftp6TransmitPacket (Instance, Nbuf); in Mtftp6SendRequest() 604 NET_BUF *Nbuf; in Mtftp6SendError() local 612 Nbuf = NetbufAlloc (Len); in Mtftp6SendError() 614 if (Nbuf == NULL) { in Mtftp6SendError() 618 TftpError = (EFI_MTFTP6_PACKET *) NetbufAllocSpace (Nbuf, Len, FALSE); in Mtftp6SendError() 621 NetbufFree (Nbuf); in Mtftp6SendError() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/ |
D | NetLib.h | 1649 IN NET_BUF *Nbuf 1672 IN NET_BUF *Nbuf, 1692 IN NET_BUF *Nbuf 1714 IN NET_BUF *Nbuf, 1739 IN NET_BUF *Nbuf, 1760 IN OUT NET_BUF *Nbuf, 1779 IN OUT NET_BUF *Nbuf, 1799 IN OUT NET_BUF *Nbuf, 1822 IN NET_BUF *Nbuf, 1877 IN NET_BUF *Nbuf, [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/ |
D | Mtftp4Support.c | 282 NET_BUF *Nbuf; in Mtftp4SendRequest() local 315 if ((Nbuf = NetbufAlloc (BufferLength)) == NULL) { in Mtftp4SendRequest() 319 Packet = (EFI_MTFTP4_PACKET *) NetbufAllocSpace (Nbuf, BufferLength, FALSE); in Mtftp4SendRequest() 351 return Mtftp4SendPacket (Instance, Nbuf); in Mtftp4SendRequest()
|
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/ |
D | IScsiProto.c | 726 NET_BUF *Nbuf; in IScsiPrepareLoginReq() local 732 Nbuf = NetbufAlloc (sizeof (ISCSI_LOGIN_REQUEST) + DEFAULT_MAX_RECV_DATA_SEG_LEN); in IScsiPrepareLoginReq() 733 if (Nbuf == NULL) { in IScsiPrepareLoginReq() 737 …LoginReq = (ISCSI_LOGIN_REQUEST *) NetbufAllocSpace (Nbuf, sizeof (ISCSI_LOGIN_REQUEST), NET_BUF_T… in IScsiPrepareLoginReq() 739 NetbufFree (Nbuf); in IScsiPrepareLoginReq() 770 return Nbuf; in IScsiPrepareLoginReq() 782 Status = IScsiCHAPToSendReq (Conn, Nbuf); in IScsiPrepareLoginReq() 792 IScsiFillOpParams (Conn, Nbuf); in IScsiPrepareLoginReq() 807 NetbufFree (Nbuf); in IScsiPrepareLoginReq() 808 Nbuf = NULL; in IScsiPrepareLoginReq() [all …]
|