• Home
  • Raw
  • Download

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()
186 else if(NULL == gpphLibContext) in phLibNfc_Mgt_Initialize()
189 gpphLibContext=(pphLibNfc_LibContext_t)phOsalNfc_GetMemory( in phLibNfc_Mgt_Initialize()
191 if(NULL == gpphLibContext) in phLibNfc_Mgt_Initialize()
197 (void)memset((void *)gpphLibContext,0,( in phLibNfc_Mgt_Initialize()
201 gpphLibContext->CBInfo.pClientInitCb=pInitCb; in phLibNfc_Mgt_Initialize()
202 gpphLibContext->CBInfo.pClientInitCntx=pContext; in phLibNfc_Mgt_Initialize()
204 gpphLibContext->psHwReference=(phHal_sHwReference_t *) in phLibNfc_Mgt_Initialize()
206 (void)memset((void *)gpphLibContext->psHwReference,0, in phLibNfc_Mgt_Initialize()
209 if( gpphLibContext->psHwReference!=NULL) in phLibNfc_Mgt_Initialize()
211 gpphLibContext->psHwReference->p_board_driver = pDriverHandle; in phLibNfc_Mgt_Initialize()
212 Status = phLibNfc_UpdateNextState(gpphLibContext, in phLibNfc_Mgt_Initialize()
217 gpphLibContext->psHwReference, in phLibNfc_Mgt_Initialize()
220 (void *)gpphLibContext); in phLibNfc_Mgt_Initialize()
230 else if(gpphLibContext->LibNfcState.next_state==eLibNfcHalStateShutdown) in phLibNfc_Mgt_Initialize()
259 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_InitCb()
260 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeOff; in phLibNfc_InitCb()
264 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeDefault; in phLibNfc_InitCb()
271 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeDefault; in phLibNfc_InitCb()
292 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_InitCb()
308 gpphLibContext = NULL; in phLibNfc_InitCb()
323 if(context != (void *)gpphLibContext) in phLibNfc_DefaultHandler()
333 phLibNfc_UpdateCurState(NFCSTATUS_FAILED,gpphLibContext); in phLibNfc_DefaultHandler()
348 pphLibNfc_LibContext_t pLibContext = gpphLibContext; in phLibNfc_Mgt_DeInitialize()
374 gpphLibContext=NULL; in phLibNfc_Mgt_DeInitialize()
416 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_ShutdownCb()
444 if(NULL != gpphLibContext->psBufferedAuth) in phLibNfc_ShutdownCb()
446 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer) in phLibNfc_ShutdownCb()
449 gpphLibContext->psBufferedAuth->sRecvData.buffer); in phLibNfc_ShutdownCb()
451 if(NULL != gpphLibContext->psBufferedAuth->sSendData.buffer) in phLibNfc_ShutdownCb()
454 gpphLibContext->psBufferedAuth->sSendData.buffer); in phLibNfc_ShutdownCb()
456 phOsalNfc_FreeMemory(gpphLibContext->psBufferedAuth); in phLibNfc_ShutdownCb()
457 gpphLibContext->psBufferedAuth = NULL; in phLibNfc_ShutdownCb()
463 gpphLibContext=NULL; in phLibNfc_ShutdownCb()
471 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_ShutdownCb()
489 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_Pending_Shutdown()
491 gpphLibContext->psHwReference, in phLibNfc_Pending_Shutdown()
493 (void *)gpphLibContext); in phLibNfc_Pending_Shutdown()
508 || (gpphLibContext->LibNfcState.cur_state in phLibNfc_Mgt_Reset()
519 else if(gpphLibContext->LibNfcState.next_state in phLibNfc_Mgt_Reset()
527 (void) memset(&(gpphLibContext->RegNtfType),0, in phLibNfc_Mgt_Reset()
529 (void) memset(&(gpphLibContext->sADDconfig),0, in phLibNfc_Mgt_Reset()
531 (void) memset(&(gpphLibContext->ndef_cntx),0, in phLibNfc_Mgt_Reset()
533 (void) memset(&(gpphLibContext->sNfcIp_Context),0, in phLibNfc_Mgt_Reset()
535 (void) memset(&(gpphLibContext->sCardEmulCfg),0, in phLibNfc_Mgt_Reset()
537 (void) memset(&(gpphLibContext->Discov_handle),0, in phLibNfc_Mgt_Reset()
541 if(NULL != gpphLibContext->psBufferedAuth) in phLibNfc_Mgt_Reset()
543 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer) in phLibNfc_Mgt_Reset()
546 gpphLibContext->psBufferedAuth->sRecvData.buffer); in phLibNfc_Mgt_Reset()
547 gpphLibContext->psBufferedAuth->sRecvData.buffer = NULL; in phLibNfc_Mgt_Reset()
549 if(NULL != gpphLibContext->psBufferedAuth->sSendData.buffer) in phLibNfc_Mgt_Reset()
552 gpphLibContext->psBufferedAuth->sSendData.buffer); in phLibNfc_Mgt_Reset()
553 gpphLibContext->psBufferedAuth->sSendData.buffer = NULL; in phLibNfc_Mgt_Reset()
555 phOsalNfc_FreeMemory(gpphLibContext->psBufferedAuth); in phLibNfc_Mgt_Reset()
556 gpphLibContext->psBufferedAuth = NULL; in phLibNfc_Mgt_Reset()
558 if(NULL != gpphLibContext->psTransInfo) in phLibNfc_Mgt_Reset()
560 phOsalNfc_FreeMemory(gpphLibContext->psTransInfo); in phLibNfc_Mgt_Reset()
561 gpphLibContext->psTransInfo = NULL; in phLibNfc_Mgt_Reset()
563 if(NULL != gpphLibContext->ndef_cntx.psNdefMap) in phLibNfc_Mgt_Reset()
565 if(NULL != gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf) in phLibNfc_Mgt_Reset()
567 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf); in phLibNfc_Mgt_Reset()
568 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf = NULL; in phLibNfc_Mgt_Reset()
570 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap); in phLibNfc_Mgt_Reset()
571 gpphLibContext->ndef_cntx.psNdefMap = NULL; in phLibNfc_Mgt_Reset()
573 if(NULL != gpphLibContext->psOverHalCtxt) in phLibNfc_Mgt_Reset()
575 phOsalNfc_FreeMemory(gpphLibContext->psOverHalCtxt); in phLibNfc_Mgt_Reset()
576 gpphLibContext->psTransInfo = NULL; in phLibNfc_Mgt_Reset()
578 if(NULL != gpphLibContext->psDevInputParam) in phLibNfc_Mgt_Reset()
580 phOsalNfc_FreeMemory(gpphLibContext->psDevInputParam); in phLibNfc_Mgt_Reset()
581 gpphLibContext->psDevInputParam = NULL; in phLibNfc_Mgt_Reset()
583 if(NULL != gpphLibContext->ndef_cntx.ndef_fmt) in phLibNfc_Mgt_Reset()
585 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.ndef_fmt); in phLibNfc_Mgt_Reset()
586 gpphLibContext->ndef_cntx.ndef_fmt = NULL; in phLibNfc_Mgt_Reset()
611 if(NULL != gpphLibContext->phLib_NdefRecCntx.NdefCb) in phLibNfc_Mgt_Reset()
613 phOsalNfc_FreeMemory(gpphLibContext->phLib_NdefRecCntx.NdefCb); in phLibNfc_Mgt_Reset()
614 gpphLibContext->phLib_NdefRecCntx.NdefCb = NULL; in phLibNfc_Mgt_Reset()
616 if(NULL != gpphLibContext->phLib_NdefRecCntx.ndef_message.buffer) in phLibNfc_Mgt_Reset()
618 phOsalNfc_FreeMemory(gpphLibContext->phLib_NdefRecCntx.ndef_message.buffer); in phLibNfc_Mgt_Reset()
619 gpphLibContext->phLib_NdefRecCntx.ndef_message.buffer = NULL; in phLibNfc_Mgt_Reset()
622 gpphLibContext->Connected_handle = 0x00; in phLibNfc_Mgt_Reset()
623 gpphLibContext->Prev_Connected_handle = 0x00; in phLibNfc_Mgt_Reset()
624 gpphLibContext->ReleaseType = NFC_INVALID_RELEASE_TYPE; in phLibNfc_Mgt_Reset()
625 gpphLibContext->eLibNfcCfgMode = NFC_DISCOVERY_STOP; in phLibNfc_Mgt_Reset()
627 gpphLibContext->LibNfcState.cur_state = eLibNfcHalStateInitandIdle; in phLibNfc_Mgt_Reset()
630 gpphLibContext->CBInfo.pClientCkNdefCb = NULL; in phLibNfc_Mgt_Reset()
631 gpphLibContext->CBInfo.pClientCkNdefCntx = NULL; in phLibNfc_Mgt_Reset()
632 gpphLibContext->CBInfo.pClientConCntx = NULL; in phLibNfc_Mgt_Reset()
633 gpphLibContext->CBInfo.pClientConnectCb = NULL; in phLibNfc_Mgt_Reset()
634 gpphLibContext->CBInfo.pClientDConCntx = NULL; in phLibNfc_Mgt_Reset()
635 gpphLibContext->CBInfo.pClientDisCfgCntx = NULL; in phLibNfc_Mgt_Reset()
636 gpphLibContext->CBInfo.pClientDisConfigCb = NULL; in phLibNfc_Mgt_Reset()
637 gpphLibContext->CBInfo.pClientInitCb = NULL; in phLibNfc_Mgt_Reset()
638 gpphLibContext->CBInfo.pClientInitCntx = gpphLibContext; in phLibNfc_Mgt_Reset()
639 gpphLibContext->CBInfo.pClientNdefNtfRespCb = NULL; in phLibNfc_Mgt_Reset()
640 gpphLibContext->CBInfo.pClientNdefNtfRespCntx = NULL; in phLibNfc_Mgt_Reset()
641 gpphLibContext->CBInfo.pClientNtfRegRespCB = NULL; in phLibNfc_Mgt_Reset()
642 gpphLibContext->CBInfo.pClientNtfRegRespCntx = NULL; in phLibNfc_Mgt_Reset()
643 gpphLibContext->CBInfo.pClientPresChkCb = NULL; in phLibNfc_Mgt_Reset()
644 gpphLibContext->CBInfo.pClientPresChkCntx = NULL; in phLibNfc_Mgt_Reset()
645 gpphLibContext->CBInfo.pClientRdNdefCb = NULL; in phLibNfc_Mgt_Reset()
646 gpphLibContext->CBInfo.pClientRdNdefCntx = NULL; in phLibNfc_Mgt_Reset()
647 gpphLibContext->CBInfo.pClientShtdwnCntx = NULL; in phLibNfc_Mgt_Reset()
648 gpphLibContext->CBInfo.pClientShutdownCb = NULL; in phLibNfc_Mgt_Reset()
649 gpphLibContext->CBInfo.pClientTransceiveCb = NULL; in phLibNfc_Mgt_Reset()
650 gpphLibContext->CBInfo.pClientTranseCntx = NULL; in phLibNfc_Mgt_Reset()
651 gpphLibContext->CBInfo.pClientWrNdefCb = NULL; in phLibNfc_Mgt_Reset()
652 gpphLibContext->CBInfo.pClientWrNdefCntx = NULL; in phLibNfc_Mgt_Reset()
653 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCb = NULL; in phLibNfc_Mgt_Reset()
654 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCntx = NULL; in phLibNfc_Mgt_Reset()
655 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCb = NULL; in phLibNfc_Mgt_Reset()
656 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCntx = NULL; in phLibNfc_Mgt_Reset()
657 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCb = NULL; in phLibNfc_Mgt_Reset()
658 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCntx = NULL; in phLibNfc_Mgt_Reset()
659 gpphLibContext->sSeContext.sSeCallabackInfo.pSeListenerNtfCb = NULL; in phLibNfc_Mgt_Reset()
660 gpphLibContext->sSeContext.sSeCallabackInfo.pSeListenerCtxt = NULL; in phLibNfc_Mgt_Reset()
661 gpphLibContext->sSeContext.sSeCallabackInfo.pSEsetModeCb = NULL; in phLibNfc_Mgt_Reset()
662 gpphLibContext->sSeContext.sSeCallabackInfo.pSEsetModeCtxt = NULL; in phLibNfc_Mgt_Reset()
664 gpphLibContext->status.GenCb_pending_status = FALSE; in phLibNfc_Mgt_Reset()
802 if((NULL == gpphLibContext)|| in phLibNfc_Mgt_GetstackCapabilities()
803 (gpphLibContext->LibNfcState.cur_state == eLibNfcHalStateShutdown)) in phLibNfc_Mgt_GetstackCapabilities()
813 else if(gpphLibContext->LibNfcState.next_state == eLibNfcHalStateShutdown) in phLibNfc_Mgt_GetstackCapabilities()
817 else if(TRUE == gpphLibContext->status.GenCb_pending_status) in phLibNfc_Mgt_GetstackCapabilities()
850 gpphLibContext->psHwReference, in phLibNfc_Mgt_GetstackCapabilities()
852 (void *)gpphLibContext); in phLibNfc_Mgt_GetstackCapabilities()
861 gpphLibContext->psHwReference->device_info.fw_version; in phLibNfc_Mgt_GetstackCapabilities()
863 gpphLibContext->psHwReference->device_info.hci_version; in phLibNfc_Mgt_GetstackCapabilities()
865 gpphLibContext->psHwReference->device_info.hw_version; in phLibNfc_Mgt_GetstackCapabilities()
867 gpphLibContext->psHwReference->device_info.model_id; in phLibNfc_Mgt_GetstackCapabilities()
869 gpphLibContext->psHwReference->device_info.full_version,NXP_FULL_VERSION_LEN); in phLibNfc_Mgt_GetstackCapabilities()
905 else if((NULL != gpphLibContext) && \ in phLibNfc_Mgt_ConfigureTestMode()
906 (gpphLibContext->LibNfcState.next_state==eLibNfcHalStateShutdown)) in phLibNfc_Mgt_ConfigureTestMode()
910 else if( (eTstmode == phLibNfc_TstMode_On) && (NULL != gpphLibContext)) in phLibNfc_Mgt_ConfigureTestMode()
914 else if( (eTstmode == phLibNfc_TstMode_Off) && (NULL == gpphLibContext)) in phLibNfc_Mgt_ConfigureTestMode()
918 else if( (eTstmode == phLibNfc_TstMode_Off) && (NULL != gpphLibContext)) in phLibNfc_Mgt_ConfigureTestMode()
920 if (NULL!= gpphLibContext->CBInfo.pClientShutdownCb) in phLibNfc_Mgt_ConfigureTestMode()
927 if(TRUE != gpphLibContext->status.GenCb_pending_status) in phLibNfc_Mgt_ConfigureTestMode()
929 Status = phHal4Nfc_Close(gpphLibContext->psHwReference, in phLibNfc_Mgt_ConfigureTestMode()
931 (void *)gpphLibContext); in phLibNfc_Mgt_ConfigureTestMode()
935 gpphLibContext->CBInfo.pClientShutdownCb = pTestModeCb; in phLibNfc_Mgt_ConfigureTestMode()
936 gpphLibContext->CBInfo.pClientShtdwnCntx = pContext; in phLibNfc_Mgt_ConfigureTestMode()
937 gpphLibContext->status.GenCb_pending_status=TRUE; in phLibNfc_Mgt_ConfigureTestMode()
938 gpphLibContext->LibNfcState.next_state= eLibNfcHalStateShutdown; in phLibNfc_Mgt_ConfigureTestMode()
949 gpphLibContext=(pphLibNfc_LibContext_t)phOsalNfc_GetMemory( in phLibNfc_Mgt_ConfigureTestMode()
951 if(NULL == gpphLibContext) in phLibNfc_Mgt_ConfigureTestMode()
957 (void)memset((void *)gpphLibContext,0,( in phLibNfc_Mgt_ConfigureTestMode()
961 gpphLibContext->CBInfo.pClientInitCb=pTestModeCb; in phLibNfc_Mgt_ConfigureTestMode()
962 gpphLibContext->CBInfo.pClientInitCntx=pContext; in phLibNfc_Mgt_ConfigureTestMode()
964 gpphLibContext->psHwReference=(phHal_sHwReference_t *) in phLibNfc_Mgt_ConfigureTestMode()
966 (void)memset((void *)gpphLibContext->psHwReference,0, in phLibNfc_Mgt_ConfigureTestMode()
969 if( gpphLibContext->psHwReference!=NULL) in phLibNfc_Mgt_ConfigureTestMode()
971 gpphLibContext->psHwReference->p_board_driver = pDriverHandle; in phLibNfc_Mgt_ConfigureTestMode()
972 Status = phLibNfc_UpdateNextState(gpphLibContext, in phLibNfc_Mgt_ConfigureTestMode()
981 gpphLibContext->psHwReference, in phLibNfc_Mgt_ConfigureTestMode()
984 (void *)gpphLibContext); in phLibNfc_Mgt_ConfigureTestMode()