Lines Matching refs:pSocket
36 …iNfc_LlcpTransport_Connectionless_HandlePendingOperations(phFriNfc_LlcpTransport_Socket_t *pSocket) in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations() argument
41 if ((pSocket->pfSocketSend_Cb != NULL) && in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
42 (pSocket->psTransport->bSendPending == FALSE)) in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
45 pSocket->sLlcpHeader.dsap = pSocket->socket_dSap; in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
46 pSocket->sLlcpHeader.ptype = PHFRINFC_LLCP_PTYPE_UI; in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
47 pSocket->sLlcpHeader.ssap = pSocket->socket_sSap; in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
50 status = phFriNfc_LlcpTransport_LinkSend(pSocket->psTransport, in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
51 &pSocket->sLlcpHeader, in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
53 &pSocket->sSocketSendBuffer, in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
55 pSocket->index, in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
56 pSocket); in phFriNfc_LlcpTransport_Connectionless_HandlePendingOperations()
73 phFriNfc_LlcpTransport_Socket_t * pSocket = NULL; in Handle_Connectionless_IncommingFrame() local
83 pSocket = &pLlcpTransport->pSocketTable[i]; in Handle_Connectionless_IncommingFrame()
86 if (pSocket->bSocketRecvPending == TRUE) in Handle_Connectionless_IncommingFrame()
89 pSocket->bSocketRecvPending = FALSE; in Handle_Connectionless_IncommingFrame()
92 memcpy(pSocket->sSocketRecvBuffer->buffer, psData->buffer, psData->length); in Handle_Connectionless_IncommingFrame()
95 *pSocket->receivedLength = psData->length; in Handle_Connectionless_IncommingFrame()
98 pSocket->pfSocketRecvFrom_Cb(pSocket->pRecvContext, ssap, NFCSTATUS_SUCCESS); in Handle_Connectionless_IncommingFrame()
99 pSocket->pfSocketRecvFrom_Cb = NULL; in Handle_Connectionless_IncommingFrame()
104 if((pSocket->indexRwWrite - pSocket->indexRwRead) < pSocket->localRW) in Handle_Connectionless_IncommingFrame()
106 writeIndex = pSocket->indexRwWrite % pSocket->localRW; in Handle_Connectionless_IncommingFrame()
108 pSocket->sSocketRwBufferTable[writeIndex].buffer[0] = ssap; in Handle_Connectionless_IncommingFrame()
110 memcpy(pSocket->sSocketRwBufferTable[writeIndex].buffer + 1, in Handle_Connectionless_IncommingFrame()
113 pSocket->sSocketRwBufferTable[writeIndex].length = psData->length; in Handle_Connectionless_IncommingFrame()
116 pSocket->indexRwWrite++; in Handle_Connectionless_IncommingFrame()