Lines Matching refs:gpphLibContext
88 if((NULL == gpphLibContext)|| in phLibNfc_RemoteDev_Receive()
89 (gpphLibContext->LibNfcState.cur_state == eLibNfcHalStateShutdown)) in phLibNfc_RemoteDev_Receive()
93 else if (gpphLibContext->LibNfcState.cur_state == eLibNfcHalStateRelease) in phLibNfc_RemoteDev_Receive()
103 else if(gpphLibContext->LibNfcState.next_state == eLibNfcHalStateShutdown) in phLibNfc_RemoteDev_Receive()
107 else if((TRUE == gpphLibContext->status.GenCb_pending_status) in phLibNfc_RemoteDev_Receive()
108 ||(NULL!=gpphLibContext->sNfcIp_Context.pClientNfcIpRxCb) in phLibNfc_RemoteDev_Receive()
115 else if(gpphLibContext->sNfcIp_Context.Rem_Initiator_Handle != hRemoteDevice) in phLibNfc_RemoteDev_Receive()
120 else if ((LLCP_STATE_RESET_INIT != gpphLibContext->llcp_cntx.sLlcpContext.state) in phLibNfc_RemoteDev_Receive()
121 && (LLCP_STATE_CHECKED != gpphLibContext->llcp_cntx.sLlcpContext.state)) in phLibNfc_RemoteDev_Receive()
129 gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Receive()
131 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCb = NULL; in phLibNfc_RemoteDev_Receive()
139 gpphLibContext->psHwReference, in phLibNfc_RemoteDev_Receive()
140 (phHal4Nfc_TransactInfo_t*)gpphLibContext->psTransInfo, in phLibNfc_RemoteDev_Receive()
143 (void *)gpphLibContext in phLibNfc_RemoteDev_Receive()
149 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCb= pReceiveRspCb; in phLibNfc_RemoteDev_Receive()
150 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCntx = pContext; in phLibNfc_RemoteDev_Receive()
151 gpphLibContext->status.GenCb_pending_status=TRUE; in phLibNfc_RemoteDev_Receive()
152 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateTransaction; in phLibNfc_RemoteDev_Receive()
176 if(pLibNfc_Ctxt != gpphLibContext) in phLibNfc_RemoteDev_Receive_Cb()
182 pClientCb = gpphLibContext->sNfcIp_Context.pClientNfcIpRxCb; in phLibNfc_RemoteDev_Receive_Cb()
183 pUpperLayerContext = gpphLibContext->sNfcIp_Context.pClientNfcIpRxCntx; in phLibNfc_RemoteDev_Receive_Cb()
185 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCb = NULL; in phLibNfc_RemoteDev_Receive_Cb()
186 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCntx = NULL; in phLibNfc_RemoteDev_Receive_Cb()
187 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_RemoteDev_Receive_Cb()
188 if(eLibNfcHalStateShutdown == gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Receive_Cb()
194 else if(eLibNfcHalStateRelease == gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Receive_Cb()
213 phLibNfc_UpdateCurState(status,gpphLibContext); in phLibNfc_RemoteDev_Receive_Cb()
238 if((NULL == gpphLibContext)|| in phLibNfc_RemoteDev_Send()
239 (gpphLibContext->LibNfcState.cur_state == eLibNfcHalStateShutdown)) in phLibNfc_RemoteDev_Send()
243 else if (gpphLibContext->LibNfcState.cur_state == eLibNfcHalStateRelease) in phLibNfc_RemoteDev_Send()
257 else if(gpphLibContext->LibNfcState.next_state == eLibNfcHalStateShutdown) in phLibNfc_RemoteDev_Send()
261 else if((TRUE == gpphLibContext->status.GenCb_pending_status) in phLibNfc_RemoteDev_Send()
262 ||(NULL!=gpphLibContext->sNfcIp_Context.pClientNfcIpRxCb) in phLibNfc_RemoteDev_Send()
270 else if(gpphLibContext->sNfcIp_Context.Rem_Initiator_Handle != hRemoteDevice) in phLibNfc_RemoteDev_Send()
274 else if((NULL!=gpphLibContext->sNfcIp_Context.pClientNfcIpTxCb)) in phLibNfc_RemoteDev_Send()
279 else if ((LLCP_STATE_RESET_INIT != gpphLibContext->llcp_cntx.sLlcpContext.state) in phLibNfc_RemoteDev_Send()
280 && (LLCP_STATE_CHECKED != gpphLibContext->llcp_cntx.sLlcpContext.state)) in phLibNfc_RemoteDev_Send()
288 gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Send()
290 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCb = NULL; in phLibNfc_RemoteDev_Send()
295 if(gpphLibContext->psTransInfo!=NULL) in phLibNfc_RemoteDev_Send()
297 (void)memset(gpphLibContext->psTransInfo, in phLibNfc_RemoteDev_Send()
301 gpphLibContext->psTransInfo->addr =UNKNOWN_BLOCK_ADDRESS; in phLibNfc_RemoteDev_Send()
303 gpphLibContext->psTransInfo->sSendData.buffer = in phLibNfc_RemoteDev_Send()
306 gpphLibContext->psTransInfo->sSendData.length = in phLibNfc_RemoteDev_Send()
310 gpphLibContext->sNfcIp_Context.TransactInfoRole.remotePCDType = in phLibNfc_RemoteDev_Send()
315 gpphLibContext->psHwReference, in phLibNfc_RemoteDev_Send()
316 &(gpphLibContext->sNfcIp_Context.TransactInfoRole), in phLibNfc_RemoteDev_Send()
317 gpphLibContext->psTransInfo->sSendData, in phLibNfc_RemoteDev_Send()
320 (void *)gpphLibContext in phLibNfc_RemoteDev_Send()
327 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCb= pSendRspCb; in phLibNfc_RemoteDev_Send()
328 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCntx = pContext; in phLibNfc_RemoteDev_Send()
329 gpphLibContext->status.GenCb_pending_status=TRUE; in phLibNfc_RemoteDev_Send()
330 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateTransaction; in phLibNfc_RemoteDev_Send()
353 if(pLibNfc_Ctxt != gpphLibContext) in phLibNfc_RemoteDev_Send_Cb()
359 if(eLibNfcHalStateShutdown == gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Send_Cb()
365 else if(eLibNfcHalStateRelease == gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Send_Cb()
371 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_RemoteDev_Send_Cb()
385 phLibNfc_UpdateCurState(status,gpphLibContext); in phLibNfc_RemoteDev_Send_Cb()
387 pClientCb = gpphLibContext->sNfcIp_Context.pClientNfcIpTxCb; in phLibNfc_RemoteDev_Send_Cb()
388 pUpperLayerContext = gpphLibContext->sNfcIp_Context.pClientNfcIpTxCntx; in phLibNfc_RemoteDev_Send_Cb()
390 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCb = NULL; in phLibNfc_RemoteDev_Send_Cb()
391 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCntx = NULL; in phLibNfc_RemoteDev_Send_Cb()