Lines Matching defs:pSocket
5 * Bound - pSocket->PortList is not NULL
371 *ppQueueHead: pSocket->pRxPacketListHead or pSocket->pRxOobPacketListHead
379 *ppQueueTail: pSocket->pRxPacketListTail or pSocket->pRxOobPacketListTail
574 ESL_SOCKET * pSocket;
583 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
713 pSocket->pApi = pApi;
714 pSocket->Domain = domain;
715 pSocket->Type = type;
716 pSocket->Protocol = protocol;
776 ESL_SOCKET * pSocket;
790 pSocket = NULL;
793 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
798 if ( NULL == pSocket->pApi->pfnAccept ) {
800 pSocket->errno = ENOTSUP;
811 pSocket->errno = EFAULT;
822 if ( SOCKET_STATE_LISTENING != pSocket->State ) {
825 if ( NULL == pSocket->pApi->pfnAccept ) {
829 pSocket->errno = EOPNOTSUPP;
836 pSocket->errno = EINVAL;
844 if ( 0 == pSocket->FifoDepth ) {
849 if ( NULL == pSocket->pPortList ) {
854 pSocket->errno = EINVAL;
859 pSocket->State = SOCKET_STATE_NO_PORTS;
867 pSocket->errno = EAGAIN;
876 pNewSocket = pSocket->pFifoHead;
878 Status = pSocket->pApi->pfnAccept ( pNewSocket,
885 pSocket->pFifoHead = pNewSocket->pNextConnection;
886 if ( NULL == pSocket->pFifoHead ) {
887 pSocket->pFifoTail = NULL;
893 pSocket->FifoDepth -= 1;
927 if ( NULL != pSocket ) {
928 *pErrno = pSocket->errno;
974 ESL_SOCKET * pSocket;
983 LengthInBytes = sizeof ( *pSocket );
984 pSocket = (ESL_SOCKET *) AllocateZeroPool ( LengthInBytes );
985 if ( NULL != pSocket ) {
987 "0x%08x: Allocate pSocket, %d bytes\r\n",
988 pSocket,
994 pSocket->Signature = SOCKET_SIGNATURE;
995 pSocket->SocketProtocol.pfnAccept = EslSocketAccept;
996 pSocket->SocketProtocol.pfnBind = EslSocketBind;
997 pSocket->SocketProtocol.pfnClosePoll = EslSocketClosePoll;
998 pSocket->SocketProtocol.pfnCloseStart = EslSocketCloseStart;
999 pSocket->SocketProtocol.pfnConnect = EslSocketConnect;
1000 pSocket->SocketProtocol.pfnGetLocal = EslSocketGetLocalAddress;
1001 pSocket->SocketProtocol.pfnGetPeer = EslSocketGetPeerAddress;
1002 pSocket->SocketProtocol.pfnListen = EslSocketListen;
1003 pSocket->SocketProtocol.pfnOptionGet = EslSocketOptionGet;
1004 pSocket->SocketProtocol.pfnOptionSet = EslSocketOptionSet;
1005 pSocket->SocketProtocol.pfnPoll = EslSocketPoll;
1006 pSocket->SocketProtocol.pfnReceive = EslSocketReceive;
1007 pSocket->SocketProtocol.pfnShutdown = EslSocketShutdown;
1008 pSocket->SocketProtocol.pfnSocket = EslSocket;
1009 pSocket->SocketProtocol.pfnTransmit = EslSocketTransmit;
1011 pSocket->MaxRxBuf = MAX_RX_DATA;
1012 pSocket->MaxTxBuf = MAX_TX_DATA;
1020 &pSocket->SocketProtocol,
1027 pSocket->SocketProtocol.SocketHandle = *pChildHandle;
1038 pSocket->pNext = pLayer->pSocketList;
1039 pLayer->pSocketList = pSocket;
1049 *ppSocket = pSocket;
1062 gBS->FreePool ( pSocket );
1064 "0x%08x: Free pSocket, %d bytes\r\n",
1065 pSocket,
1066 sizeof ( *pSocket )));
1067 pSocket = NULL;
1122 ESL_SOCKET * pSocket;
1138 pSocket = NULL;
1140 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
1145 pSocket->errno = 0;
1150 pSocket->errno = EFAULT;
1156 else if ( SockAddrLength < pSocket->pApi->MinimumAddressLength ) {
1161 pSocket->errno = EINVAL;
1167 else if ( pSocket->bRxDisable || pSocket->bTxDisable ) {
1170 pSocket ));
1171 pSocket->errno = EINVAL;
1178 else if ( SOCKET_STATE_NOT_CONFIGURED != pSocket->State ) {
1181 pSocket ));
1182 pSocket->errno = EINVAL;
1194 pSocket->errno = EADDRNOTAVAIL;
1201 pBuffer = &pBuffer[ pSocket->pApi->ServiceListOffset ];
1221 Status = EslSocketPortAllocate ( pSocket,
1245 if ( NULL == pSocket->pPortList ) {
1246 if ( EADDRNOTAVAIL == pSocket->errno ) {
1250 if ( EADDRINUSE == pSocket->errno ) {
1261 pSocket->State = SOCKET_STATE_BOUND;
1262 pSocket->errno = 0;
1276 if ( NULL != pSocket ) {
1277 *pErrno = pSocket->errno;
1315 pBuffer = &pBuffer [ pPort->pSocket->pApi->ConfigDataOffset ];
1327 pPort->pSocket->errno = ErrnoValue;
1379 ESL_SOCKET * pSocket;
1401 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
1403 if ( pNextSocket == pSocket ) {
1407 if ( SOCKET_STATE_CLOSED == pSocket->State ) {
1411 if ( NULL == pSocket->pPortList ) {
1416 if ( NULL != pSocket->WaitAccept ) {
1417 Status = gBS->CloseEvent ( pSocket->WaitAccept );
1421 pSocket->WaitAccept ));
1425 Status = pSocket->TxError;
1427 pSocket->errno = EIO;
1465 if ( NULL == pSocket ) {
1524 ESL_SOCKET * pSocket;
1544 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
1545 if ( SOCKET_STATE_CLOSED > pSocket->State ) {
1549 pSocket->State = SOCKET_STATE_CLOSED;
1554 pPort = pSocket->pPortList;
1638 ESL_SOCKET * pSocket;
1652 pSocket = NULL;
1654 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
1664 pSocket->errno = EINVAL;
1670 pSocket->errno = 0;
1680 switch ( pSocket->State ) {
1685 pSocket->errno = EIO;
1694 if ( SockAddrLength >= pSocket->pApi->MinimumAddressLength ) {
1698 if ( NULL == pSocket->pApi->pfnRemoteAddrSet ) {
1702 pSocket->errno = ENOTSUP;
1709 if ( NULL == pSocket->pPortList ) {
1714 LocalAddress.sin6_len = (uint8_t)pSocket->pApi->MinimumAddressLength;
1715 LocalAddress.sin6_family = pSocket->pApi->AddressFamily;
1716 Status = EslSocketBind ( &pSocket->SocketProtocol,
1719 &pSocket->errno );
1721 if ( NULL != pSocket->pPortList ) {
1725 pPort = pSocket->pPortList;
1730 Status = pSocket->pApi->pfnRemoteAddrSet ( pPort,
1747 && ( NULL != pSocket->pApi->pfnConnectStart )) {
1751 Status = pSocket->pApi->pfnConnectStart ( pSocket );
1757 pSocket->State = SOCKET_STATE_CONNECTING;
1768 pSocket->errno = EINVAL;
1776 if ( NULL == pSocket->pApi->pfnConnectPoll ) {
1780 pSocket->errno = EISCONN;
1784 Status = pSocket->pApi->pfnConnectPoll ( pSocket );
1791 pSocket->State = SOCKET_STATE_CONNECTED;
1794 pSocket->State = SOCKET_STATE_BOUND;
1804 pSocket->errno = EISCONN;
1820 if ( NULL != pSocket ) {
1821 *pErrno = pSocket->errno;
1953 ESL_SOCKET * pSocket;
1967 pSocket = NULL;
1969 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
1974 Status = EslSocketIsConfigured ( pSocket );
1983 if ( SOCKET_STATE_CONNECTED == pSocket->State ) {
1987 if ( NULL == pSocket->pApi->pfnLocalAddrGet ) {
1989 pSocket->errno = ENOTSUP;
2000 pPort = pSocket->pPortList;
2005 LengthInBytes = pSocket->pApi->AddressLength;
2014 pSocket->pApi->pfnLocalAddrGet ( pPort, pAddress );
2015 pSocket->errno = 0;
2019 pSocket->errno = EINVAL;
2024 pSocket->errno = ENOTCONN;
2035 pSocket->errno = ENOTCONN;
2040 pSocket->errno = EINVAL;
2050 if ( NULL != pSocket ) {
2051 *pErrno = pSocket->errno;
2093 ESL_SOCKET * pSocket;
2107 pSocket = NULL;
2109 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
2114 Status = EslSocketIsConfigured ( pSocket );
2119 if ( NULL == pSocket->pApi->pfnRemoteAddrGet ) {
2121 pSocket->errno = ENOTSUP;
2131 if ( SOCKET_STATE_CONNECTED == pSocket->State ) {
2140 pPort = pSocket->pPortList;
2145 LengthInBytes = pSocket->pApi->AddressLength;
2153 pSocket->pApi->pfnRemoteAddrGet ( pPort, pAddress );
2154 pSocket->errno = 0;
2158 pSocket->errno = EINVAL;
2163 pSocket->errno = ENOTCONN;
2173 pSocket->errno = ENOTCONN;
2178 pSocket->errno = EINVAL;
2189 if ( NULL != pSocket ) {
2190 *pErrno = pSocket->errno;
2230 ESL_SOCKET * pSocket;
2243 pSocket = pPort->pSocket;
2250 pBuffer = &pBuffer[ pSocket->TxTokenEventOffset ];
2258 pSocket->errno = ENOMEM;
2316 ESL_SOCKET * pSocket;
2329 pSocket = pPort->pSocket;
2342 pEvent = (EFI_EVENT *)&(((UINT8 *)pIo)[ pSocket->TxTokenEventOffset ]);
2353 pSocket->errno = ENOMEM;
2402 @param [in] pSocket Address of an ::ESL_SOCKET structure
2409 IN ESL_SOCKET * pSocket
2423 if ( !pSocket->bConfigured ) {
2429 if ( NULL == pSocket->pApi->pfnIsConfigured ) {
2431 pSocket->errno = ENOTSUP;
2442 Status = pSocket->pApi->pfnIsConfigured ( pSocket );
2453 pSocket->errno = EADDRNOTAVAIL;
2501 ESL_SOCKET * pSocket;
2516 pSocket = NULL;
2518 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
2523 if ( NULL == pSocket->pApi->pfnListen ) {
2525 pSocket->errno = ENOTSUP;
2531 pSocket->Status = EFI_SUCCESS;
2532 pSocket->errno = 0;
2537 if ( SOCKET_STATE_BOUND == pSocket->State ) {
2550 &pSocket->WaitAccept );
2554 pSocket->WaitAccept ));
2566 pSocket->MaxFifoDepth = Backlog;
2573 Status = pSocket->pApi->pfnListen ( pSocket );
2579 pSocket->State = SOCKET_STATE_LISTENING;
2580 pSocket->bListenCalled = TRUE;
2586 TempStatus = gBS->CloseEvent ( pSocket->WaitAccept );
2590 pSocket->WaitAccept ));
2591 pSocket->WaitAccept = NULL;
2605 pSocket->errno = ENOMEM;
2616 pSocket->errno = ( SOCKET_STATE_NOT_CONFIGURED == pSocket->State ) ? EDESTADDRREQ
2627 if ( NULL != pSocket ) {
2628 *pErrno = pSocket->errno;
2674 ESL_SOCKET * pSocket;
2688 pSocket = NULL;
2699 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
2708 if ( NULL != pSocket->pApi->pfnOptionGet ) {
2709 if ( pSocket->pApi->DefaultProtocol == level ) {
2710 Status = pSocket->pApi->pfnOptionGet ( pSocket,
2714 errno = pSocket->errno;
2731 pSocket->pApi->pName ));
2752 pOptionData = (CONST UINT8 *)&pSocket->bListenCalled;
2753 LengthInBytes = sizeof ( pSocket->bListenCalled );
2760 pOptionData = (CONST UINT8 *)&pSocket->bOobInLine;
2761 LengthInBytes = sizeof ( pSocket->bOobInLine );
2768 pOptionData = (CONST UINT8 *)&pSocket->bOobInLine;
2769 LengthInBytes = sizeof ( pSocket->bOobInLine );
2776 pOptionData = (CONST UINT8 *)&pSocket->RxTimeout;
2777 LengthInBytes = sizeof ( pSocket->RxTimeout );
2784 pOptionData = (CONST UINT8 *)&pSocket->MaxRxBuf;
2785 LengthInBytes = sizeof ( pSocket->MaxRxBuf );
2792 pOptionData = (CONST UINT8 *)&pSocket->MaxTxBuf;
2793 LengthInBytes = sizeof ( pSocket->MaxTxBuf );
2800 pOptionData = (CONST UINT8 *)&pSocket->Type;
2801 LengthInBytes = sizeof ( pSocket->Type );
2887 ESL_SOCKET * pSocket;
2901 pSocket = NULL;
2910 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
2911 if ( pSocket->bRxDisable || pSocket->bTxDisable ) {
2922 if ( NULL != pSocket->pApi->pfnOptionSet ) {
2923 if ( pSocket->pApi->DefaultProtocol == level ) {
2924 Status = pSocket->pApi->pfnOptionSet ( pSocket,
2928 errno = pSocket->errno;
2945 pSocket->pApi->pName ));
2967 pOptionData = (UINT8 *)&pSocket->bOobInLine;
2968 LengthInBytes = sizeof ( pSocket->bOobInLine );
2972 pOptionData = (UINT8 *)&pSocket->bOobInLine;
2973 LengthInBytes = sizeof ( pSocket->bOobInLine );
3000 pOptionData = (UINT8 *)&pSocket->RxTimeout;
3001 LengthInBytes = sizeof ( pSocket->RxTimeout );
3008 pOptionData = (UINT8 *)&pSocket->MaxRxBuf;
3009 LengthInBytes = sizeof ( pSocket->MaxRxBuf );
3019 pOptionData = (UINT8 *)&pSocket->MaxTxBuf;
3020 LengthInBytes = sizeof ( pSocket->MaxTxBuf );
3211 ESL_SOCKET * pSocket;
3222 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
3223 pSocket->errno = 0;
3228 Status = EslSocketIsConfigured ( pSocket );
3253 if ( 0 != pSocket->FifoDepth ) {
3261 if ( pSocket->bConnected ) {
3278 if ( 0 < pSocket->RxOobBytes ) {
3285 if (( 0 < pSocket->RxBytes )
3286 || ( EFI_SUCCESS != pSocket->RxError )) {
3293 if (( EFI_SUCCESS != pSocket->RxError )
3301 if (( MAX_TX_DATA > pSocket->TxOobBytes )
3302 || ( EFI_SUCCESS != pSocket->TxError )) {
3309 if (( MAX_TX_DATA > pSocket->TxBytes )
3310 || ( EFI_SUCCESS != pSocket->TxError )) {
3317 if ( EFI_ERROR ( pSocket->TxError )) {
3356 @param [in] pSocket Address of an ::ESL_SOCKET structure.
3377 IN ESL_SOCKET * pSocket,
3420 pSocket->errno = ENOMEM;
3435 pPort->pSocket = pSocket;
3452 pSocket->errno = EEXIST;
3463 Status = pSocket->pApi->pfnPortAllocate ( pPort,
3472 Status = pSocket->pApi->pfnLocalAddrSet ( pPort, pSockAddr, bBindTest );
3481 Status = EslSocketBindTest ( pPort, pSocket->pApi->BindTestErrno );
3495 && ( NULL != pSocket->pApi->pfnRxComplete )) {
3502 pSocket->pApi->pfnRxComplete );
3512 && ( NULL != pSocket->pApi->pfnTxOobComplete )) {
3519 pSocket->pApi->pfnTxOobComplete );
3529 && ( NULL != pSocket->pApi->pfnTxComplete )) {
3536 pSocket->pApi->pfnTxComplete );
3545 pPort->pLinkSocket = pSocket->pPortList;
3546 pSocket->pPortList = pPort;
3549 pSocket,
3639 ESL_SOCKET * pSocket;
3655 pSocket = pPort->pSocket;
3656 pPreviousPort = pSocket->pPortList;
3661 pSocket->pPortList = pPort->pLinkSocket;
3713 while ( NULL != pSocket->pRxOobPacketListHead ) {
3714 pPacket = pSocket->pRxOobPacketListHead;
3715 pSocket->pRxOobPacketListHead = pPacket->pNext;
3716 pSocket->pApi->pfnPacketFree ( pPacket, &pSocket->RxOobBytes );
3719 pSocket->pRxOobPacketListTail = NULL;
3720 ASSERT ( 0 == pSocket->RxOobBytes );
3725 while ( NULL != pSocket->pRxPacketListHead ) {
3726 pPacket = pSocket->pRxPacketListHead;
3727 pSocket->pRxPacketListHead = pPacket->pNext;
3728 pSocket->pApi->pfnPacketFree ( pPacket, &pSocket->RxBytes );
3731 pSocket->pRxPacketListTail = NULL;
3732 ASSERT ( 0 == pSocket->RxBytes );
3737 while ( NULL != pSocket->pRxFree ) {
3738 pPacket = pSocket->pRxFree;
3739 pSocket->pRxFree = pPacket->pNext;
3746 if ( NULL != pSocket->pApi->pfnPortClose ) {
3747 Status = pSocket->pApi->pfnPortClose ( pPort );
3841 if ( NULL == pSocket->pPortList ) {
3842 pSocket->State = SOCKET_STATE_CLOSED;
3845 pSocket ));
4028 ESL_SOCKET * pSocket;
4042 pSocket = pPort->pSocket;
4043 pSocket->errno = EALREADY;
4095 ESL_SOCKET * pSocket;
4114 pSocket = pPort->pSocket;
4116 || ( EFI_SUCCESS != pSocket->TxError )
4132 pSocket = pPort->pSocket;
4134 && ( NULL != pSocket->pApi->pfnPortCloseOp )) {
4138 Status = pSocket->pApi->pfnPortCloseOp ( pPort );
4157 pSocket->errno = EAGAIN;
4169 pPacket = pSocket->pTxOobPacketListHead;
4192 pPacket = pSocket->pTxPacketListHead;
4281 ESL_SOCKET * pSocket;
4296 pSocket = NULL;
4298 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
4307 if ( EFI_SUCCESS != pSocket->TxError ) {
4308 pSocket->errno = EIO;
4309 Status = pSocket->TxError;
4310 pSocket->TxError = EFI_SUCCESS;
4316 Status = EslSocketIsConfigured ( pSocket );
4332 pSocket->errno = EFAULT;
4338 if ( NULL == pSocket->pApi->pfnReceive ) {
4340 pSocket->errno = ENOTSUP;
4350 pRemoteAddress->sa_family = pSocket->pApi->AddressFamily;
4351 pRemoteAddress->sa_len = (UINT8)pSocket->pApi->AddressLength;
4363 pSocket->errno = ENOTCONN;
4368 if ( SOCKET_STATE_CONNECTED == pSocket->State ) {
4372 pPort = pSocket->pPortList;
4379 ppQueueHead = &pSocket->pRxOobPacketListHead;
4380 ppQueueTail = &pSocket->pRxOobPacketListTail;
4381 pRxDataBytes = &pSocket->RxOobBytes;
4384 ppQueueHead = &pSocket->pRxPacketListHead;
4385 ppQueueTail = &pSocket->pRxPacketListTail;
4386 pRxDataBytes = &pSocket->RxBytes;
4404 pBuffer = pSocket->pApi->pfnReceive ( pPort,
4424 pSocket->pApi->pfnPacketFree ( pPacket, pRxDataBytes );
4443 pPacket->pNext = pSocket->pRxFree;
4444 pSocket->pRxFree = pPacket;
4454 && ( MAX_RX_DATA > pSocket->RxBytes )) {
4463 } while (( SOCK_STREAM == pSocket->Type )
4471 pSocket->errno = 0;
4478 if ( EFI_ERROR ( pSocket->RxError )
4479 && ( NULL == pSocket->pRxPacketListHead )
4480 && ( NULL == pSocket->pRxOobPacketListHead )) {
4481 Status = pSocket->RxError;
4482 pSocket->RxError = EFI_SUCCESS;
4485 pSocket->errno = EIO;
4493 pSocket->RxError = EFI_CONNECTION_FIN;
4495 pSocket->errno = 0;
4500 pSocket->errno = ECONNREFUSED;
4504 pSocket->errno = ECONNRESET;
4508 pSocket->errno = EHOSTUNREACH;
4512 pSocket->errno = ENETUNREACH;
4516 pSocket->errno = EPROTONOSUPPORT;
4520 pSocket->errno = ENOPROTOOPT;
4526 pSocket->errno = EAGAIN;
4567 pSocket->errno = EINVAL;
4575 if ( NULL != pSocket ) {
4576 *pErrno = pSocket->errno;
4670 ESL_SOCKET * pSocket;
4680 pSocket = pPort->pSocket;
4741 && pSocket->pApi->bOobSupported
4742 && ( !pSocket->bOobInLine ));
4744 ppQueueHead = &pSocket->pRxOobPacketListHead;
4745 ppQueueTail = &pSocket->pRxOobPacketListTail;
4746 pRxBytes = &pSocket->RxOobBytes;
4749 ppQueueHead = &pSocket->pRxPacketListHead;
4750 ppQueueTail = &pSocket->pRxPacketListTail;
4751 pRxBytes = &pSocket->RxBytes;
4759 && ( !pSocket->bRxDisable )) {
4792 if ( pSocket->MaxRxBuf > pSocket->RxBytes ) {
4799 pSocket->RxBytes ));
4816 pSocket->pApi->pfnPacketFree ( pPacket, pRxBytes );
4823 if ( !EFI_ERROR ( pSocket->RxError )) {
4824 pSocket->RxError = Status;
4880 ESL_SOCKET * pSocket;
4890 pSocket = pPort->pSocket;
4891 if ( !EFI_ERROR ( pPort->pSocket->RxError )) {
4893 && ( !pSocket->bRxDisable )
4902 pPacket = pSocket->pRxFree;
4907 pSocket->pRxFree = pPacket->pNext;
4918 pSocket->pApi->RxPacketBytes,
4919 pSocket->pApi->RxZeroBytes,
4952 pBuffer = &pBuffer[ pSocket->pApi->RxBufferOffset ];
4958 if ( NULL != pSocket->pApi->pfnRxStart ) {
4959 pSocket->pApi->pfnRxStart ( pPort, pIo );
4988 if ( !EFI_ERROR ( pSocket->RxError )) {
4992 pSocket->RxError = Status;
4999 pPacket->pNext = pSocket->pRxFree;
5000 pSocket->pRxFree = pPacket;
5011 if ( pSocket->bRxDisable ) {
5026 pPort->pSocket->RxError ));
5060 ESL_SOCKET * pSocket;
5074 pSocket = NULL;
5076 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
5081 if ( pSocket->bConnected ) {
5095 pSocket->bRxDisable = TRUE;
5102 pSocket->bTxDisable = TRUE;
5108 if ( pSocket->bRxDisable ) {
5112 pPort = pSocket->pPortList;
5138 pSocket->errno = EINVAL;
5146 pSocket->errno = ENOTCONN;
5155 if ( NULL != pSocket ) {
5156 *pErrno = pSocket->errno;
5212 ESL_SOCKET * pSocket;
5226 pSocket = NULL;
5228 pSocket = SOCKET_FROM_PROTOCOL ( pSocketProtocol );
5233 if ( EFI_SUCCESS != pSocket->TxError ) {
5234 pSocket->errno = EIO;
5235 Status = pSocket->TxError;
5236 pSocket->TxError = EFI_SUCCESS;
5242 Status = EslSocketIsConfigured ( pSocket );
5247 if ( !pSocket->bTxDisable ) {
5267 pSocket->errno = EFAULT;
5278 pSocket->errno = EFAULT;
5284 if ( NULL == pSocket->pApi->pfnTransmit ) {
5286 pSocket->errno = ENOTSUP;
5297 Status = pSocket->pApi->pfnTransmit ( pSocket,
5317 pSocket->errno = EPIPE;
5328 if ( NULL != pSocket ) {
5329 *pErrno = pSocket->errno;
5385 ESL_SOCKET * pSocket;
5395 pSocket = pPort->pSocket;
5435 if ( !EFI_ERROR ( pSocket->TxError )) {
5436 pSocket->TxError = Status;
5529 ESL_SOCKET * pSocket;
5545 pSocket = pPort->pSocket;
5547 // *ppQueueHead: pSocket->pRxPacketListHead or pSocket->pRxOobPacketListHead
5555 // *ppQueueTail: pSocket->pRxPacketListTail or pSocket->pRxOobPacketListTail
5585 pBuffer = &pBuffer[ pSocket->TxTokenOffset ];
5596 pBuffer = &pBuffer[ pSocket->TxPacketOffset ];
5651 if ( EFI_SUCCESS == pSocket->TxError ) {
5652 pSocket->TxError = Status;