Lines Matching defs:pPort

220          pPort->pRxActive
232 pPort->pRxFree
414 pPort->pTxActive or pTxOobActive
426 pPort->pTxFree or pTxOobFree
1120 ESL_PORT * pPort;
1227 &pPort );
1292 @param [in] pPort Address of the ::ESL_PORT structure.
1301 IN ESL_PORT * pPort,
1314 pBuffer = (UINT8 *)pPort;
1315 pBuffer = &pBuffer [ pPort->pSocket->pApi->ConfigDataOffset ];
1321 Status = pPort->pfnConfigure ( pPort->pProtocol.v, pConfigData );
1325 pPort,
1327 pPort->pSocket->errno = ErrnoValue;
1333 Status = pPort->pfnConfigure ( pPort->pProtocol.v, NULL );
1337 pPort,
1523 ESL_PORT * pPort;
1554 pPort = pSocket->pPortList;
1555 while ( NULL != pPort ) {
1559 pNextPort = pPort->pLinkSocket;
1560 Status = EslSocketPortCloseStart ( pPort,
1572 pPort = pNextPort;
1578 if ( NULL == pPort ) {
1637 ESL_PORT * pPort;
1725 pPort = pSocket->pPortList;
1726 while ( NULL != pPort ) {
1730 Status = pSocket->pApi->pfnRemoteAddrSet ( pPort,
1740 pPort = pPort->pLinkSocket;
1952 ESL_PORT * pPort;
2000 pPort = pSocket->pPortList;
2001 if (( NULL != pPort ) && ( NULL == pPort->pLinkSocket )) {
2014 pSocket->pApi->pfnLocalAddrGet ( pPort, pAddress );
2092 ESL_PORT * pPort;
2140 pPort = pSocket->pPortList;
2141 if (( NULL != pPort ) && ( NULL == pPort->pLinkSocket )) {
2153 pSocket->pApi->pfnRemoteAddrGet ( pPort, pAddress );
2211 @param [in] pPort Address of an ::ESL_PORT structure
2221 IN ESL_PORT * pPort,
2243 pSocket = pPort->pSocket;
2290 @param [in] pPort Address of an ::ESL_PORT structure
2304 IN ESL_PORT * pPort,
2329 pSocket = pPort->pSocket;
2336 pIo->pPort = pPort;
3390 ESL_PORT * pPort;
3411 LengthInBytes = sizeof ( *pPort )
3417 pPort = (ESL_PORT *) AllocateZeroPool ( LengthInBytes );
3418 if ( NULL == pPort ) {
3424 "0x%08x: Allocate pPort, %d bytes\r\n",
3425 pPort,
3431 pPort->DebugFlags = DebugFlags;
3432 pPort->Handle = ChildHandle;
3433 pPort->pService = pService;
3434 pPort->pServiceBinding = pService->pServiceBinding;
3435 pPort->pSocket = pSocket;
3436 pPort->pSocketBinding = pService->pSocketBinding;
3437 pPort->Signature = PORT_SIGNATURE;
3442 Status = gBS->OpenProtocol ( pPort->Handle,
3444 &pPort->pProtocol.v,
3451 pPort->Handle ));
3457 pPort->pProtocol.v,
3458 pPort->Handle ));
3463 Status = pSocket->pApi->pfnPortAllocate ( pPort,
3472 Status = pSocket->pApi->pfnLocalAddrSet ( pPort, pSockAddr, bBindTest );
3481 Status = EslSocketBindTest ( pPort, pSocket->pApi->BindTestErrno );
3490 pBuffer = (UINT8 *)&pPort[ 1 ];
3496 Status = EslSocketIoInit ( pPort,
3499 &pPort->pRxFree,
3513 Status = EslSocketIoInit ( pPort,
3516 &pPort->pTxOobFree,
3530 Status = EslSocketIoInit ( pPort,
3533 &pPort->pTxFree,
3545 pPort->pLinkSocket = pSocket->pPortList;
3546 pSocket->pPortList = pPort;
3550 pPort ));
3555 pPort->pLinkService = pService->pPortList;
3556 pService->pPortList = pPort;
3561 *ppPort = pPort;
3569 if ( NULL != pPort ) {
3573 EslSocketPortClose ( pPort );
3621 @param [in] pPort Address of an ::ESL_PORT structure.
3629 IN ESL_PORT * pPort
3654 DebugFlags = pPort->DebugFlags;
3655 pSocket = pPort->pSocket;
3657 if ( pPreviousPort == pPort ) {
3661 pSocket->pPortList = pPort->pLinkSocket;
3668 && ( pPreviousPort->pLinkSocket != pPort )) {
3675 pPreviousPort->pLinkSocket = pPort->pLinkSocket;
3684 pService = pPort->pService;
3687 if ( pPreviousPort == pPort ) {
3691 pService->pPortList = pPort->pLinkService;
3698 && ( pPreviousPort->pLinkService != pPort )) {
3705 pPreviousPort->pLinkService = pPort->pLinkService;
3747 Status = pSocket->pApi->pfnPortClose ( pPort );
3753 Status = EslSocketIoFree ( pPort,
3754 &pPort->pTxFree,
3761 Status = EslSocketIoFree ( pPort,
3762 &pPort->pTxOobFree,
3769 Status = EslSocketIoFree ( pPort,
3770 &pPort->pRxFree,
3777 pSocketBinding = pPort->pSocketBinding;
3778 if ( NULL != pPort->pProtocol.v ) {
3779 Status = gBS->CloseProtocol ( pPort->Handle,
3786 pPort->pProtocol.v,
3787 pPort->Handle ));
3792 pPort->Handle,
3801 pServiceBinding = pPort->pServiceBinding;
3802 if ( NULL != pPort->Handle ) {
3804 pPort->Handle );
3808 pPort->Handle,
3823 Status = gBS->FreePool ( pPort );
3826 "0x%08x: Free pPort, %d bytes\r\n",
3827 pPort,
3828 sizeof ( *pPort )));
3832 "ERROR - Failed to free pPort: 0x%08x, Status: %r\r\n",
3833 pPort,
3867 @param [in] pPort Address of an ::ESL_PORT structure.
3873 IN ESL_PORT * pPort
3885 pPort->State = PORT_STATE_CLOSE_DONE;
3888 pPort ));
3893 if ( NULL != pPort->pfnRxCancel ) {
3894 pIo = pPort->pRxActive;
3896 EslSocketRxCancel ( pPort, pIo );
3904 Status = EslSocketPortCloseRxDone ( pPort );
3925 @param [in] pPort Address of an ::ESL_PORT structure.
3935 IN ESL_PORT * pPort
3951 if ( PORT_STATE_CLOSE_DONE == pPort->State ) {
3956 if ( NULL == pPort->pRxActive ) {
3961 pPort->State = PORT_STATE_CLOSE_RX_DONE;
3964 pPort ));
3969 Status = EslSocketPortClose ( pPort );
3980 pPort ));
3981 pIo = pPort->pRxActive;
4011 @param [in] pPort Address of an ::ESL_PORT structure.
4023 IN ESL_PORT * pPort,
4042 pSocket = pPort->pSocket;
4044 if ( PORT_STATE_CLOSE_STARTED > pPort->State ) {
4049 pPort->State = PORT_STATE_CLOSE_STARTED;
4052 pPort ));
4053 pPort->bCloseNow = bCloseNow;
4054 pPort->DebugFlags = DebugFlags;
4059 Status = EslSocketPortCloseTxDone ( pPort );
4081 @param [in] pPort Address of an ::ESL_PORT structure.
4091 IN ESL_PORT * pPort
4110 if ( PORT_STATE_CLOSE_STARTED == pPort->State ) {
4114 pSocket = pPort->pSocket;
4115 if ( pPort->bCloseNow
4117 || (( NULL == pPort->pTxActive )
4118 && ( NULL == pPort->pTxOobActive ))) {
4122 pPort->State = PORT_STATE_CLOSE_TX_DONE;
4125 pPort ));
4132 pSocket = pPort->pSocket;
4133 if (( pPort->bConfigured )
4138 Status = pSocket->pApi->pfnPortCloseOp ( pPort );
4141 pPort ));
4149 EslSocketPortCloseComplete ( NULL, pPort );
4164 pPort ));
4178 pIo = pPort->pTxOobActive;
4201 pIo = pPort->pTxActive;
4276 ESL_PORT * pPort;
4372 pPort = pSocket->pPortList;
4373 if ( NULL != pPort ) {
4404 pBuffer = pSocket->pApi->pfnReceive ( pPort,
4428 pPort,
4447 pPort,
4453 if (( NULL != pPort->pRxFree )
4455 EslSocketRxStart ( pPort );
4597 @param [in] pPort Address of an ::ESL_PORT structure
4603 IN ESL_PORT * pPort,
4614 Status = pPort->pfnRxCancel ( pPort->pProtocol.v,
4617 DEBUG (( pPort->DebugFlags | DEBUG_CLOSE | DEBUG_INFO,
4620 pPort ));
4623 DEBUG (( pPort->DebugFlags | DEBUG_CLOSE | DEBUG_INFO,
4626 pPort,
4665 ESL_PORT * pPort;
4679 pPort = pIo->pPort;
4680 pSocket = pPort->pSocket;
4683 // pPort->pRxActive
4695 // pPort->pRxFree
4703 pIoNext = pPort->pRxActive;
4710 pPort->pRxActive = pIo->pNext; // Beginning of list
4719 pIo->pNext = pPort->pRxFree;
4720 pPort->pRxFree = pIo;
4758 && ( PORT_STATE_CLOSE_STARTED > pPort->State )
4772 pPort,
4793 EslSocketRxStart ( pPort );
4798 pPort,
4806 pPort,
4830 if ( PORT_STATE_CLOSE_STARTED <= pPort->State ) {
4831 if ( PORT_STATE_CLOSE_DONE == pPort->State ) {
4832 EslSocketPortCloseRxDone ( pPort );
4839 pPort,
4841 pPort->State = PORT_STATE_RX_ERROR;
4869 @param [in] pPort Address of an ::ESL_PORT structure.
4874 IN ESL_PORT * pPort
4890 pSocket = pPort->pSocket;
4891 if ( !EFI_ERROR ( pPort->pSocket->RxError )) {
4892 if (( NULL != pPort->pRxFree )
4894 && ( PORT_STATE_CLOSE_STARTED > pPort->State )) {
4898 while ( NULL != pPort->pRxFree ) {
4910 pPort,
4925 pPort,
4934 pIo = pPort->pRxFree;
4959 pSocket->pApi->pfnRxStart ( pPort, pIo );
4965 Status = pPort->pfnRxStart ( pPort->pProtocol.v, &pIo->Token );
4970 pPort ));
4974 pPort->pRxFree = pIo->pNext;
4979 pIo->pNext = pPort->pRxActive;
4980 pPort->pRxActive = pIo;
4986 pPort,
5006 if ( NULL == pPort->pRxFree ) {
5009 pPort));
5014 pPort ));
5016 if ( PORT_STATE_CLOSE_STARTED <= pPort->State ) {
5019 pPort ));
5026 pPort->pSocket->RxError ));
5059 ESL_PORT * pPort;
5112 pPort = pSocket->pPortList;
5113 while ( NULL != pPort ) {
5117 pIo = pPort->pRxActive;
5119 EslSocketRxCancel ( pPort, pIo );
5125 pPort = pPort->pLinkSocket;
5384 ESL_PORT * pPort;
5394 pPort = pIo->pPort;
5395 pSocket = pPort->pSocket;
5468 if ( !pPort->bCloseNow ) {
5472 EslSocketTxStart ( pPort,
5488 if ( PORT_STATE_CLOSE_STARTED <= pPort->State ) {
5492 EslSocketPortCloseTxDone ( pPort );
5508 @param [in] pPort Address of an ::ESL_PORT structure
5517 IN ESL_PORT * pPort,
5545 pSocket = pPort->pSocket;
5614 Status = pPort->pfnTxStart ( pPort->pProtocol.v,
5628 // *ppFree: pPort->pTxFree or pTxOobFree
5636 // *ppActive: pPort->pTxActive or pTxOobActive