Lines Matching defs:pSocket

49   @param [in] pSocket   Address of an ::ESL_SOCKET structure.
58 IN ESL_SOCKET * pSocket
94 @param [in] pSocket Address of an ::ESL_SOCKET structure.
109 IN ESL_SOCKET * pSocket,
132 pSocket->errno = EINVAL;
145 pPort = pSocket->pPortList;
203 ESL_SOCKET * pSocket;
212 pSocket = pPort->pSocket;
221 pSocket->ConnectStatus = Status;
273 Status = EslTcp4ConnectStart ( pSocket );
275 pSocket->ConnectStatus = Status;
287 pPort = pSocket->pPortList;
315 pSocket->bConnected = TRUE;
334 @param [in] pSocket Address of an ::ESL_SOCKET structure.
343 IN ESL_SOCKET * pSocket
353 if ( !pSocket->bConnected ) {
357 pSocket->errno = EAGAIN;
364 pSocket->bConnected = FALSE;
369 Status = pSocket->ConnectStatus;
373 pSocket->errno = EIO;
377 pSocket->errno = ECONNREFUSED;
381 pSocket->errno = EINVAL;
386 pSocket->errno = EHOSTUNREACH;
390 pSocket->errno = ENETDOWN;
394 pSocket->errno = ENOMEM;
398 pSocket->errno = 0;
399 pSocket->bConfigured = TRUE;
403 pSocket->errno = ETIMEDOUT;
407 pSocket->errno = ENOTSUP;
411 pSocket->errno = ECONNRESET;
441 @param [in] pSocket Address of an ::ESL_SOCKET structure.
450 IN ESL_SOCKET * pSocket
463 pPort = pSocket->pPortList;
480 pSocket->errno = EACCES;
485 pSocket->errno = EIO;
489 pSocket->errno = EADDRNOTAVAIL;
493 pSocket->errno = EAFNOSUPPORT;
497 pSocket->errno = ENOBUFS;
501 pSocket->errno = EOPNOTSUPP;
520 pSocket->errno = EINPROGRESS;
544 pSocket->errno = EIO;
548 pSocket->errno = ENOBUFS;
552 pSocket->errno = ETIMEDOUT;
556 pSocket->errno = ENETDOWN;
560 pSocket->errno = EHOSTUNREACH;
566 pSocket->errno = ECONNREFUSED;
570 pSocket->errno = ECONNRESET;
580 pSocket->errno = ENETUNREACH;
602 @param [in] pSocket Address of an ::ESL_SOCKET structure.
610 IN ESL_SOCKET * pSocket
633 pSocket->errno = EOPNOTSUPP;
639 pPort = pSocket->pPortList;
644 pSocket->errno = 0;
663 pSocket->errno = ENOMEM;
682 pSocket->errno = EACCES;
687 pSocket->errno = EIO;
691 pSocket->errno = EADDRNOTAVAIL;
695 pSocket->errno = EAFNOSUPPORT;
699 pSocket->errno = ENOBUFS;
703 pSocket->errno = EOPNOTSUPP;
724 pSocket->errno = EACCES;
729 pSocket->errno = EIO;
733 pSocket->errno = EADDRNOTAVAIL;
737 pSocket->errno = ENETDOWN;
741 pSocket->errno = ENOBUFS;
777 if ( NULL == pSocket->pPortList ) {
781 pSocket->MaxFifoDepth = 0;
792 pSocket->bConfigured = TRUE;
798 "0x%08x: pSocket - Listen pending on socket\r\n",
799 pSocket ));
838 ESL_SOCKET * pSocket;
856 pSocket = pPort->pSocket;
858 if (( SOCKET_STATE_LISTENING == pSocket->State )
859 && ( pSocket->MaxFifoDepth > pSocket->FifoDepth )) {
872 pNewSocket->pApi = pSocket->pApi;
873 pNewSocket->Domain = pSocket->Domain;
874 pNewSocket->Protocol = pSocket->Protocol;
875 pNewSocket->Type = pSocket->Type;
932 if ( NULL == pSocket->pFifoTail ) {
936 pSocket->pFifoHead = pNewSocket;
942 pSocket->pFifoTail->pNextConnection = pNewSocket;
944 pSocket->pFifoTail = pNewSocket;
945 pSocket->FifoDepth += 1;
970 pSocket,
972 pSocket->FifoDepth ));
1008 &pSocket->errno );
1016 pSocket ));
1129 pPort->pSocket->errno = EADDRNOTAVAIL;
1249 ESL_SOCKET * pSocket;
1261 pSocket = pPort->pSocket;
1272 pSocket->errno = ENOMEM;
1291 pSocket->errno = ENOMEM;
1301 pSocket->TxPacketOffset = OFFSET_OF ( ESL_PACKET, Op.Tcp4Tx.TxData );
1302 pSocket->TxTokenEventOffset = OFFSET_OF ( ESL_IO_MGMT, Token.Tcp4Tx.CompletionToken.Event );
1303 pSocket->TxTokenOffset = OFFSET_OF ( EFI_TCP4_IO_TOKEN, Packet.TxData );
1590 || ( SOCK_STREAM != pPort->pSocket->Type )) {
1700 pPort->pSocket->errno = EAFNOSUPPORT;
1829 @param [in] pSocket Address of an ::ESL_SOCKET structure.
1837 IN ESL_SOCKET * pSocket
1847 Status = pSocket->bConfigured ? EFI_SUCCESS : EFI_NOT_STARTED;
1875 @param [in] pSocket Address of an ::ESL_SOCKET structure
1894 IN ESL_SOCKET * pSocket,
1924 pSocket->errno = ENOTCONN;
1930 if ( SOCKET_STATE_CONNECTED == pSocket->State ) {
1934 pPort = pSocket->pPortList;
1942 && ( !pSocket->bOobInLine )
1943 && pSocket->pApi->bOobSupported;
1945 ppQueueHead = &pSocket->pTxOobPacketListHead;
1946 ppQueueTail = &pSocket->pTxOobPacketListTail;
1949 pTxBytes = &pSocket->TxOobBytes;
1952 ppQueueHead = &pSocket->pTxPacketListHead;
1953 ppQueueTail = &pSocket->pTxPacketListTail;
1956 pTxBytes = &pSocket->TxBytes;
1963 if ( pSocket->MaxTxBuf > *pTxBytes ) {
1968 pSocket->MaxTxBuf,
2009 if ( !EFI_ERROR ( pSocket->TxError )) {
2058 Status = pSocket->TxError;
2059 pSocket->errno = EIO;
2076 pSocket->errno = ENOMEM;
2084 pSocket->MaxTxBuf,
2091 pSocket->errno = EAGAIN;
2128 ESL_SOCKET * pSocket;
2138 pSocket = pPort->pSocket;
2144 pSocket->TxBytes -= LengthInBytes;
2154 &pSocket->pTxPacketListHead,
2155 &pSocket->pTxPacketListTail,
2185 ESL_SOCKET * pSocket;
2195 pSocket = pPort->pSocket;
2201 pSocket->TxOobBytes -= LengthInBytes;
2211 &pSocket->pTxOobPacketListHead,
2212 &pSocket->pTxOobPacketListTail,