Lines Matching refs:gpphLibContext
127 pClientCb =gpphLibContext->CBInfo.pClientNtfRegRespCB; in phLibNfc_NotificationRegister_Resp_Cb()
152 if((TRUE == gpphLibContext->RegNtfType.MifareUL)&& (sak_byte==0x00)) in phLibNfc_NotificationRegister_Resp_Cb()
155 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
157 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
158 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
159 gpphLibContext->Discov_handle[DeviceIndx1] = in phLibNfc_NotificationRegister_Resp_Cb()
160 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
165 if((TRUE == gpphLibContext->RegNtfType.MifareStd)&& in phLibNfc_NotificationRegister_Resp_Cb()
170 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
172 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
173 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
174 gpphLibContext->Discov_handle[DeviceIndx1]= in phLibNfc_NotificationRegister_Resp_Cb()
175 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
184 if(TRUE == gpphLibContext->RegNtfType.ISO14443_4A) in phLibNfc_NotificationRegister_Resp_Cb()
187 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
189 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
190 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
191 gpphLibContext->Discov_handle[DeviceIndx1] = in phLibNfc_NotificationRegister_Resp_Cb()
192 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
200 if(TRUE == gpphLibContext->RegNtfType.MifareUL) in phLibNfc_NotificationRegister_Resp_Cb()
203 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
205 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
206 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
207 gpphLibContext->Discov_handle[DeviceIndx1] = in phLibNfc_NotificationRegister_Resp_Cb()
208 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
216 if(TRUE == gpphLibContext->RegNtfType.ISO14443_4B) in phLibNfc_NotificationRegister_Resp_Cb()
219 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
221 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
222 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
223 gpphLibContext->Discov_handle[DeviceIndx1] = in phLibNfc_NotificationRegister_Resp_Cb()
224 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
232 if(TRUE == gpphLibContext->RegNtfType.Felica) in phLibNfc_NotificationRegister_Resp_Cb()
235 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
237 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
238 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
239 gpphLibContext->Discov_handle[DeviceIndx1] = in phLibNfc_NotificationRegister_Resp_Cb()
240 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
248 if(TRUE == gpphLibContext->RegNtfType.Jewel) in phLibNfc_NotificationRegister_Resp_Cb()
251 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
253 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
254 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
255 gpphLibContext->Discov_handle[DeviceIndx1] = in phLibNfc_NotificationRegister_Resp_Cb()
256 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
265 if(TRUE == gpphLibContext->RegNtfType.ISO15693) in phLibNfc_NotificationRegister_Resp_Cb()
268 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
270 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
271 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
272 gpphLibContext->Discov_handle[DeviceIndx1] = in phLibNfc_NotificationRegister_Resp_Cb()
273 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
281 if(TRUE == gpphLibContext->RegNtfType.NFC) in phLibNfc_NotificationRegister_Resp_Cb()
283 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
285 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
286 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
287 gpphLibContext->Discov_handle[DeviceIndx1] = in phLibNfc_NotificationRegister_Resp_Cb()
288 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
296 if(TRUE == gpphLibContext->RegNtfType.NFC) in phLibNfc_NotificationRegister_Resp_Cb()
298 gpphLibContext->LibNfcState.cur_state=eLibNfcHalStateConnect; in phLibNfc_NotificationRegister_Resp_Cb()
299 gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo= in phLibNfc_NotificationRegister_Resp_Cb()
301 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev = in phLibNfc_NotificationRegister_Resp_Cb()
302 (phLibNfc_Handle)gpphLibContext->psRemoteDevList[DeviceIndx1].psRemoteDevInfo; in phLibNfc_NotificationRegister_Resp_Cb()
303 gpphLibContext->sNfcIp_Context.Rem_Initiator_Handle= in phLibNfc_NotificationRegister_Resp_Cb()
304 gpphLibContext->psRemoteDevList[DeviceIndx1].hTargetDev; in phLibNfc_NotificationRegister_Resp_Cb()
321 gpphLibContext->dev_cnt = tag_disc_flg; in phLibNfc_NotificationRegister_Resp_Cb()
324 if((gpphLibContext->dev_cnt > 1)&&( in phLibNfc_NotificationRegister_Resp_Cb()
339 (void*)gpphLibContext->CBInfo.pClientNtfRegRespCntx, in phLibNfc_NotificationRegister_Resp_Cb()
340 gpphLibContext->psRemoteDevList, in phLibNfc_NotificationRegister_Resp_Cb()
341 gpphLibContext->dev_cnt, in phLibNfc_NotificationRegister_Resp_Cb()
352 gpphLibContext->LibNfcState.cur_state=eLibNfcHalStateRelease; in phLibNfc_NotificationRegister_Resp_Cb()
353 pClientCb((void*)gpphLibContext->CBInfo.pClientNtfRegRespCntx, in phLibNfc_NotificationRegister_Resp_Cb()
362 RetVal = phHal4Nfc_ConfigureDiscovery ( gpphLibContext->psHwReference, in phLibNfc_NotificationRegister_Resp_Cb()
364 &(gpphLibContext->sADDconfig), in phLibNfc_NotificationRegister_Resp_Cb()
366 gpphLibContext); in phLibNfc_NotificationRegister_Resp_Cb()
378 pClientCb(gpphLibContext->CBInfo.pClientNtfRegRespCntx, in phLibNfc_NotificationRegister_Resp_Cb()
407 else if((NULL == gpphLibContext) || in phLibNfc_RemoteDev_NtfRegister()
408 (gpphLibContext->LibNfcState.cur_state in phLibNfc_RemoteDev_NtfRegister()
413 else if(gpphLibContext->LibNfcState.next_state in phLibNfc_RemoteDev_NtfRegister()
425 (void) memcpy(&(gpphLibContext->RegNtfType),pRegistryInfo, in phLibNfc_RemoteDev_NtfRegister()
431 gpphLibContext->psHwReference, in phLibNfc_RemoteDev_NtfRegister()
434 (void*)gpphLibContext in phLibNfc_RemoteDev_NtfRegister()
438 gpphLibContext->psHwReference, in phLibNfc_RemoteDev_NtfRegister()
441 (void*)gpphLibContext in phLibNfc_RemoteDev_NtfRegister()
443 gpphLibContext->CBInfo.pClientNtfRegRespCB = pNotificationHandler; in phLibNfc_RemoteDev_NtfRegister()
444 gpphLibContext->CBInfo.pClientNtfRegRespCntx = pContext; in phLibNfc_RemoteDev_NtfRegister()
456 if((NULL == gpphLibContext) || in phLibNfc_RemoteDev_NtfUnregister()
457 (gpphLibContext->LibNfcState.cur_state in phLibNfc_RemoteDev_NtfUnregister()
463 else if(gpphLibContext->LibNfcState.next_state in phLibNfc_RemoteDev_NtfUnregister()
473 gpphLibContext->psHwReference, in phLibNfc_RemoteDev_NtfUnregister()
475 gpphLibContext); in phLibNfc_RemoteDev_NtfUnregister()
478 gpphLibContext->psHwReference, in phLibNfc_RemoteDev_NtfUnregister()
480 gpphLibContext); in phLibNfc_RemoteDev_NtfUnregister()
482 gpphLibContext->CBInfo.pClientNtfRegRespCB = NULL; in phLibNfc_RemoteDev_NtfUnregister()
483 gpphLibContext->CBInfo.pClientNtfRegRespCntx =NULL; in phLibNfc_RemoteDev_NtfUnregister()
501 if ((NULL == gpphLibContext) in phLibNfc_RemoteDev_ReConnect()
503 gpphLibContext->LibNfcState.cur_state)) in phLibNfc_RemoteDev_ReConnect()
515 else if (gpphLibContext->LibNfcState.next_state in phLibNfc_RemoteDev_ReConnect()
520 else if (0 == gpphLibContext->Connected_handle) in phLibNfc_RemoteDev_ReConnect()
524 else if ((gpphLibContext->Discov_handle[0] != hRemoteDevice) in phLibNfc_RemoteDev_ReConnect()
525 && (gpphLibContext->Discov_handle[1] != hRemoteDevice) in phLibNfc_RemoteDev_ReConnect()
526 && (gpphLibContext->Discov_handle[2] != hRemoteDevice) in phLibNfc_RemoteDev_ReConnect()
527 && (gpphLibContext->Discov_handle[3] != hRemoteDevice) in phLibNfc_RemoteDev_ReConnect()
528 && (gpphLibContext->Discov_handle[4] != hRemoteDevice) in phLibNfc_RemoteDev_ReConnect()
529 && (gpphLibContext->Discov_handle[5] != hRemoteDevice) in phLibNfc_RemoteDev_ReConnect()
530 && (gpphLibContext->Discov_handle[6] != hRemoteDevice) in phLibNfc_RemoteDev_ReConnect()
531 && (gpphLibContext->Discov_handle[7] != hRemoteDevice) in phLibNfc_RemoteDev_ReConnect()
532 && (gpphLibContext->Discov_handle[8] != hRemoteDevice) in phLibNfc_RemoteDev_ReConnect()
533 && (gpphLibContext->Discov_handle[9] != hRemoteDevice)) in phLibNfc_RemoteDev_ReConnect()
542 ret_val = phHal4Nfc_Connect (gpphLibContext->psHwReference, in phLibNfc_RemoteDev_ReConnect()
545 (void *)gpphLibContext); in phLibNfc_RemoteDev_ReConnect()
552 gpphLibContext->CBInfo.pClientConnectCb = pNotifyReConnect_RspCb; in phLibNfc_RemoteDev_ReConnect()
553 gpphLibContext->CBInfo.pClientConCntx = pContext; in phLibNfc_RemoteDev_ReConnect()
554 gpphLibContext->status.GenCb_pending_status = TRUE; in phLibNfc_RemoteDev_ReConnect()
555 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateConnect; in phLibNfc_RemoteDev_ReConnect()
557 gpphLibContext->Prev_Connected_handle = gpphLibContext->Connected_handle; in phLibNfc_RemoteDev_ReConnect()
559 gpphLibContext->Connected_handle = hRemoteDevice; in phLibNfc_RemoteDev_ReConnect()
591 if((NULL == gpphLibContext) || in phLibNfc_RemoteDev_Connect()
592 (gpphLibContext->LibNfcState.cur_state == eLibNfcHalStateShutdown)) in phLibNfc_RemoteDev_Connect()
603 else if(gpphLibContext->LibNfcState.next_state in phLibNfc_RemoteDev_Connect()
608 else if((gpphLibContext->Discov_handle[0] != hRemoteDevice)&& in phLibNfc_RemoteDev_Connect()
609 (gpphLibContext->Discov_handle[1] != hRemoteDevice)&& in phLibNfc_RemoteDev_Connect()
610 (gpphLibContext->Discov_handle[2] != hRemoteDevice)&& in phLibNfc_RemoteDev_Connect()
611 (gpphLibContext->Discov_handle[3] != hRemoteDevice)&& in phLibNfc_RemoteDev_Connect()
612 (gpphLibContext->Discov_handle[4] != hRemoteDevice)&& in phLibNfc_RemoteDev_Connect()
613 (gpphLibContext->Discov_handle[5] != hRemoteDevice)&& in phLibNfc_RemoteDev_Connect()
614 (gpphLibContext->Discov_handle[6] != hRemoteDevice)&& in phLibNfc_RemoteDev_Connect()
615 (gpphLibContext->Discov_handle[7] != hRemoteDevice)&& in phLibNfc_RemoteDev_Connect()
616 (gpphLibContext->Discov_handle[8] != hRemoteDevice)&& in phLibNfc_RemoteDev_Connect()
617 (gpphLibContext->Discov_handle[9] != hRemoteDevice)) in phLibNfc_RemoteDev_Connect()
621 else if ((hRemoteDevice != gpphLibContext->Connected_handle) in phLibNfc_RemoteDev_Connect()
622 && (0 != gpphLibContext->Connected_handle)) in phLibNfc_RemoteDev_Connect()
631 RetVal = phHal4Nfc_Connect(gpphLibContext->psHwReference, in phLibNfc_RemoteDev_Connect()
634 (void* )gpphLibContext); in phLibNfc_RemoteDev_Connect()
640 gpphLibContext->CBInfo.pClientConnectCb = pNotifyConnect_RspCb; in phLibNfc_RemoteDev_Connect()
641 gpphLibContext->CBInfo.pClientConCntx = pContext; in phLibNfc_RemoteDev_Connect()
642 gpphLibContext->status.GenCb_pending_status=TRUE; in phLibNfc_RemoteDev_Connect()
643 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateConnect; in phLibNfc_RemoteDev_Connect()
644 gpphLibContext->Prev_Connected_handle = gpphLibContext->Connected_handle; in phLibNfc_RemoteDev_Connect()
645 gpphLibContext->Connected_handle = hRemoteDevice; in phLibNfc_RemoteDev_Connect()
668 if((phLibNfc_LibContext_t *)context == gpphLibContext) in phLibNfc_config_discovery_con_failure_cb()
671 gpphLibContext->CBInfo.pClientConnectCb; in phLibNfc_config_discovery_con_failure_cb()
673 if(eLibNfcHalStateShutdown == gpphLibContext->LibNfcState.next_state) in phLibNfc_config_discovery_con_failure_cb()
681 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_config_discovery_con_failure_cb()
682 gpphLibContext->status.DiscEnbl_status = FALSE; in phLibNfc_config_discovery_con_failure_cb()
685 phLibNfc_UpdateCurState (status,gpphLibContext); in phLibNfc_config_discovery_con_failure_cb()
687 if(gpphLibContext->status.Discovery_pending_status == TRUE) in phLibNfc_config_discovery_con_failure_cb()
693 gpphLibContext->status.Discovery_pending_status = FALSE; in phLibNfc_config_discovery_con_failure_cb()
695 gpphLibContext->psHwReference, in phLibNfc_config_discovery_con_failure_cb()
696 gpphLibContext->eLibNfcCfgMode, in phLibNfc_config_discovery_con_failure_cb()
697 &gpphLibContext->sADDconfig, in phLibNfc_config_discovery_con_failure_cb()
700 (void *)gpphLibContext); in phLibNfc_config_discovery_con_failure_cb()
703 (void)phLibNfc_UpdateNextState(gpphLibContext, in phLibNfc_config_discovery_con_failure_cb()
705 gpphLibContext->status.GenCb_pending_status = TRUE; in phLibNfc_config_discovery_con_failure_cb()
706 gpphLibContext->status.DiscEnbl_status = TRUE; in phLibNfc_config_discovery_con_failure_cb()
715 gpphLibContext->CBInfo.pClientConnectCb = NULL; in phLibNfc_config_discovery_con_failure_cb()
717 ps_client_con_cb (gpphLibContext->CBInfo.pClientConCntx, in phLibNfc_config_discovery_con_failure_cb()
741 if((phLibNfc_LibContext_t *)pContext == gpphLibContext) in phLibNfc_RemoteDev_Connect_Cb()
743 gpphLibContext->LastTrancvSuccess = FALSE; in phLibNfc_RemoteDev_Connect_Cb()
746 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_RemoteDev_Connect_Cb()
750 if((eLibNfcHalStateShutdown == gpphLibContext->LibNfcState.next_state)) in phLibNfc_RemoteDev_Connect_Cb()
759 gpphLibContext->Connected_handle = (uintptr_t)pRmtdev_info; in phLibNfc_RemoteDev_Connect_Cb()
761 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateConnect; in phLibNfc_RemoteDev_Connect_Cb()
769 gpphLibContext->Connected_handle = gpphLibContext->Prev_Connected_handle ; in phLibNfc_RemoteDev_Connect_Cb()
771 gpphLibContext->ndef_cntx.is_ndef = CHK_NDEF_NOT_DONE; in phLibNfc_RemoteDev_Connect_Cb()
775 gpphLibContext->CBInfo.pClientConnectCb( in phLibNfc_RemoteDev_Connect_Cb()
776 gpphLibContext->CBInfo.pClientConCntx, in phLibNfc_RemoteDev_Connect_Cb()
801 if((NULL == gpphLibContext) || in phLibNfc_RemoteDev_Disconnect()
802 (gpphLibContext->LibNfcState.cur_state in phLibNfc_RemoteDev_Disconnect()
814 else if(gpphLibContext->LibNfcState.next_state in phLibNfc_RemoteDev_Disconnect()
819 else if(gpphLibContext->Connected_handle==0) in phLibNfc_RemoteDev_Disconnect()
824 else if(hRemoteDevice != gpphLibContext->Connected_handle ) in phLibNfc_RemoteDev_Disconnect()
830 if((eLibNfcHalStateRelease == gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Disconnect()
831 ||((gpphLibContext->sSeContext.eActivatedMode == phLibNfc_SE_ActModeWired)&& in phLibNfc_RemoteDev_Disconnect()
833 ||((gpphLibContext->sSeContext.eActivatedMode != phLibNfc_SE_ActModeWired)&& in phLibNfc_RemoteDev_Disconnect()
839 else if(eLibNfcHalStateTransaction == gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Disconnect()
847 gpphLibContext->ReleaseType = ReleaseType; in phLibNfc_RemoteDev_Disconnect()
849 RetVal = phHal4Nfc_Disconnect(gpphLibContext->psHwReference, in phLibNfc_RemoteDev_Disconnect()
851 gpphLibContext->ReleaseType, in phLibNfc_RemoteDev_Disconnect()
854 (void *)gpphLibContext); in phLibNfc_RemoteDev_Disconnect()
858 gpphLibContext->CBInfo.pClientDisConnectCb = pDscntCallback; in phLibNfc_RemoteDev_Disconnect()
859 gpphLibContext->CBInfo.pClientDConCntx = pContext; in phLibNfc_RemoteDev_Disconnect()
861 gpphLibContext->status.GenCb_pending_status=TRUE; in phLibNfc_RemoteDev_Disconnect()
862 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateRelease; in phLibNfc_RemoteDev_Disconnect()
889 pUpper_NtfCb = gpphLibContext->CBInfo.pClientDisConnectCb; in phLibNfc_RemoteDev_Disconnect_cb()
890 pUpper_Context = gpphLibContext->CBInfo.pClientDConCntx; in phLibNfc_RemoteDev_Disconnect_cb()
893 if((phLibNfc_LibContext_t *)context != gpphLibContext) in phLibNfc_RemoteDev_Disconnect_cb()
901 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_RemoteDev_Disconnect_cb()
902 gpphLibContext->CBInfo.pClientDisConnectCb = NULL; in phLibNfc_RemoteDev_Disconnect_cb()
903 gpphLibContext->CBInfo.pClientDConCntx = NULL; in phLibNfc_RemoteDev_Disconnect_cb()
905 gpphLibContext->ndef_cntx.is_ndef = CHK_NDEF_NOT_DONE; in phLibNfc_RemoteDev_Disconnect_cb()
906 gpphLibContext->LastTrancvSuccess = FALSE; in phLibNfc_RemoteDev_Disconnect_cb()
908 gpphLibContext->Connected_handle=0x0000; in phLibNfc_RemoteDev_Disconnect_cb()
910 gpphLibContext->Prev_Connected_handle = 0x0000; in phLibNfc_RemoteDev_Disconnect_cb()
912 if(gpphLibContext->sSeContext.eActivatedMode == phLibNfc_SE_ActModeWired) in phLibNfc_RemoteDev_Disconnect_cb()
914 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeDefault; in phLibNfc_RemoteDev_Disconnect_cb()
916 if(NULL != gpphLibContext->psBufferedAuth) in phLibNfc_RemoteDev_Disconnect_cb()
918 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer) in phLibNfc_RemoteDev_Disconnect_cb()
921 gpphLibContext->psBufferedAuth->sRecvData.buffer); in phLibNfc_RemoteDev_Disconnect_cb()
923 if(NULL != gpphLibContext->psBufferedAuth->sSendData.buffer) in phLibNfc_RemoteDev_Disconnect_cb()
926 gpphLibContext->psBufferedAuth->sSendData.buffer); in phLibNfc_RemoteDev_Disconnect_cb()
928 phOsalNfc_FreeMemory(gpphLibContext->psBufferedAuth); in phLibNfc_RemoteDev_Disconnect_cb()
929 gpphLibContext->psBufferedAuth = NULL; in phLibNfc_RemoteDev_Disconnect_cb()
933 if(eLibNfcHalStateShutdown == gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Disconnect_cb()
942 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateRelease; in phLibNfc_RemoteDev_Disconnect_cb()
970 if((NULL == gpphLibContext) || in phLibNfc_RemoteDev_Transceive()
971 (gpphLibContext->LibNfcState.cur_state in phLibNfc_RemoteDev_Transceive()
986 else if(gpphLibContext->LibNfcState.next_state in phLibNfc_RemoteDev_Transceive()
991 else if(gpphLibContext->Connected_handle==0) in phLibNfc_RemoteDev_Transceive()
995 else if(gpphLibContext->Connected_handle!= hRemoteDevice ) in phLibNfc_RemoteDev_Transceive()
1001 gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Transceive()
1008 else if ((LLCP_STATE_RESET_INIT != gpphLibContext->llcp_cntx.sLlcpContext.state) in phLibNfc_RemoteDev_Transceive()
1009 && (LLCP_STATE_CHECKED != gpphLibContext->llcp_cntx.sLlcpContext.state)) in phLibNfc_RemoteDev_Transceive()
1016 gpphLibContext->ndef_cntx.eLast_Call = RawTrans; in phLibNfc_RemoteDev_Transceive()
1017 (void)memcpy((void *)(gpphLibContext->psTransInfo), in phLibNfc_RemoteDev_Transceive()
1024 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareRaw ) && in phLibNfc_RemoteDev_Transceive()
1025 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareAuthentA ) && in phLibNfc_RemoteDev_Transceive()
1026 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareAuthentB ) && in phLibNfc_RemoteDev_Transceive()
1027 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareRead16 ) && in phLibNfc_RemoteDev_Transceive()
1028 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareRead ) && in phLibNfc_RemoteDev_Transceive()
1029 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareWrite16 ) && in phLibNfc_RemoteDev_Transceive()
1030 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareWrite4 ) && in phLibNfc_RemoteDev_Transceive()
1031 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareDec ) && in phLibNfc_RemoteDev_Transceive()
1032 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareTransfer ) && in phLibNfc_RemoteDev_Transceive()
1033 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareRestore ) && in phLibNfc_RemoteDev_Transceive()
1034 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareReadSector ) && in phLibNfc_RemoteDev_Transceive()
1035 ( gpphLibContext->psTransInfo->cmd.MfCmd != phHal_eMifareWriteSector )) in phLibNfc_RemoteDev_Transceive()
1040 gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Transceive()
1046 (phHal_eMifareAuthentA == gpphLibContext->psTransInfo->cmd.MfCmd)) in phLibNfc_RemoteDev_Transceive()
1048 if(NULL != gpphLibContext->psBufferedAuth) in phLibNfc_RemoteDev_Transceive()
1050 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer) in phLibNfc_RemoteDev_Transceive()
1053 gpphLibContext->psBufferedAuth->sRecvData.buffer); in phLibNfc_RemoteDev_Transceive()
1055 if(NULL != gpphLibContext->psBufferedAuth->sSendData.buffer) in phLibNfc_RemoteDev_Transceive()
1058 gpphLibContext->psBufferedAuth->sSendData.buffer); in phLibNfc_RemoteDev_Transceive()
1060 phOsalNfc_FreeMemory(gpphLibContext->psBufferedAuth); in phLibNfc_RemoteDev_Transceive()
1062 gpphLibContext->psBufferedAuth in phLibNfc_RemoteDev_Transceive()
1065 gpphLibContext->psBufferedAuth->addr = psTransceiveInfo->addr; in phLibNfc_RemoteDev_Transceive()
1066 gpphLibContext->psBufferedAuth->cmd = psTransceiveInfo->cmd; in phLibNfc_RemoteDev_Transceive()
1067 gpphLibContext->psBufferedAuth->sSendData.length in phLibNfc_RemoteDev_Transceive()
1069 gpphLibContext->psBufferedAuth->sRecvData.length in phLibNfc_RemoteDev_Transceive()
1071 gpphLibContext->psBufferedAuth->sSendData.buffer in phLibNfc_RemoteDev_Transceive()
1074 gpphLibContext->psTransInfo->sSendData.length); in phLibNfc_RemoteDev_Transceive()
1077 (gpphLibContext->psBufferedAuth->sSendData.buffer), in phLibNfc_RemoteDev_Transceive()
1081 gpphLibContext->psBufferedAuth->sRecvData.buffer in phLibNfc_RemoteDev_Transceive()
1084 gpphLibContext->psTransInfo->sRecvData.length); in phLibNfc_RemoteDev_Transceive()
1087 RetVal = phHal4Nfc_Transceive( gpphLibContext->psHwReference, in phLibNfc_RemoteDev_Transceive()
1088 (phHal_sTransceiveInfo_t*)gpphLibContext->psTransInfo, in phLibNfc_RemoteDev_Transceive()
1092 (void* )gpphLibContext); in phLibNfc_RemoteDev_Transceive()
1096 gpphLibContext->CBInfo.pClientTransceiveCb = pTransceive_RspCb; in phLibNfc_RemoteDev_Transceive()
1097 gpphLibContext->CBInfo.pClientTranseCntx = pContext; in phLibNfc_RemoteDev_Transceive()
1099 gpphLibContext->status.GenCb_pending_status = TRUE; in phLibNfc_RemoteDev_Transceive()
1103 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateTransaction; in phLibNfc_RemoteDev_Transceive()
1108 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_RemoteDev_Transceive()
1128 gpphLibContext->CBInfo.pClientTransceiveCb; in phLibNfc_RemoteDev_Transceive_Cb()
1131 if((phLibNfc_LibContext_t *)context == gpphLibContext) in phLibNfc_RemoteDev_Transceive_Cb()
1133 trans_resp = &gpphLibContext->psTransInfo->sRecvData; in phLibNfc_RemoteDev_Transceive_Cb()
1135 pUpper_Context = gpphLibContext->CBInfo.pClientTranseCntx; in phLibNfc_RemoteDev_Transceive_Cb()
1136 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_RemoteDev_Transceive_Cb()
1140 if(gpphLibContext->LibNfcState.next_state in phLibNfc_RemoteDev_Transceive_Cb()
1148 gpphLibContext->LibNfcState.next_state) in phLibNfc_RemoteDev_Transceive_Cb()
1161 gpphLibContext->LastTrancvSuccess = FALSE; in phLibNfc_RemoteDev_Transceive_Cb()
1164 trans_status = phHal4Nfc_Connect(gpphLibContext->psHwReference, in phLibNfc_RemoteDev_Transceive_Cb()
1168 (void *)gpphLibContext); in phLibNfc_RemoteDev_Transceive_Cb()
1182 phLibNfc_UpdateCurState(status,gpphLibContext); in phLibNfc_RemoteDev_Transceive_Cb()
1183 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateConnect; in phLibNfc_RemoteDev_Transceive_Cb()
1192 gpphLibContext->LastTrancvSuccess = TRUE; in phLibNfc_RemoteDev_Transceive_Cb()
1193 pUpper_Context = gpphLibContext->CBInfo.pClientTranseCntx; in phLibNfc_RemoteDev_Transceive_Cb()
1199 gpphLibContext->CBInfo.pClientTransceiveCb(pUpper_Context, in phLibNfc_RemoteDev_Transceive_Cb()
1206 gpphLibContext->LastTrancvSuccess = FALSE; in phLibNfc_RemoteDev_Transceive_Cb()
1207 pUpper_Context = gpphLibContext->CBInfo.pClientTranseCntx; in phLibNfc_RemoteDev_Transceive_Cb()
1212 gpphLibContext->CBInfo.pClientTransceiveCb(pUpper_Context, in phLibNfc_RemoteDev_Transceive_Cb()
1239 if((NULL == gpphLibContext)|| in phLibNfc_Mgt_SetP2P_ConfigParams()
1240 (gpphLibContext->LibNfcState.cur_state == eLibNfcHalStateShutdown)) in phLibNfc_Mgt_SetP2P_ConfigParams()
1249 else if(gpphLibContext->LibNfcState.next_state == eLibNfcHalStateShutdown) in phLibNfc_Mgt_SetP2P_ConfigParams()
1253 else if(TRUE == gpphLibContext->status.GenCb_pending_status) in phLibNfc_Mgt_SetP2P_ConfigParams()
1260 gpphLibContext->LibNfcState.next_state) in phLibNfc_Mgt_SetP2P_ConfigParams()
1271 gpphLibContext->psHwReference, in phLibNfc_Mgt_SetP2P_ConfigParams()
1275 (void *)gpphLibContext in phLibNfc_Mgt_SetP2P_ConfigParams()
1280 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCb= NULL; in phLibNfc_Mgt_SetP2P_ConfigParams()
1286 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCb = pConfigRspCb; in phLibNfc_Mgt_SetP2P_ConfigParams()
1287 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCntx = pContext; in phLibNfc_Mgt_SetP2P_ConfigParams()
1288 gpphLibContext->status.GenCb_pending_status=TRUE; in phLibNfc_Mgt_SetP2P_ConfigParams()
1290 gpphLibContext->LibNfcState.next_state =eLibNfcHalStateConfigReady; in phLibNfc_Mgt_SetP2P_ConfigParams()
1308 if((phLibNfc_LibContext_t *)context != gpphLibContext) in phLibNfc_Mgt_SetP2P_ConfigParams_Cb()
1314 if(eLibNfcHalStateShutdown == gpphLibContext->LibNfcState.next_state) in phLibNfc_Mgt_SetP2P_ConfigParams_Cb()
1322 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_Mgt_SetP2P_ConfigParams_Cb()
1333 phLibNfc_UpdateCurState(status,gpphLibContext); in phLibNfc_Mgt_SetP2P_ConfigParams_Cb()
1335 pClientCb = gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCb; in phLibNfc_Mgt_SetP2P_ConfigParams_Cb()
1336 pUpperLayerContext = gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCntx; in phLibNfc_Mgt_SetP2P_ConfigParams_Cb()
1338 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCb = NULL; in phLibNfc_Mgt_SetP2P_ConfigParams_Cb()
1339 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCntx = NULL; in phLibNfc_Mgt_SetP2P_ConfigParams_Cb()