Lines Matching refs:Rx4Token
170 gBS->CloseEvent (Wrap->TcpWrap.Rx4Token.CompletionToken.Event); in HttpTcpReceiveNotifyDpc()
171 Wrap->TcpWrap.Rx4Token.CompletionToken.Event = NULL; in HttpTcpReceiveNotifyDpc()
173 if (EFI_ERROR (Wrap->TcpWrap.Rx4Token.CompletionToken.Status)) { in HttpTcpReceiveNotifyDpc()
174 …DEBUG ((EFI_D_ERROR, "HttpTcpReceiveNotifyDpc: %r!\n", Wrap->TcpWrap.Rx4Token.CompletionToken.Stat… in HttpTcpReceiveNotifyDpc()
175 Wrap->HttpToken->Status = Wrap->TcpWrap.Rx4Token.CompletionToken.Status; in HttpTcpReceiveNotifyDpc()
247 Wrap->HttpToken->Status = Wrap->TcpWrap.Rx4Token.CompletionToken.Status; in HttpTcpReceiveNotifyDpc()
491 &HttpInstance->Rx4Token.CompletionToken.Event in HttpCreateTcpRxEventForHeader()
498 HttpInstance->Rx4Token.Packet.RxData = &HttpInstance->Rx4Data; in HttpCreateTcpRxEventForHeader()
499 HttpInstance->Rx4Token.CompletionToken.Status = EFI_NOT_READY; in HttpCreateTcpRxEventForHeader()
549 &TcpWrap->Rx4Token.CompletionToken.Event in HttpCreateTcpRxEvent()
556 TcpWrap->Rx4Token.Packet.RxData = &Wrap->TcpWrap.Rx4Data; in HttpCreateTcpRxEvent()
557 TcpWrap->Rx4Token.CompletionToken.Status = EFI_NOT_READY; in HttpCreateTcpRxEvent()
605 if (Wrap->TcpWrap.Rx4Token.CompletionToken.Event != NULL) { in HttpCloseTcpRxEvent()
606 gBS->CloseEvent (Wrap->TcpWrap.Rx4Token.CompletionToken.Event); in HttpCloseTcpRxEvent()
609 if (HttpInstance->Rx4Token.CompletionToken.Event != NULL) { in HttpCloseTcpRxEvent()
610 gBS->CloseEvent (HttpInstance->Rx4Token.CompletionToken.Event); in HttpCloseTcpRxEvent()
611 HttpInstance->Rx4Token.CompletionToken.Event = NULL; in HttpCloseTcpRxEvent()
1755 EFI_TCP4_IO_TOKEN *Rx4Token; in HttpTcpReceiveHeader() local
1771 Rx4Token = NULL; in HttpTcpReceiveHeader()
1791 Rx4Token = &HttpInstance->Rx4Token; in HttpTcpReceiveHeader()
1792 Rx4Token->Packet.RxData->FragmentTable[0].FragmentBuffer = AllocateZeroPool (DEF_BUF_LEN); in HttpTcpReceiveHeader()
1793 if (Rx4Token->Packet.RxData->FragmentTable[0].FragmentBuffer == NULL) { in HttpTcpReceiveHeader()
1805 Rx4Token->Packet.RxData->DataLength = DEF_BUF_LEN; in HttpTcpReceiveHeader()
1806 Rx4Token->Packet.RxData->FragmentTable[0].FragmentLength = DEF_BUF_LEN; in HttpTcpReceiveHeader()
1807 Status = Tcp4->Receive (Tcp4, Rx4Token); in HttpTcpReceiveHeader()
1821 Tcp4->Cancel (HttpInstance->Tcp4, &Rx4Token->CompletionToken); in HttpTcpReceiveHeader()
1822 gBS->CloseEvent (Rx4Token->CompletionToken.Event); in HttpTcpReceiveHeader()
1823 Rx4Token->CompletionToken.Status = EFI_TIMEOUT; in HttpTcpReceiveHeader()
1826 Status = Rx4Token->CompletionToken.Status; in HttpTcpReceiveHeader()
1831 Fragment.Len = Rx4Token->Packet.RxData->FragmentTable[0].FragmentLength; in HttpTcpReceiveHeader()
1832 Fragment.Bulk = (UINT8 *) Rx4Token->Packet.RxData->FragmentTable[0].FragmentBuffer; in HttpTcpReceiveHeader()
1878 …if (Rx4Token != NULL && Rx4Token->Packet.RxData != NULL && Rx4Token->Packet.RxData->FragmentTable[… in HttpTcpReceiveHeader()
1879 FreePool (Rx4Token->Packet.RxData->FragmentTable[0].FragmentBuffer); in HttpTcpReceiveHeader()
1880 Rx4Token->Packet.RxData->FragmentTable[0].FragmentBuffer = NULL; in HttpTcpReceiveHeader()
2018 EFI_TCP4_IO_TOKEN *Rx4Token; in HttpTcpReceiveBody() local
2023 Rx4Token = NULL; in HttpTcpReceiveBody()
2045 Rx4Token = &Wrap->TcpWrap.Rx4Token; in HttpTcpReceiveBody()
2046 Rx4Token->Packet.RxData->DataLength = (UINT32) HttpMsg->BodyLength; in HttpTcpReceiveBody()
2047 Rx4Token->Packet.RxData->FragmentTable[0].FragmentLength = (UINT32) HttpMsg->BodyLength; in HttpTcpReceiveBody()
2048 Rx4Token->Packet.RxData->FragmentTable[0].FragmentBuffer = (VOID *) HttpMsg->Body; in HttpTcpReceiveBody()
2050 Rx4Token->CompletionToken.Status = EFI_NOT_READY; in HttpTcpReceiveBody()
2051 Status = Tcp4->Receive (Tcp4, Rx4Token); in HttpTcpReceiveBody()
2074 EFI_TCP4_IO_TOKEN *Rx4Token; in HttpTcpTokenCleanup() local
2079 Rx4Token = NULL; in HttpTcpTokenCleanup()
2105 Rx4Token = &Wrap->TcpWrap.Rx4Token; in HttpTcpTokenCleanup()
2107 if (Rx4Token->CompletionToken.Event != NULL) { in HttpTcpTokenCleanup()
2108 gBS->CloseEvent (Rx4Token->CompletionToken.Event); in HttpTcpTokenCleanup()
2109 Rx4Token->CompletionToken.Event = NULL; in HttpTcpTokenCleanup()
2114 Rx4Token = &HttpInstance->Rx4Token; in HttpTcpTokenCleanup()
2116 if (Rx4Token->CompletionToken.Event != NULL) { in HttpTcpTokenCleanup()
2117 gBS->CloseEvent (Rx4Token->CompletionToken.Event); in HttpTcpTokenCleanup()
2118 Rx4Token->CompletionToken.Event = NULL; in HttpTcpTokenCleanup()
2122 if (Rx4Token->Packet.RxData->FragmentTable[0].FragmentBuffer != NULL) { in HttpTcpTokenCleanup()
2123 FreePool (Rx4Token->Packet.RxData->FragmentTable[0].FragmentBuffer); in HttpTcpTokenCleanup()
2124 Rx4Token->Packet.RxData->FragmentTable[0].FragmentBuffer = NULL; in HttpTcpTokenCleanup()