Lines Matching refs:gpphLibContext

64 pphLibNfc_LibContext_t gpphLibContext=NULL;  variable
91 if(NULL != gpphLibContext) in phLibNfc_Mgt_ConfigureDriver()
101 if(NULL != gpphLibContext) in phLibNfc_Mgt_UnConfigureDriver()
137 if (gpphLibContext->sSeContext.eActivatedMode == phLibNfc_SE_ActModeWired) in phLibNfc_Mgt_Recovery()
198 else if(NULL == gpphLibContext) in phLibNfc_Mgt_Initialize()
201 gpphLibContext=(pphLibNfc_LibContext_t)phOsalNfc_GetMemory( in phLibNfc_Mgt_Initialize()
203 if(NULL == gpphLibContext) in phLibNfc_Mgt_Initialize()
209 (void)memset((void *)gpphLibContext,0,( in phLibNfc_Mgt_Initialize()
213 gpphLibContext->CBInfo.pClientInitCb=pInitCb; in phLibNfc_Mgt_Initialize()
214 gpphLibContext->CBInfo.pClientInitCntx=pContext; in phLibNfc_Mgt_Initialize()
216 gpphLibContext->psHwReference=(phHal_sHwReference_t *) in phLibNfc_Mgt_Initialize()
218 (void)memset((void *)gpphLibContext->psHwReference,0, in phLibNfc_Mgt_Initialize()
221 if( gpphLibContext->psHwReference!=NULL) in phLibNfc_Mgt_Initialize()
223 gpphLibContext->psHwReference->p_board_driver = pDriverHandle; in phLibNfc_Mgt_Initialize()
224 Status = phLibNfc_UpdateNextState(gpphLibContext, in phLibNfc_Mgt_Initialize()
229 gpphLibContext->psHwReference, in phLibNfc_Mgt_Initialize()
232 (void *)gpphLibContext); in phLibNfc_Mgt_Initialize()
242 else if(gpphLibContext->LibNfcState.next_state==eLibNfcHalStateShutdown) in phLibNfc_Mgt_Initialize()
271 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_InitCb()
272 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeOff; in phLibNfc_InitCb()
276 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeDefault; in phLibNfc_InitCb()
283 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeDefault; in phLibNfc_InitCb()
304 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_InitCb()
320 gpphLibContext = NULL; in phLibNfc_InitCb()
335 if(context != (void *)gpphLibContext) in phLibNfc_DefaultHandler()
345 phLibNfc_UpdateCurState(NFCSTATUS_FAILED,gpphLibContext); in phLibNfc_DefaultHandler()
360 pphLibNfc_LibContext_t pLibContext = gpphLibContext; in phLibNfc_Mgt_DeInitialize()
386 gpphLibContext=NULL; in phLibNfc_Mgt_DeInitialize()
428 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_ShutdownCb()
456 if(NULL != gpphLibContext->psBufferedAuth) in phLibNfc_ShutdownCb()
458 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer) in phLibNfc_ShutdownCb()
461 gpphLibContext->psBufferedAuth->sRecvData.buffer); in phLibNfc_ShutdownCb()
463 if(NULL != gpphLibContext->psBufferedAuth->sSendData.buffer) in phLibNfc_ShutdownCb()
466 gpphLibContext->psBufferedAuth->sSendData.buffer); in phLibNfc_ShutdownCb()
468 phOsalNfc_FreeMemory(gpphLibContext->psBufferedAuth); in phLibNfc_ShutdownCb()
469 gpphLibContext->psBufferedAuth = NULL; in phLibNfc_ShutdownCb()
475 gpphLibContext=NULL; in phLibNfc_ShutdownCb()
483 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_ShutdownCb()
501 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_Pending_Shutdown()
503 gpphLibContext->psHwReference, in phLibNfc_Pending_Shutdown()
505 (void *)gpphLibContext); in phLibNfc_Pending_Shutdown()
520 || (gpphLibContext->LibNfcState.cur_state in phLibNfc_Mgt_Reset()
531 else if(gpphLibContext->LibNfcState.next_state in phLibNfc_Mgt_Reset()
539 (void) memset(&(gpphLibContext->RegNtfType),0, in phLibNfc_Mgt_Reset()
541 (void) memset(&(gpphLibContext->sADDconfig),0, in phLibNfc_Mgt_Reset()
543 (void) memset(&(gpphLibContext->ndef_cntx),0, in phLibNfc_Mgt_Reset()
545 (void) memset(&(gpphLibContext->sNfcIp_Context),0, in phLibNfc_Mgt_Reset()
547 (void) memset(&(gpphLibContext->sCardEmulCfg),0, in phLibNfc_Mgt_Reset()
549 (void) memset(&(gpphLibContext->Discov_handle),0, in phLibNfc_Mgt_Reset()
553 if(NULL != gpphLibContext->psBufferedAuth) in phLibNfc_Mgt_Reset()
555 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer) in phLibNfc_Mgt_Reset()
558 gpphLibContext->psBufferedAuth->sRecvData.buffer); in phLibNfc_Mgt_Reset()
559 gpphLibContext->psBufferedAuth->sRecvData.buffer = NULL; in phLibNfc_Mgt_Reset()
561 if(NULL != gpphLibContext->psBufferedAuth->sSendData.buffer) in phLibNfc_Mgt_Reset()
564 gpphLibContext->psBufferedAuth->sSendData.buffer); in phLibNfc_Mgt_Reset()
565 gpphLibContext->psBufferedAuth->sSendData.buffer = NULL; in phLibNfc_Mgt_Reset()
567 phOsalNfc_FreeMemory(gpphLibContext->psBufferedAuth); in phLibNfc_Mgt_Reset()
568 gpphLibContext->psBufferedAuth = NULL; in phLibNfc_Mgt_Reset()
570 if(NULL != gpphLibContext->psTransInfo) in phLibNfc_Mgt_Reset()
572 phOsalNfc_FreeMemory(gpphLibContext->psTransInfo); in phLibNfc_Mgt_Reset()
573 gpphLibContext->psTransInfo = NULL; in phLibNfc_Mgt_Reset()
575 if(NULL != gpphLibContext->ndef_cntx.psNdefMap) in phLibNfc_Mgt_Reset()
577 if(NULL != gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf) in phLibNfc_Mgt_Reset()
579 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf); in phLibNfc_Mgt_Reset()
580 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf = NULL; in phLibNfc_Mgt_Reset()
582 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap); in phLibNfc_Mgt_Reset()
583 gpphLibContext->ndef_cntx.psNdefMap = NULL; in phLibNfc_Mgt_Reset()
585 if(NULL != gpphLibContext->psOverHalCtxt) in phLibNfc_Mgt_Reset()
587 phOsalNfc_FreeMemory(gpphLibContext->psOverHalCtxt); in phLibNfc_Mgt_Reset()
588 gpphLibContext->psTransInfo = NULL; in phLibNfc_Mgt_Reset()
590 if(NULL != gpphLibContext->psDevInputParam) in phLibNfc_Mgt_Reset()
592 phOsalNfc_FreeMemory(gpphLibContext->psDevInputParam); in phLibNfc_Mgt_Reset()
593 gpphLibContext->psDevInputParam = NULL; in phLibNfc_Mgt_Reset()
595 if(NULL != gpphLibContext->ndef_cntx.ndef_fmt) in phLibNfc_Mgt_Reset()
597 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.ndef_fmt); in phLibNfc_Mgt_Reset()
598 gpphLibContext->ndef_cntx.ndef_fmt = NULL; in phLibNfc_Mgt_Reset()
623 if(NULL != gpphLibContext->phLib_NdefRecCntx.NdefCb) in phLibNfc_Mgt_Reset()
625 phOsalNfc_FreeMemory(gpphLibContext->phLib_NdefRecCntx.NdefCb); in phLibNfc_Mgt_Reset()
626 gpphLibContext->phLib_NdefRecCntx.NdefCb = NULL; in phLibNfc_Mgt_Reset()
628 if(NULL != gpphLibContext->phLib_NdefRecCntx.ndef_message.buffer) in phLibNfc_Mgt_Reset()
630 phOsalNfc_FreeMemory(gpphLibContext->phLib_NdefRecCntx.ndef_message.buffer); in phLibNfc_Mgt_Reset()
631 gpphLibContext->phLib_NdefRecCntx.ndef_message.buffer = NULL; in phLibNfc_Mgt_Reset()
634 gpphLibContext->Connected_handle = 0x00; in phLibNfc_Mgt_Reset()
635 gpphLibContext->Prev_Connected_handle = 0x00; in phLibNfc_Mgt_Reset()
636 gpphLibContext->ReleaseType = NFC_INVALID_RELEASE_TYPE; in phLibNfc_Mgt_Reset()
637 gpphLibContext->eLibNfcCfgMode = NFC_DISCOVERY_STOP; in phLibNfc_Mgt_Reset()
639 gpphLibContext->LibNfcState.cur_state = eLibNfcHalStateInitandIdle; in phLibNfc_Mgt_Reset()
642 gpphLibContext->CBInfo.pClientCkNdefCb = NULL; in phLibNfc_Mgt_Reset()
643 gpphLibContext->CBInfo.pClientCkNdefCntx = NULL; in phLibNfc_Mgt_Reset()
644 gpphLibContext->CBInfo.pClientConCntx = NULL; in phLibNfc_Mgt_Reset()
645 gpphLibContext->CBInfo.pClientConnectCb = NULL; in phLibNfc_Mgt_Reset()
646 gpphLibContext->CBInfo.pClientDConCntx = NULL; in phLibNfc_Mgt_Reset()
647 gpphLibContext->CBInfo.pClientDisCfgCntx = NULL; in phLibNfc_Mgt_Reset()
648 gpphLibContext->CBInfo.pClientDisConfigCb = NULL; in phLibNfc_Mgt_Reset()
649 gpphLibContext->CBInfo.pClientInitCb = NULL; in phLibNfc_Mgt_Reset()
650 gpphLibContext->CBInfo.pClientInitCntx = gpphLibContext; in phLibNfc_Mgt_Reset()
651 gpphLibContext->CBInfo.pClientNdefNtfRespCb = NULL; in phLibNfc_Mgt_Reset()
652 gpphLibContext->CBInfo.pClientNdefNtfRespCntx = NULL; in phLibNfc_Mgt_Reset()
653 gpphLibContext->CBInfo.pClientNtfRegRespCB = NULL; in phLibNfc_Mgt_Reset()
654 gpphLibContext->CBInfo.pClientNtfRegRespCntx = NULL; in phLibNfc_Mgt_Reset()
655 gpphLibContext->CBInfo.pClientPresChkCb = NULL; in phLibNfc_Mgt_Reset()
656 gpphLibContext->CBInfo.pClientPresChkCntx = NULL; in phLibNfc_Mgt_Reset()
657 gpphLibContext->CBInfo.pClientRdNdefCb = NULL; in phLibNfc_Mgt_Reset()
658 gpphLibContext->CBInfo.pClientRdNdefCntx = NULL; in phLibNfc_Mgt_Reset()
659 gpphLibContext->CBInfo.pClientShtdwnCntx = NULL; in phLibNfc_Mgt_Reset()
660 gpphLibContext->CBInfo.pClientShutdownCb = NULL; in phLibNfc_Mgt_Reset()
661 gpphLibContext->CBInfo.pClientTransceiveCb = NULL; in phLibNfc_Mgt_Reset()
662 gpphLibContext->CBInfo.pClientTranseCntx = NULL; in phLibNfc_Mgt_Reset()
663 gpphLibContext->CBInfo.pClientWrNdefCb = NULL; in phLibNfc_Mgt_Reset()
664 gpphLibContext->CBInfo.pClientWrNdefCntx = NULL; in phLibNfc_Mgt_Reset()
665 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCb = NULL; in phLibNfc_Mgt_Reset()
666 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCntx = NULL; in phLibNfc_Mgt_Reset()
667 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCb = NULL; in phLibNfc_Mgt_Reset()
668 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCntx = NULL; in phLibNfc_Mgt_Reset()
669 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCb = NULL; in phLibNfc_Mgt_Reset()
670 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCntx = NULL; in phLibNfc_Mgt_Reset()
671 gpphLibContext->sSeContext.sSeCallabackInfo.pSeListenerNtfCb = NULL; in phLibNfc_Mgt_Reset()
672 gpphLibContext->sSeContext.sSeCallabackInfo.pSeListenerCtxt = NULL; in phLibNfc_Mgt_Reset()
673 gpphLibContext->sSeContext.sSeCallabackInfo.pSEsetModeCb = NULL; in phLibNfc_Mgt_Reset()
674 gpphLibContext->sSeContext.sSeCallabackInfo.pSEsetModeCtxt = NULL; in phLibNfc_Mgt_Reset()
676 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_Mgt_Reset()
814 if((NULL == gpphLibContext)|| in phLibNfc_Mgt_GetstackCapabilities()
815 (gpphLibContext->LibNfcState.cur_state == eLibNfcHalStateShutdown)) in phLibNfc_Mgt_GetstackCapabilities()
825 else if(gpphLibContext->LibNfcState.next_state == eLibNfcHalStateShutdown) in phLibNfc_Mgt_GetstackCapabilities()
829 else if(TRUE == gpphLibContext->status.GenCb_pending_status) in phLibNfc_Mgt_GetstackCapabilities()
862 gpphLibContext->psHwReference, in phLibNfc_Mgt_GetstackCapabilities()
864 (void *)gpphLibContext); in phLibNfc_Mgt_GetstackCapabilities()
873 gpphLibContext->psHwReference->device_info.fw_version; in phLibNfc_Mgt_GetstackCapabilities()
875 gpphLibContext->psHwReference->device_info.hci_version; in phLibNfc_Mgt_GetstackCapabilities()
877 gpphLibContext->psHwReference->device_info.hw_version; in phLibNfc_Mgt_GetstackCapabilities()
879 gpphLibContext->psHwReference->device_info.model_id; in phLibNfc_Mgt_GetstackCapabilities()
881 gpphLibContext->psHwReference->device_info.full_version,NXP_FULL_VERSION_LEN); in phLibNfc_Mgt_GetstackCapabilities()
917 else if((NULL != gpphLibContext) && \ in phLibNfc_Mgt_ConfigureTestMode()
918 (gpphLibContext->LibNfcState.next_state==eLibNfcHalStateShutdown)) in phLibNfc_Mgt_ConfigureTestMode()
922 else if( (eTstmode == phLibNfc_TstMode_On) && (NULL != gpphLibContext)) in phLibNfc_Mgt_ConfigureTestMode()
926 else if( (eTstmode == phLibNfc_TstMode_Off) && (NULL == gpphLibContext)) in phLibNfc_Mgt_ConfigureTestMode()
930 else if( (eTstmode == phLibNfc_TstMode_Off) && (NULL != gpphLibContext)) in phLibNfc_Mgt_ConfigureTestMode()
932 if (NULL!= gpphLibContext->CBInfo.pClientShutdownCb) in phLibNfc_Mgt_ConfigureTestMode()
939 if(TRUE != gpphLibContext->status.GenCb_pending_status) in phLibNfc_Mgt_ConfigureTestMode()
941 Status = phHal4Nfc_Close(gpphLibContext->psHwReference, in phLibNfc_Mgt_ConfigureTestMode()
943 (void *)gpphLibContext); in phLibNfc_Mgt_ConfigureTestMode()
947 gpphLibContext->CBInfo.pClientShutdownCb = pTestModeCb; in phLibNfc_Mgt_ConfigureTestMode()
948 gpphLibContext->CBInfo.pClientShtdwnCntx = pContext; in phLibNfc_Mgt_ConfigureTestMode()
949 gpphLibContext->status.GenCb_pending_status=TRUE; in phLibNfc_Mgt_ConfigureTestMode()
950 gpphLibContext->LibNfcState.next_state= eLibNfcHalStateShutdown; in phLibNfc_Mgt_ConfigureTestMode()
961 gpphLibContext=(pphLibNfc_LibContext_t)phOsalNfc_GetMemory( in phLibNfc_Mgt_ConfigureTestMode()
963 if(NULL == gpphLibContext) in phLibNfc_Mgt_ConfigureTestMode()
969 (void)memset((void *)gpphLibContext,0,( in phLibNfc_Mgt_ConfigureTestMode()
973 gpphLibContext->CBInfo.pClientInitCb=pTestModeCb; in phLibNfc_Mgt_ConfigureTestMode()
974 gpphLibContext->CBInfo.pClientInitCntx=pContext; in phLibNfc_Mgt_ConfigureTestMode()
976 gpphLibContext->psHwReference=(phHal_sHwReference_t *) in phLibNfc_Mgt_ConfigureTestMode()
978 (void)memset((void *)gpphLibContext->psHwReference,0, in phLibNfc_Mgt_ConfigureTestMode()
981 if( gpphLibContext->psHwReference!=NULL) in phLibNfc_Mgt_ConfigureTestMode()
983 gpphLibContext->psHwReference->p_board_driver = pDriverHandle; in phLibNfc_Mgt_ConfigureTestMode()
984 Status = phLibNfc_UpdateNextState(gpphLibContext, in phLibNfc_Mgt_ConfigureTestMode()
993 gpphLibContext->psHwReference, in phLibNfc_Mgt_ConfigureTestMode()
996 (void *)gpphLibContext); in phLibNfc_Mgt_ConfigureTestMode()