Lines Matching refs:pLlcpTransport
453 phFriNfc_LlcpTransport_t* pLlcpTransport = (phFriNfc_LlcpTransport_t*)pContext; in phFriNfc_LlcpTransport__Recv_CB() local
457 pLlcpTransport->LinkStatusError = TRUE; in phFriNfc_LlcpTransport__Recv_CB()
478 Handle_Connectionless_IncommingFrame(pLlcpTransport, in phFriNfc_LlcpTransport__Recv_CB()
489 Handle_Discovery_IncomingFrame(pLlcpTransport, in phFriNfc_LlcpTransport__Recv_CB()
512 Handle_ConnectionOriented_IncommingFrame(pLlcpTransport, in phFriNfc_LlcpTransport__Recv_CB()
525 status = phFriNfc_Llcp_Recv(pLlcpTransport->pLlcp, in phFriNfc_LlcpTransport__Recv_CB()
527 pLlcpTransport); in phFriNfc_LlcpTransport__Recv_CB()
652 NFCSTATUS phFriNfc_LlcpTransport_Reset (phFriNfc_LlcpTransport_t *pLlcpTransport, in phFriNfc_LlcpTransport_Reset() argument
659 if(pLlcpTransport == NULL || pLlcp == NULL) in phFriNfc_LlcpTransport_Reset()
666 pLlcpTransport->pLlcp = pLlcp; in phFriNfc_LlcpTransport_Reset()
667 pLlcpTransport->LinkStatusError = FALSE; in phFriNfc_LlcpTransport_Reset()
668 pLlcpTransport->bSendPending = FALSE; in phFriNfc_LlcpTransport_Reset()
669 pLlcpTransport->bRecvPending = FALSE; in phFriNfc_LlcpTransport_Reset()
670 pLlcpTransport->bDmPending = FALSE; in phFriNfc_LlcpTransport_Reset()
671 pLlcpTransport->bFrmrPending = FALSE; in phFriNfc_LlcpTransport_Reset()
672 pLlcpTransport->socketIndex = FALSE; in phFriNfc_LlcpTransport_Reset()
673 pLlcpTransport->LinkStatusError = 0; in phFriNfc_LlcpTransport_Reset()
674 pLlcpTransport->pfDiscover_Cb = NULL; in phFriNfc_LlcpTransport_Reset()
677 …memset(pLlcpTransport->pCachedServiceNames, 0x00, sizeof(phFriNfc_Llcp_CachedServiceName_t)*PHFRIN… in phFriNfc_LlcpTransport_Reset()
682 …pLlcpTransport->pSocketTable[i].eSocket_State = phFriNfc_LlcpTransportSocket_eSoc… in phFriNfc_LlcpTransport_Reset()
683 …pLlcpTransport->pSocketTable[i].eSocket_Type = phFriNfc_LlcpTransport_eDefaultTy… in phFriNfc_LlcpTransport_Reset()
684 pLlcpTransport->pSocketTable[i].index = i; in phFriNfc_LlcpTransport_Reset()
685 pLlcpTransport->pSocketTable[i].pContext = NULL; in phFriNfc_LlcpTransport_Reset()
686 pLlcpTransport->pSocketTable[i].pListenContext = NULL; in phFriNfc_LlcpTransport_Reset()
687 pLlcpTransport->pSocketTable[i].pAcceptContext = NULL; in phFriNfc_LlcpTransport_Reset()
688 pLlcpTransport->pSocketTable[i].pRejectContext = NULL; in phFriNfc_LlcpTransport_Reset()
689 pLlcpTransport->pSocketTable[i].pConnectContext = NULL; in phFriNfc_LlcpTransport_Reset()
690 pLlcpTransport->pSocketTable[i].pDisconnectContext = NULL; in phFriNfc_LlcpTransport_Reset()
691 pLlcpTransport->pSocketTable[i].pSendContext = NULL; in phFriNfc_LlcpTransport_Reset()
692 pLlcpTransport->pSocketTable[i].pRecvContext = NULL; in phFriNfc_LlcpTransport_Reset()
693 pLlcpTransport->pSocketTable[i].pSocketErrCb = NULL; in phFriNfc_LlcpTransport_Reset()
694 pLlcpTransport->pSocketTable[i].bufferLinearLength = 0; in phFriNfc_LlcpTransport_Reset()
695 pLlcpTransport->pSocketTable[i].bufferSendMaxLength = 0; in phFriNfc_LlcpTransport_Reset()
696 pLlcpTransport->pSocketTable[i].bufferRwMaxLength = 0; in phFriNfc_LlcpTransport_Reset()
697 pLlcpTransport->pSocketTable[i].ReceiverBusyCondition = FALSE; in phFriNfc_LlcpTransport_Reset()
698 pLlcpTransport->pSocketTable[i].RemoteBusyConditionInfo = FALSE; in phFriNfc_LlcpTransport_Reset()
699 pLlcpTransport->pSocketTable[i].socket_sSap = PHFRINFC_LLCP_SAP_DEFAULT; in phFriNfc_LlcpTransport_Reset()
700 pLlcpTransport->pSocketTable[i].socket_dSap = PHFRINFC_LLCP_SAP_DEFAULT; in phFriNfc_LlcpTransport_Reset()
701 pLlcpTransport->pSocketTable[i].bSocketRecvPending = FALSE; in phFriNfc_LlcpTransport_Reset()
702 pLlcpTransport->pSocketTable[i].bSocketSendPending = FALSE; in phFriNfc_LlcpTransport_Reset()
703 pLlcpTransport->pSocketTable[i].bSocketListenPending = FALSE; in phFriNfc_LlcpTransport_Reset()
704 pLlcpTransport->pSocketTable[i].bSocketDiscPending = FALSE; in phFriNfc_LlcpTransport_Reset()
705 pLlcpTransport->pSocketTable[i].bSocketConnectPending = FALSE; in phFriNfc_LlcpTransport_Reset()
706 pLlcpTransport->pSocketTable[i].bSocketAcceptPending = FALSE; in phFriNfc_LlcpTransport_Reset()
707 pLlcpTransport->pSocketTable[i].bSocketRRPending = FALSE; in phFriNfc_LlcpTransport_Reset()
708 pLlcpTransport->pSocketTable[i].bSocketRNRPending = FALSE; in phFriNfc_LlcpTransport_Reset()
709 pLlcpTransport->pSocketTable[i].psTransport = pLlcpTransport; in phFriNfc_LlcpTransport_Reset()
710 pLlcpTransport->pSocketTable[i].pfSocketSend_Cb = NULL; in phFriNfc_LlcpTransport_Reset()
711 pLlcpTransport->pSocketTable[i].pfSocketRecv_Cb = NULL; in phFriNfc_LlcpTransport_Reset()
712 pLlcpTransport->pSocketTable[i].pfSocketRecvFrom_Cb = NULL; in phFriNfc_LlcpTransport_Reset()
713 pLlcpTransport->pSocketTable[i].pfSocketListen_Cb = NULL; in phFriNfc_LlcpTransport_Reset()
714 pLlcpTransport->pSocketTable[i].pfSocketConnect_Cb = NULL; in phFriNfc_LlcpTransport_Reset()
715 pLlcpTransport->pSocketTable[i].pfSocketDisconnect_Cb = NULL; in phFriNfc_LlcpTransport_Reset()
716 pLlcpTransport->pSocketTable[i].socket_VS = 0; in phFriNfc_LlcpTransport_Reset()
717 pLlcpTransport->pSocketTable[i].socket_VSA = 0; in phFriNfc_LlcpTransport_Reset()
718 pLlcpTransport->pSocketTable[i].socket_VR = 0; in phFriNfc_LlcpTransport_Reset()
719 pLlcpTransport->pSocketTable[i].socket_VRA = 0; in phFriNfc_LlcpTransport_Reset()
720 pLlcpTransport->pSocketTable[i].remoteRW = 0; in phFriNfc_LlcpTransport_Reset()
721 pLlcpTransport->pSocketTable[i].localRW = 0; in phFriNfc_LlcpTransport_Reset()
722 pLlcpTransport->pSocketTable[i].remoteMIU = 0; in phFriNfc_LlcpTransport_Reset()
723 pLlcpTransport->pSocketTable[i].localMIUX = 0; in phFriNfc_LlcpTransport_Reset()
724 pLlcpTransport->pSocketTable[i].index = 0; in phFriNfc_LlcpTransport_Reset()
725 pLlcpTransport->pSocketTable[i].indexRwRead = 0; in phFriNfc_LlcpTransport_Reset()
726 pLlcpTransport->pSocketTable[i].indexRwWrite = 0; in phFriNfc_LlcpTransport_Reset()
728 …memset(&pLlcpTransport->pSocketTable[i].sSocketOption, 0x00, sizeof(phFriNfc_LlcpTransport_sSocket… in phFriNfc_LlcpTransport_Reset()
730 if (pLlcpTransport->pSocketTable[i].sServiceName.buffer != NULL) { in phFriNfc_LlcpTransport_Reset()
731 phOsalNfc_FreeMemory(pLlcpTransport->pSocketTable[i].sServiceName.buffer); in phFriNfc_LlcpTransport_Reset()
733 pLlcpTransport->pSocketTable[i].sServiceName.buffer = NULL; in phFriNfc_LlcpTransport_Reset()
734 pLlcpTransport->pSocketTable[i].sServiceName.length = 0; in phFriNfc_LlcpTransport_Reset()
738 status = phFriNfc_Llcp_Recv(pLlcpTransport->pLlcp, in phFriNfc_LlcpTransport_Reset()
740 pLlcpTransport); in phFriNfc_LlcpTransport_Reset()
746 NFCSTATUS phFriNfc_LlcpTransport_CloseAll (phFriNfc_LlcpTransport_t *pLlcpTransport) in phFriNfc_LlcpTransport_CloseAll() argument
753 if(pLlcpTransport == NULL) in phFriNfc_LlcpTransport_CloseAll()
761 if(pLlcpTransport->pSocketTable[i].eSocket_Type == phFriNfc_LlcpTransport_eConnectionOriented) in phFriNfc_LlcpTransport_CloseAll()
763 switch(pLlcpTransport->pSocketTable[i].eSocket_State) in phFriNfc_LlcpTransport_CloseAll()
771 phFriNfc_LlcpTransport_Close(&pLlcpTransport->pSocketTable[i]); in phFriNfc_LlcpTransport_CloseAll()
780 phFriNfc_LlcpTransport_Close(&pLlcpTransport->pSocketTable[i]); in phFriNfc_LlcpTransport_CloseAll()
787 pCachedServiceName = &pLlcpTransport->pCachedServiceNames[i]; in phFriNfc_LlcpTransport_CloseAll()
1138 NFCSTATUS phFriNfc_LlcpTransport_DiscoverServices( phFriNfc_LlcpTransport_t *pLlcpTransport, in phFriNfc_LlcpTransport_DiscoverServices() argument
1148 pLlcpTransport->psDiscoveryServiceNameList = psServiceNameList; in phFriNfc_LlcpTransport_DiscoverServices()
1149 pLlcpTransport->pnDiscoverySapList = pnSapList; in phFriNfc_LlcpTransport_DiscoverServices()
1150 pLlcpTransport->nDiscoveryListSize = nListSize; in phFriNfc_LlcpTransport_DiscoverServices()
1151 pLlcpTransport->pfDiscover_Cb = pDiscover_Cb; in phFriNfc_LlcpTransport_DiscoverServices()
1152 pLlcpTransport->pDiscoverContext = pContext; in phFriNfc_LlcpTransport_DiscoverServices()
1155 pLlcpTransport->nDiscoveryReqOffset = 0; in phFriNfc_LlcpTransport_DiscoverServices()
1156 pLlcpTransport->nDiscoveryResOffset = 0; in phFriNfc_LlcpTransport_DiscoverServices()
1159 result = phFriNfc_LlcpTransport_DiscoverServicesEx(pLlcpTransport); in phFriNfc_LlcpTransport_DiscoverServices()
1196 NFCSTATUS phFriNfc_LlcpTransport_Socket(phFriNfc_LlcpTransport_t *pLlcpTransport, in phFriNfc_LlcpTransport_Socket() argument
1215 || (pLlcpTransport == NULL)) in phFriNfc_LlcpTransport_Socket()
1234 status = phFriNfc_Llcp_GetLocalInfo(pLlcpTransport->pLlcp,&LlcpLinkParamInfo); in phFriNfc_LlcpTransport_Socket()
1245 …if(pLlcpTransport->pSocketTable[index].eSocket_State == phFriNfc_LlcpTransportSocket_eSocketDefaul… in phFriNfc_LlcpTransport_Socket()
1248 *pLlcpSocket = &pLlcpTransport->pSocketTable[index]; in phFriNfc_LlcpTransport_Socket()
1251 pLlcpTransport->pSocketTable[index].eSocket_Type = eType; in phFriNfc_LlcpTransport_Socket()
1252 pLlcpTransport->pSocketTable[index].pSocketErrCb = pErr_Cb; in phFriNfc_LlcpTransport_Socket()
1255 pLlcpTransport->pSocketTable[index].pContext = pContext; in phFriNfc_LlcpTransport_Socket()
1268 …memcpy(&pLlcpTransport->pSocketTable[index].sSocketOption, psOptions, sizeof(phFriNfc_LlcpTranspor… in phFriNfc_LlcpTransport_Socket()
1271 …pLlcpTransport->pSocketTable[index].localMIUX = (pLlcpTransport->pSocketTable[index].sSocketOption… in phFriNfc_LlcpTransport_Socket()
1272 …pLlcpTransport->pSocketTable[index].localRW = pLlcpTransport->pSocketTable[index].sSocketOption.… in phFriNfc_LlcpTransport_Socket()
1275 …pLlcpTransport->pSocketTable[index].bufferSendMaxLength = pLlcpTransport->pSocketTable[index].sS… in phFriNfc_LlcpTransport_Socket()
1276 …pLlcpTransport->pSocketTable[index].bufferRwMaxLength = pLlcpTransport->pSocketTable[index].sS… in phFriNfc_LlcpTransport_Socket()
1277 …pLlcpTransport->pSocketTable[index].bufferLinearLength = psWorkingBuffer->length - pLlcpTranspo… in phFriNfc_LlcpTransport_Socket()
1280 …if((pLlcpTransport->pSocketTable[index].bufferSendMaxLength + pLlcpTransport->pSocketTable[index].… in phFriNfc_LlcpTransport_Socket()
1281 …|| ((pLlcpTransport->pSocketTable[index].bufferLinearLength < PHFRINFC_LLCP_MIU_DEFAULT) && (pLlcp… in phFriNfc_LlcpTransport_Socket()
1288 for(cpt=0;cpt<pLlcpTransport->pSocketTable[index].localRW;cpt++) in phFriNfc_LlcpTransport_Socket()
1290 …pLlcpTransport->pSocketTable[index].sSocketRwBufferTable[cpt].buffer = psWorkingBuffer->buffer + (… in phFriNfc_LlcpTransport_Socket()
1291 pLlcpTransport->pSocketTable[index].sSocketRwBufferTable[cpt].length = 0; in phFriNfc_LlcpTransport_Socket()
1295 …pLlcpTransport->pSocketTable[index].sSocketSendBuffer.buffer = psWorkingBuffer->buffer + pLlcp… in phFriNfc_LlcpTransport_Socket()
1296 …pLlcpTransport->pSocketTable[index].sSocketSendBuffer.length = pLlcpTransport->pSocketTable[in… in phFriNfc_LlcpTransport_Socket()
1299 …pLlcpTransport->pSocketTable[index].sSocketLinearBuffer.buffer = psWorkingBuffer->buffer + pLlcp… in phFriNfc_LlcpTransport_Socket()
1300 …pLlcpTransport->pSocketTable[index].sSocketLinearBuffer.length = pLlcpTransport->pSocketTable[in… in phFriNfc_LlcpTransport_Socket()
1302 if(pLlcpTransport->pSocketTable[index].sSocketLinearBuffer.length != 0) in phFriNfc_LlcpTransport_Socket()
1305 … phFriNfc_Llcp_CyclicFifoInit(&pLlcpTransport->pSocketTable[index].sCyclicFifoBuffer, in phFriNfc_LlcpTransport_Socket()
1306 … pLlcpTransport->pSocketTable[index].sSocketLinearBuffer.buffer, in phFriNfc_LlcpTransport_Socket()
1307 … pLlcpTransport->pSocketTable[index].sSocketLinearBuffer.length); in phFriNfc_LlcpTransport_Socket()
1317 …pLlcpTransport->pSocketTable[index].localRW = psWorkingBuffer->length / (pLlcpTransport->pLlcp->sL… in phFriNfc_LlcpTransport_Socket()
1321 pLlcpTransport->pSocketTable[index].localRW = 0; in phFriNfc_LlcpTransport_Socket()
1324 if (pLlcpTransport->pSocketTable[index].localRW > PHFRINFC_LLCP_RW_MAX) in phFriNfc_LlcpTransport_Socket()
1326 pLlcpTransport->pSocketTable[index].localRW = PHFRINFC_LLCP_RW_MAX; in phFriNfc_LlcpTransport_Socket()
1330 for(cpt=0 ; cpt<pLlcpTransport->pSocketTable[index].localRW ; cpt++) in phFriNfc_LlcpTransport_Socket()
1332 …pLlcpTransport->pSocketTable[index].sSocketRwBufferTable[cpt].buffer = psWorkingBuffer->buffer + (… in phFriNfc_LlcpTransport_Socket()
1333 pLlcpTransport->pSocketTable[index].sSocketRwBufferTable[cpt].length = 0; in phFriNfc_LlcpTransport_Socket()
1337 pLlcpTransport->pSocketTable[index].indexRwRead = 0; in phFriNfc_LlcpTransport_Socket()
1338 pLlcpTransport->pSocketTable[index].indexRwWrite = 0; in phFriNfc_LlcpTransport_Socket()
1342 pLlcpTransport->pSocketTable[index].index = index; in phFriNfc_LlcpTransport_Socket()
1345 … pLlcpTransport->pSocketTable[index].eSocket_State = phFriNfc_LlcpTransportSocket_eSocketCreated; in phFriNfc_LlcpTransport_Socket()