Home
last modified time | relevance | path

Searched refs:Tcb (Results 1 – 22 of 22) sorted by relevance

/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DTcpTimer.c28 IN OUT TCP_CB *Tcb
39 IN OUT TCP_CB *Tcb
50 IN OUT TCP_CB *Tcb
61 IN OUT TCP_CB *Tcb
72 IN OUT TCP_CB *Tcb
83 IN OUT TCP_CB *Tcb
103 IN OUT TCP_CB *Tcb in TcpClose() argument
106 NetbufFreeList (&Tcb->SndQue); in TcpClose()
107 NetbufFreeList (&Tcb->RcvQue); in TcpClose()
109 TcpSetState (Tcb, TCP_CLOSED); in TcpClose()
[all …]
DTcpInput.c30 IN TCP_CB *Tcb, in TcpSeqAcceptable() argument
34 return (TCP_SEQ_LEQ (Tcb->RcvWl2, Seg->End) && in TcpSeqAcceptable()
35 TCP_SEQ_LT (Seg->Seq, Tcb->RcvWl2 + Tcb->RcvWnd)); in TcpSeqAcceptable()
47 IN OUT TCP_CB *Tcb, in TcpFastRecover() argument
57 if (Tcb->CongestState != TCP_CONGEST_RECOVER) { in TcpFastRecover()
62 FlightSize = TCP_SUB_SEQ (Tcb->SndNxt, Tcb->SndUna); in TcpFastRecover()
64 Tcb->Ssthresh = MAX (FlightSize >> 1, (UINT32) (2 * Tcb->SndMss)); in TcpFastRecover()
65 Tcb->Recover = Tcb->SndNxt; in TcpFastRecover()
67 Tcb->CongestState = TCP_CONGEST_RECOVER; in TcpFastRecover()
68 TCP_CLEAR_FLG (Tcb->CtrlFlag, TCP_CTRL_RTT_ON); in TcpFastRecover()
[all …]
DTcpMisc.c54 IN OUT TCP_CB *Tcb in TcpInitTcbLocal() argument
60 if (Tcb->Sk->IpVersion == IP_VERSION_4) { in TcpInitTcbLocal()
61 Tcb->HeadSum = NetPseudoHeadChecksum ( in TcpInitTcbLocal()
62 Tcb->LocalEnd.Ip.Addr[0], in TcpInitTcbLocal()
63 Tcb->RemoteEnd.Ip.Addr[0], in TcpInitTcbLocal()
68 Tcb->HeadSum = NetIp6PseudoHeadChecksum ( in TcpInitTcbLocal()
69 &Tcb->LocalEnd.Ip.v6, in TcpInitTcbLocal()
70 &Tcb->RemoteEnd.Ip.v6, in TcpInitTcbLocal()
76 Tcb->Iss = TcpGetIss (); in TcpInitTcbLocal()
77 Tcb->SndUna = Tcb->Iss; in TcpInitTcbLocal()
[all …]
DTcpDispatcher.c37 IN TCP_CB *Tcb, in Tcp4Route() argument
43 Ip = Tcb->IpInfo->Ip; in Tcp4Route()
71 IN TCP_CB *Tcb, in Tcp4GetMode() argument
81 Sock = Tcb->Sk; in Tcp4GetMode()
88 *(Mode->Tcp4State) = (EFI_TCP4_CONNECTION_STATE) Tcb->State; in Tcp4GetMode()
97 ConfigData->TypeOfService = Tcb->Tos; in Tcp4GetMode()
98 ConfigData->TimeToLive = Tcb->Ttl; in Tcp4GetMode()
100 AccessPoint->UseDefaultAddress = Tcb->UseDefaultAddr; in Tcp4GetMode()
102 IP4_COPY_ADDRESS (&AccessPoint->StationAddress, &Tcb->LocalEnd.Ip); in Tcp4GetMode()
104 IP4_COPY_ADDRESS (&AccessPoint->SubnetMask, &Tcb->SubnetMask); in Tcp4GetMode()
[all …]
DTcpOutput.c42 IN TCP_CB *Tcb in TcpRcvWinOld() argument
49 if (TCP_SEQ_GT (Tcb->RcvWl2 + Tcb->RcvWnd, Tcb->RcvNxt)) { in TcpRcvWinOld()
52 Tcb->RcvWl2 + Tcb->RcvWnd, in TcpRcvWinOld()
53 Tcb->RcvNxt in TcpRcvWinOld()
70 IN TCP_CB *Tcb in TcpRcvWinNow() argument
78 Sk = Tcb->Sk; in TcpRcvWinNow()
81 OldWin = TcpRcvWinOld (Tcb); in TcpRcvWinNow()
95 if ((Increase > Tcb->SndMss) || (2 * Increase >= GET_RCV_BUFFSIZE (Sk))) { in TcpRcvWinNow()
115 IN OUT TCP_CB *Tcb, in TcpComputeWnd() argument
126 Wnd = GET_RCV_BUFFSIZE (Tcb->Sk); in TcpComputeWnd()
[all …]
DTcpFunc.h33 IN OUT TCP_CB *Tcb
48 IN OUT TCP_CB *Tcb
61 IN OUT TCP_CB *Tcb,
121 IN TCP_CB *Tcb
134 IN TCP_CB *Tcb
170 IN TCP_CB *Tcb,
201 IN TCP_CB *Tcb,
214 IN OUT TCP_CB *Tcb
226 IN TCP_CB *Tcb
238 IN OUT TCP_CB *Tcb
[all …]
DTcpOption.c81 IN TCP_CB *Tcb in TcpComputeScale() argument
87 ASSERT ((Tcb != NULL) && (Tcb->Sk != NULL)); in TcpComputeScale()
89 BufSize = GET_RCV_BUFFSIZE (Tcb->Sk); in TcpComputeScale()
111 IN TCP_CB *Tcb, in TcpSynBuildOption() argument
118 ASSERT ((Tcb != NULL) && (Nbuf != NULL) && (Nbuf->Tcp == NULL)); in TcpSynBuildOption()
127 if (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_TS) && in TcpSynBuildOption()
129 TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RCVD_TS)) in TcpSynBuildOption()
151 if (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_WS) && in TcpSynBuildOption()
153 TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RCVD_WS)) in TcpSynBuildOption()
165 TcpPutUint32 (Data, TCP_OPTION_WS_FAST | TcpComputeScale (Tcb)); in TcpSynBuildOption()
[all …]
DTcpIo.c69 IN TCP_CB *Tcb, in TcpSendIpPacket() argument
83 if (NULL == Tcb) { in TcpSendIpPacket()
105 Sock = Tcb->Sk; in TcpSendIpPacket()
108 IpSender = Tcb->IpInfo; in TcpSendIpPacket()
115 if (!Tcb->RemoteIpZero) { in TcpSendIpPacket()
166 IN TCP_CB *Tcb, in Tcp6RefreshNeighbor() argument
175 if (NULL == Tcb) { in Tcp6RefreshNeighbor()
185 Sock = Tcb->Sk; in Tcp6RefreshNeighbor()
DTcpOption.h79 IN TCP_CB *Tcb
93 IN TCP_CB *Tcb,
108 IN TCP_CB *Tcb,
141 IN TCP_CB *Tcb,
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4Timer.c27 IN OUT TCP_CB *Tcb
38 IN OUT TCP_CB *Tcb
49 IN OUT TCP_CB *Tcb
60 IN OUT TCP_CB *Tcb
71 IN OUT TCP_CB *Tcb
82 IN OUT TCP_CB *Tcb
102 IN OUT TCP_CB *Tcb in TcpClose() argument
105 NetbufFreeList (&Tcb->SndQue); in TcpClose()
106 NetbufFreeList (&Tcb->RcvQue); in TcpClose()
108 TcpSetState (Tcb, TCP_CLOSED); in TcpClose()
[all …]
DTcp4Input.c31 IN TCP_CB *Tcb, in TcpSeqAcceptable() argument
35 return (TCP_SEQ_LEQ (Tcb->RcvWl2, Seg->End) && in TcpSeqAcceptable()
36 TCP_SEQ_LT (Seg->Seq, Tcb->RcvWl2 + Tcb->RcvWnd)); in TcpSeqAcceptable()
49 IN OUT TCP_CB *Tcb, in TcpFastRecover() argument
59 if (Tcb->CongestState != TCP_CONGEST_RECOVER) { in TcpFastRecover()
64 FlightSize = TCP_SUB_SEQ (Tcb->SndNxt, Tcb->SndUna); in TcpFastRecover()
66 Tcb->Ssthresh = MAX (FlightSize >> 1, (UINT32) (2 * Tcb->SndMss)); in TcpFastRecover()
67 Tcb->Recover = Tcb->SndNxt; in TcpFastRecover()
69 Tcb->CongestState = TCP_CONGEST_RECOVER; in TcpFastRecover()
70 TCP_CLEAR_FLG (Tcb->CtrlFlag, TCP_CTRL_RTT_ON); in TcpFastRecover()
[all …]
DTcp4Dispatcher.c39 IN TCP_CB *Tcb, in Tcp4Route() argument
45 Ip4 = Tcb->IpInfo->Ip.Ip4; in Tcp4Route()
74 IN TCP_CB *Tcb, in Tcp4GetMode() argument
84 Sock = Tcb->Sk; in Tcp4GetMode()
91 *(Mode->Tcp4State) = (EFI_TCP4_CONNECTION_STATE) Tcb->State; in Tcp4GetMode()
100 ConfigData->TypeOfService = Tcb->Tos; in Tcp4GetMode()
101 ConfigData->TimeToLive = Tcb->Ttl; in Tcp4GetMode()
103 AccessPoint->UseDefaultAddress = Tcb->UseDefaultAddr; in Tcp4GetMode()
105 IP4_COPY_ADDRESS (&AccessPoint->StationAddress, &Tcb->LocalEnd.Ip); in Tcp4GetMode()
106 IP4_COPY_ADDRESS (&AccessPoint->SubnetMask, &Tcb->SubnetMask); in Tcp4GetMode()
[all …]
DTcp4Misc.c55 IN OUT TCP_CB *Tcb in TcpInitTcbLocal() argument
61 Tcb->HeadSum = NetPseudoHeadChecksum ( in TcpInitTcbLocal()
62 Tcb->LocalEnd.Ip, in TcpInitTcbLocal()
63 Tcb->RemoteEnd.Ip, in TcpInitTcbLocal()
68 Tcb->Iss = TcpGetIss (); in TcpInitTcbLocal()
69 Tcb->SndUna = Tcb->Iss; in TcpInitTcbLocal()
70 Tcb->SndNxt = Tcb->Iss; in TcpInitTcbLocal()
72 Tcb->SndWl2 = Tcb->Iss; in TcpInitTcbLocal()
73 Tcb->SndWnd = 536; in TcpInitTcbLocal()
75 Tcb->RcvWnd = GET_RCV_BUFFSIZE (Tcb->Sk); in TcpInitTcbLocal()
[all …]
DTcp4Output.c42 IN TCP_CB *Tcb in TcpRcvWinOld() argument
49 if (TCP_SEQ_GT (Tcb->RcvWl2 + Tcb->RcvWnd, Tcb->RcvNxt)) { in TcpRcvWinOld()
52 Tcb->RcvWl2 + Tcb->RcvWnd, in TcpRcvWinOld()
53 Tcb->RcvNxt in TcpRcvWinOld()
71 IN TCP_CB *Tcb in TcpRcvWinNow() argument
79 Sk = Tcb->Sk; in TcpRcvWinNow()
82 OldWin = TcpRcvWinOld (Tcb); in TcpRcvWinNow()
96 if ((Increase > Tcb->SndMss) || in TcpRcvWinNow()
118 IN OUT TCP_CB *Tcb, in TcpComputeWnd() argument
129 Wnd = GET_RCV_BUFFSIZE (Tcb->Sk); in TcpComputeWnd()
[all …]
DTcp4Func.h76 IN TCP_CB *Tcb
89 IN TCP_CB *Tcb
111 IN OUT TCP_CB *Tcb
125 IN OUT TCP_CB *Tcb,
152 IN OUT TCP_CB *Tcb,
173 IN TCP_CB *Tcb,
191 IN OUT TCP_CB *Tcb,
203 IN OUT TCP_CB *Tcb
214 IN OUT TCP_CB *Tcb
228 IN OUT TCP_CB *Tcb
[all …]
DTcp4Option.c81 IN TCP_CB *Tcb in TcpComputeScale() argument
87 ASSERT ((Tcb != NULL) && (Tcb->Sk != NULL)); in TcpComputeScale()
89 BufSize = GET_RCV_BUFFSIZE (Tcb->Sk); in TcpComputeScale()
113 IN TCP_CB *Tcb, in TcpSynBuildOption() argument
120 ASSERT ((Tcb != NULL) && (Nbuf != NULL) && (Nbuf->Tcp == NULL)); in TcpSynBuildOption()
129 if (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_TS) && in TcpSynBuildOption()
131 TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RCVD_TS))) { in TcpSynBuildOption()
152 if (!TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_NO_WS) && in TcpSynBuildOption()
154 TCP_FLG_ON (Tcb->CtrlFlag, TCP_CTRL_RCVD_WS))) { in TcpSynBuildOption()
165 TcpPutUint32 (Data, TCP_OPTION_WS_FAST | TcpComputeScale (Tcb)); in TcpSynBuildOption()
[all …]
DTcp4Option.h79 IN TCP_CB *Tcb
93 IN TCP_CB *Tcb,
108 IN TCP_CB *Tcb,
141 IN TCP_CB *Tcb,
DTcp4Io.c62 IN TCP_CB *Tcb, in TcpSendIpPacket() argument
80 if (NULL == Tcb) { in TcpSendIpPacket()
91 Sock = Tcb->Sk; in TcpSendIpPacket()
94 IpSender = Tcb->IpInfo; in TcpSendIpPacket()
DTcp4Driver.h101 IN TCP_CB *Tcb,
DTcp4Proto.h348 IN OUT TCP_CB *Tcb
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/
DIScsiProto.c1687 OUT ISCSI_TCB **Tcb in IScsiNewTcb() argument
1693 ASSERT (Tcb != NULL); in IScsiNewTcb()
1721 *Tcb = NewTcb; in IScsiNewTcb()
1733 IN ISCSI_TCB *Tcb in IScsiDelTcb() argument
1736 RemoveEntryList (&Tcb->Link); in IScsiDelTcb()
1738 FreePool (Tcb); in IScsiDelTcb()
1755 ISCSI_TCB *Tcb; in IScsiFindTcbByITT() local
1758 Tcb = NULL; in IScsiFindTcbByITT()
1761 Tcb = NET_LIST_USER_STRUCT (Entry, ISCSI_TCB, Link); in IScsiFindTcbByITT()
1763 if (Tcb->InitiatorTaskTag == InitiatorTaskTag) { in IScsiFindTcbByITT()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
DIScsiProto.c1959 OUT ISCSI_TCB **Tcb in IScsiNewTcb() argument
1965 ASSERT (Tcb != NULL); in IScsiNewTcb()
1993 *Tcb = NewTcb; in IScsiNewTcb()
2007 IN ISCSI_TCB *Tcb in IScsiDelTcb() argument
2010 RemoveEntryList (&Tcb->Link); in IScsiDelTcb()
2012 FreePool (Tcb); in IScsiDelTcb()
2032 ISCSI_TCB *Tcb; in IScsiFindTcbByITT() local
2035 Tcb = NULL; in IScsiFindTcbByITT()
2038 Tcb = NET_LIST_USER_STRUCT (Entry, ISCSI_TCB, Link); in IScsiFindTcbByITT()
2040 if (Tcb->InitiatorTaskTag == InitiatorTaskTag) { in IScsiFindTcbByITT()
[all …]