Home | History | Annotate | Download | only in src

Lines Matching refs:gpphLibContext

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