Lines Matching refs:pLlcpSocket
133 …phFriNfc_LlcpTransport_Socket_t * pLlcpSocket = (phFriNfc_LlcpTransport_Socket_t*)pContext; in phFriNfc_LlcpTransport_Connectionless_SendTo_CB() local
138 pfSavedCallback = pLlcpSocket->pfSocketSend_Cb; in phFriNfc_LlcpTransport_Connectionless_SendTo_CB()
141 pLlcpSocket->pfSocketSend_Cb = NULL; in phFriNfc_LlcpTransport_Connectionless_SendTo_CB()
142 pfSavedCallback(pLlcpSocket->pSendContext, status); in phFriNfc_LlcpTransport_Connectionless_SendTo_CB()
146 …atic void phFriNfc_LlcpTransport_Connectionless_Abort(phFriNfc_LlcpTransport_Socket_t* pLlcpSocket) in phFriNfc_LlcpTransport_Connectionless_Abort() argument
148 if (pLlcpSocket->pfSocketSend_Cb != NULL) in phFriNfc_LlcpTransport_Connectionless_Abort()
150 pLlcpSocket->pfSocketSend_Cb(pLlcpSocket->pSendContext, NFCSTATUS_ABORTED); in phFriNfc_LlcpTransport_Connectionless_Abort()
151 pLlcpSocket->pSendContext = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
152 pLlcpSocket->pfSocketSend_Cb = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
154 if (pLlcpSocket->pfSocketRecvFrom_Cb != NULL) in phFriNfc_LlcpTransport_Connectionless_Abort()
156 pLlcpSocket->pfSocketRecvFrom_Cb(pLlcpSocket->pRecvContext, 0, NFCSTATUS_ABORTED); in phFriNfc_LlcpTransport_Connectionless_Abort()
157 pLlcpSocket->pRecvContext = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
158 pLlcpSocket->pfSocketRecvFrom_Cb = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
159 pLlcpSocket->pfSocketRecv_Cb = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
161 pLlcpSocket->pAcceptContext = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
162 pLlcpSocket->pfSocketAccept_Cb = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
163 pLlcpSocket->pListenContext = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
164 pLlcpSocket->pfSocketListen_Cb = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
165 pLlcpSocket->pConnectContext = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
166 pLlcpSocket->pfSocketConnect_Cb = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
167 pLlcpSocket->pDisconnectContext = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
168 pLlcpSocket->pfSocketDisconnect_Cb = NULL; in phFriNfc_LlcpTransport_Connectionless_Abort()
184 …CSTATUS phFriNfc_LlcpTransport_Connectionless_Close(phFriNfc_LlcpTransport_Socket_t* pLlcpSocket) in phFriNfc_LlcpTransport_Connectionless_Close() argument
187 pLlcpSocket->eSocket_State = phFriNfc_LlcpTransportSocket_eSocketDefault; in phFriNfc_LlcpTransport_Connectionless_Close()
188 pLlcpSocket->eSocket_Type = phFriNfc_LlcpTransport_eDefaultType; in phFriNfc_LlcpTransport_Connectionless_Close()
189 pLlcpSocket->pContext = NULL; in phFriNfc_LlcpTransport_Connectionless_Close()
190 pLlcpSocket->pSocketErrCb = NULL; in phFriNfc_LlcpTransport_Connectionless_Close()
191 pLlcpSocket->socket_sSap = PHFRINFC_LLCP_SAP_DEFAULT; in phFriNfc_LlcpTransport_Connectionless_Close()
192 pLlcpSocket->socket_dSap = PHFRINFC_LLCP_SAP_DEFAULT; in phFriNfc_LlcpTransport_Connectionless_Close()
193 pLlcpSocket->bSocketRecvPending = FALSE; in phFriNfc_LlcpTransport_Connectionless_Close()
194 pLlcpSocket->bSocketSendPending = FALSE; in phFriNfc_LlcpTransport_Connectionless_Close()
195 pLlcpSocket->bSocketListenPending = FALSE; in phFriNfc_LlcpTransport_Connectionless_Close()
196 pLlcpSocket->bSocketDiscPending = FALSE; in phFriNfc_LlcpTransport_Connectionless_Close()
197 pLlcpSocket->RemoteBusyConditionInfo = FALSE; in phFriNfc_LlcpTransport_Connectionless_Close()
198 pLlcpSocket->ReceiverBusyCondition = FALSE; in phFriNfc_LlcpTransport_Connectionless_Close()
199 pLlcpSocket->socket_VS = 0; in phFriNfc_LlcpTransport_Connectionless_Close()
200 pLlcpSocket->socket_VSA = 0; in phFriNfc_LlcpTransport_Connectionless_Close()
201 pLlcpSocket->socket_VR = 0; in phFriNfc_LlcpTransport_Connectionless_Close()
202 pLlcpSocket->socket_VRA = 0; in phFriNfc_LlcpTransport_Connectionless_Close()
204 phFriNfc_LlcpTransport_Connectionless_Abort(pLlcpSocket); in phFriNfc_LlcpTransport_Connectionless_Close()
206 memset(&pLlcpSocket->sSocketOption, 0x00, sizeof(phFriNfc_LlcpTransport_sSocketOptions_t)); in phFriNfc_LlcpTransport_Connectionless_Close()
208 if (pLlcpSocket->sServiceName.buffer != NULL) { in phFriNfc_LlcpTransport_Connectionless_Close()
209 phOsalNfc_FreeMemory(pLlcpSocket->sServiceName.buffer); in phFriNfc_LlcpTransport_Connectionless_Close()
211 pLlcpSocket->sServiceName.buffer = NULL; in phFriNfc_LlcpTransport_Connectionless_Close()
212 pLlcpSocket->sServiceName.length = 0; in phFriNfc_LlcpTransport_Connectionless_Close()
244 …riNfc_LlcpTransport_Connectionless_SendTo(phFriNfc_LlcpTransport_Socket_t *pLlcpSocket, in phFriNfc_LlcpTransport_Connectionless_SendTo() argument
253 pLlcpSocket->pfSocketSend_Cb = pSend_RspCb; in phFriNfc_LlcpTransport_Connectionless_SendTo()
254 pLlcpSocket->pSendContext = pContext; in phFriNfc_LlcpTransport_Connectionless_SendTo()
257 if(pLlcpSocket->psTransport->bSendPending == TRUE) in phFriNfc_LlcpTransport_Connectionless_SendTo()
260 pLlcpSocket->sSocketSendBuffer = *psBuffer; in phFriNfc_LlcpTransport_Connectionless_SendTo()
261 pLlcpSocket->socket_dSap = nSap; in phFriNfc_LlcpTransport_Connectionless_SendTo()
267 pLlcpSocket->sLlcpHeader.dsap = nSap; in phFriNfc_LlcpTransport_Connectionless_SendTo()
268 pLlcpSocket->sLlcpHeader.ptype = PHFRINFC_LLCP_PTYPE_UI; in phFriNfc_LlcpTransport_Connectionless_SendTo()
269 pLlcpSocket->sLlcpHeader.ssap = pLlcpSocket->socket_sSap; in phFriNfc_LlcpTransport_Connectionless_SendTo()
272 status = phFriNfc_LlcpTransport_LinkSend(pLlcpSocket->psTransport, in phFriNfc_LlcpTransport_Connectionless_SendTo()
273 &pLlcpSocket->sLlcpHeader, in phFriNfc_LlcpTransport_Connectionless_SendTo()
277 pLlcpSocket->index, in phFriNfc_LlcpTransport_Connectionless_SendTo()
278 pLlcpSocket); in phFriNfc_LlcpTransport_Connectionless_SendTo()
311 …cpTransport_Connectionless_RecvFrom(phFriNfc_LlcpTransport_Socket_t *pLlcpSocket, in phLibNfc_LlcpTransport_Connectionless_RecvFrom() argument
320 if(pLlcpSocket->bSocketRecvPending) in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
327 if(pLlcpSocket->indexRwRead != pLlcpSocket->indexRwWrite) in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
329 readIndex = pLlcpSocket->indexRwRead % pLlcpSocket->localRW; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
332 ssap = pLlcpSocket->sSocketRwBufferTable[readIndex].buffer[0]; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
334 pLlcpSocket->sSocketRwBufferTable[readIndex].buffer + 1, in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
335 pLlcpSocket->sSocketRwBufferTable[readIndex].length); in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
336 psBuffer->length = pLlcpSocket->sSocketRwBufferTable[readIndex].length; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
339 pLlcpSocket->sSocketRwBufferTable[readIndex].length = 0; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
342 pLlcpSocket->indexRwRead++; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
353 pLlcpSocket->pfSocketRecvFrom_Cb = pRecv_Cb; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
354 pLlcpSocket->pRecvContext = pContext; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
357 pLlcpSocket->sSocketRecvBuffer = psBuffer; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
358 pLlcpSocket->receivedLength = &psBuffer->length; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()
361 pLlcpSocket->bSocketRecvPending = TRUE; in phLibNfc_LlcpTransport_Connectionless_RecvFrom()