Lines Matching refs:pSocket
103 pPort->pSocket->errno = EADDRNOTAVAIL;
168 @param [in] pSocket Address of an ::ESL_SOCKET structure
178 IN ESL_SOCKET * pSocket,
191 pSocket->errno = 0;
202 pSocket->errno = ENOPROTOOPT;
207 *ppOptionData = (void *)&pSocket->bIncludeHeader;
208 *pOptionLength = sizeof ( pSocket->bIncludeHeader );
228 @param [in] pSocket Address of an ::ESL_SOCKET structure
238 IN ESL_SOCKET * pSocket,
254 pSocket->errno = 0;
268 pSocket->errno = ENOTSUP;
290 pOptionData = (UINT8 *)&pSocket->bIncludeHeader;
291 LengthInBytes = sizeof ( pSocket->bIncludeHeader );
368 ESL_SOCKET * pSocket;
376 pSocket = pPort->pSocket;
377 pSocket->TxPacketOffset = OFFSET_OF ( ESL_PACKET, Op.Ip4Tx.TxData );
378 pSocket->TxTokenEventOffset = OFFSET_OF ( ESL_IO_MGMT, Token.Ip4Tx.Event );
379 pSocket->TxTokenOffset = OFFSET_OF ( EFI_IP4_COMPLETION_TOKEN, Packet.TxData );
406 pConfig->DefaultProtocol = (UINT8)pSocket->Protocol;
717 @param [in] pSocket Address of an ::ESL_SOCKET structure
725 IN ESL_SOCKET * pSocket
746 if ( !pSocket->bConfigured ) {
750 if ( NULL == pSocket->pPortList ) {
755 Status = EslSocketBind ( &pSocket->SocketProtocol,
758 &pSocket->errno );
764 pPort = pSocket->pPortList;
770 if ( pSocket->bIncludeHeader ) {
810 pSocket->errno = EACCES;
815 pSocket->errno = EIO;
819 pSocket->errno = EADDRNOTAVAIL;
823 pSocket->errno = EAFNOSUPPORT;
827 pSocket->errno = ENOBUFS;
831 pSocket->errno = EOPNOTSUPP;
886 pSocket->State = SOCKET_STATE_CONNECTED;
898 if ( NULL != pSocket->pPortList ) {
899 pSocket->bConfigured = TRUE;
907 Status = pSocket->bConfigured ? EFI_SUCCESS : EFI_NOT_STARTED;
938 @param [in] pSocket Address of an ::ESL_SOCKET structure
957 IN ESL_SOCKET * pSocket,
982 pSocket->errno = ENOTCONN;
988 if ( SOCKET_STATE_CONNECTED == pSocket->State ) {
992 pPort = pSocket->pPortList;
998 pTxBytes = &pSocket->TxBytes;
1004 if ( pSocket->MaxTxBuf > *pTxBytes ) {
1048 pTxData->Override.Protocol = (UINT8)pSocket->Protocol;
1074 if ( !EFI_ERROR ( pSocket->TxError )) {
1095 pPreviousPacket = pSocket->pTxPacketListTail;
1097 pSocket->pTxPacketListHead = pPacket;
1102 pSocket->pTxPacketListTail = pPacket;
1118 &pSocket->pTxPacketListHead,
1119 &pSocket->pTxPacketListTail,
1129 Status = pSocket->TxError;
1130 pSocket->errno = EIO;
1147 pSocket->errno = ENOMEM;
1154 pSocket->errno = EAGAIN;
1191 ESL_SOCKET * pSocket;
1201 pSocket = pPort->pSocket;
1207 pSocket->TxBytes -= LengthInBytes;
1217 &pSocket->pTxPacketListHead,
1218 &pSocket->pTxPacketListTail,