Home
last modified time | relevance | path

Searched refs:Nbuf (Results 1 – 25 of 26) sorted by relevance

12

/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeNetLib/
DNetBuffer.c44 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/
DTcpOutput.c152 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 …]
DTcpInput.c287 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 …]
DTcpOption.c112 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 …]
DTcpMisc.c661 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 …]
DTcpFunc.h185 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,
DTcpOption.h94 IN NET_BUF *Nbuf
109 IN NET_BUF *Nbuf
DTcpIo.c70 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/
DTcp4Output.c156 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 …]
DTcp4Input.c263 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 …]
DTcp4Option.c114 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 …]
DTcp4Func.h174 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
DTcp4Misc.c555 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 …]
DTcp4Option.h94 IN NET_BUF *Nbuf
109 IN NET_BUF *Nbuf
DTcp4Io.c63 IN NET_BUF *Nbuf, in TcpSendIpPacket() argument
104 Status = IpIoSend (IpIo, Nbuf, IpSender, NULL, NULL, &Destination, &Override); in TcpSendIpPacket()
DTcp4Driver.h102 IN NET_BUF *Nbuf,
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/MnpDxe/
DMnpIo.c341 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 …]
DMnpConfig.c68 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 …]
DMnpVlan.h57 IN OUT NET_BUF *Nbuf,
DMnpImpl.h93 NET_BUF *Nbuf; member
466 IN OUT NET_BUF *Nbuf
DMnpVlan.c127 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/
DMtftp6Support.c479 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/
DNetLib.h1649 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/
DMtftp4Support.c282 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/
DIScsiProto.c726 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 …]

12