Lines Matching refs:gpphLibContext
60 pphLibNfc_LibContext_t gpphLibContext=NULL;
87 if(NULL != gpphLibContext)
97 if(NULL != gpphLibContext)
128 else if(NULL == gpphLibContext)
131 gpphLibContext=(pphLibNfc_LibContext_t)phOsalNfc_GetMemory(
133 if(NULL == gpphLibContext)
139 (void)memset((void *)gpphLibContext,0,(
143 gpphLibContext->CBInfo.pClientInitCb=pInitCb;
144 gpphLibContext->CBInfo.pClientInitCntx=pContext;
146 gpphLibContext->psHwReference=(phHal_sHwReference_t *)
148 (void)memset((void *)gpphLibContext->psHwReference,0,
151 if( gpphLibContext->psHwReference!=NULL)
153 gpphLibContext->psHwReference->p_board_driver = pDriverHandle;
154 Status = phLibNfc_UpdateNextState(gpphLibContext,
159 gpphLibContext->psHwReference,
162 (void *)gpphLibContext);
172 else if(gpphLibContext->LibNfcState.next_state==eLibNfcHalStateShutdown)
201 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext;
202 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeOff;
206 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeDefault;
213 gpphLibContext->sSeContext.eActivatedMode = phLibNfc_SE_ActModeDefault;
234 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext;
250 gpphLibContext = NULL;
265 if(context != (void *)gpphLibContext)
275 phLibNfc_UpdateCurState(NFCSTATUS_FAILED,gpphLibContext);
290 pphLibNfc_LibContext_t pLibContext = gpphLibContext;
316 gpphLibContext=NULL;
358 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext;
386 if(NULL != gpphLibContext->psBufferedAuth)
388 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer)
391 gpphLibContext->psBufferedAuth->sRecvData.buffer);
393 if(NULL != gpphLibContext->psBufferedAuth->sSendData.buffer)
396 gpphLibContext->psBufferedAuth->sSendData.buffer);
398 phOsalNfc_FreeMemory(gpphLibContext->psBufferedAuth);
399 gpphLibContext->psBufferedAuth = NULL;
405 gpphLibContext=NULL;
413 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext;
431 gpphLibContext->status.GenCb_pending_status = FALSE;
433 gpphLibContext->psHwReference,
435 (void *)gpphLibContext);
450 || (gpphLibContext->LibNfcState.cur_state
461 else if(gpphLibContext->LibNfcState.next_state
469 (void) memset(&(gpphLibContext->RegNtfType),0,
471 (void) memset(&(gpphLibContext->sADDconfig),0,
473 (void) memset(&(gpphLibContext->ndef_cntx),0,
475 (void) memset(&(gpphLibContext->sNfcIp_Context),0,
477 (void) memset(&(gpphLibContext->sCardEmulCfg),0,
479 (void) memset(&(gpphLibContext->Discov_handle),0,
483 if(NULL != gpphLibContext->psBufferedAuth)
485 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer)
488 gpphLibContext->psBufferedAuth->sRecvData.buffer);
489 gpphLibContext->psBufferedAuth->sRecvData.buffer = NULL;
491 if(NULL != gpphLibContext->psBufferedAuth->sSendData.buffer)
494 gpphLibContext->psBufferedAuth->sSendData.buffer);
495 gpphLibContext->psBufferedAuth->sSendData.buffer = NULL;
497 phOsalNfc_FreeMemory(gpphLibContext->psBufferedAuth);
498 gpphLibContext->psBufferedAuth = NULL;
500 if(NULL != gpphLibContext->psTransInfo)
502 phOsalNfc_FreeMemory(gpphLibContext->psTransInfo);
503 gpphLibContext->psTransInfo = NULL;
505 if(NULL != gpphLibContext->ndef_cntx.psNdefMap)
507 if(NULL != gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf)
509 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf);
510 gpphLibContext->ndef_cntx.psNdefMap->SendRecvBuf = NULL;
512 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.psNdefMap);
513 gpphLibContext->ndef_cntx.psNdefMap = NULL;
515 if(NULL != gpphLibContext->psOverHalCtxt)
517 phOsalNfc_FreeMemory(gpphLibContext->psOverHalCtxt);
518 gpphLibContext->psTransInfo = NULL;
520 if(NULL != gpphLibContext->psDevInputParam)
522 phOsalNfc_FreeMemory(gpphLibContext->psDevInputParam);
523 gpphLibContext->psDevInputParam = NULL;
525 if(NULL != gpphLibContext->ndef_cntx.ndef_fmt)
527 phOsalNfc_FreeMemory(gpphLibContext->ndef_cntx.ndef_fmt);
528 gpphLibContext->ndef_cntx.ndef_fmt = NULL;
553 if(NULL != gpphLibContext->phLib_NdefRecCntx.NdefCb)
555 phOsalNfc_FreeMemory(gpphLibContext->phLib_NdefRecCntx.NdefCb);
556 gpphLibContext->phLib_NdefRecCntx.NdefCb = NULL;
558 if(NULL != gpphLibContext->phLib_NdefRecCntx.ndef_message.buffer)
560 phOsalNfc_FreeMemory(gpphLibContext->phLib_NdefRecCntx.ndef_message.buffer);
561 gpphLibContext->phLib_NdefRecCntx.ndef_message.buffer = NULL;
564 gpphLibContext->Connected_handle = 0x00;
565 gpphLibContext->ReleaseType = NFC_INVALID_RELEASE_TYPE;
566 gpphLibContext->eLibNfcCfgMode = NFC_DISCOVERY_STOP;
568 gpphLibContext->LibNfcState.cur_state = eLibNfcHalStateInitandIdle;
571 gpphLibContext->CBInfo.pClientCkNdefCb = NULL;
572 gpphLibContext->CBInfo.pClientCkNdefCntx = NULL;
573 gpphLibContext->CBInfo.pClientConCntx = NULL;
574 gpphLibContext->CBInfo.pClientConnectCb = NULL;
575 gpphLibContext->CBInfo.pClientDConCntx = NULL;
576 gpphLibContext->CBInfo.pClientDisCfgCntx = NULL;
577 gpphLibContext->CBInfo.pClientDisConfigCb = NULL;
578 gpphLibContext->CBInfo.pClientInitCb = NULL;
579 gpphLibContext->CBInfo.pClientInitCntx = gpphLibContext;
580 gpphLibContext->CBInfo.pClientNdefNtfRespCb = NULL;
581 gpphLibContext->CBInfo.pClientNdefNtfRespCntx = NULL;
582 gpphLibContext->CBInfo.pClientNtfRegRespCB = NULL;
583 gpphLibContext->CBInfo.pClientNtfRegRespCntx = NULL;
584 gpphLibContext->CBInfo.pClientPresChkCb = NULL;
585 gpphLibContext->CBInfo.pClientPresChkCntx = NULL;
586 gpphLibContext->CBInfo.pClientRdNdefCb = NULL;
587 gpphLibContext->CBInfo.pClientRdNdefCntx = NULL;
588 gpphLibContext->CBInfo.pClientShtdwnCntx = NULL;
589 gpphLibContext->CBInfo.pClientShutdownCb = NULL;
590 gpphLibContext->CBInfo.pClientTransceiveCb = NULL;
591 gpphLibContext->CBInfo.pClientTranseCntx = NULL;
592 gpphLibContext->CBInfo.pClientWrNdefCb = NULL;
593 gpphLibContext->CBInfo.pClientWrNdefCntx = NULL;
594 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCb = NULL;
595 gpphLibContext->sNfcIp_Context.pClientNfcIpCfgCntx = NULL;
596 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCb = NULL;
597 gpphLibContext->sNfcIp_Context.pClientNfcIpRxCntx = NULL;
598 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCb = NULL;
599 gpphLibContext->sNfcIp_Context.pClientNfcIpTxCntx = NULL;
600 gpphLibContext->sSeContext.sSeCallabackInfo.pSeListenerNtfCb = NULL;
601 gpphLibContext->sSeContext.sSeCallabackInfo.pSeListenerCtxt = NULL;
602 gpphLibContext->sSeContext.sSeCallabackInfo.pSEsetModeCb = NULL;
603 gpphLibContext->sSeContext.sSeCallabackInfo.pSEsetModeCtxt = NULL;
605 gpphLibContext->status.GenCb_pending_status = FALSE;
743 if((NULL == gpphLibContext)||
744 (gpphLibContext->LibNfcState.cur_state == eLibNfcHalStateShutdown))
754 else if(gpphLibContext->LibNfcState.next_state == eLibNfcHalStateShutdown)
758 else if(TRUE == gpphLibContext->status.GenCb_pending_status)
791 gpphLibContext->psHwReference,
793 (void *)gpphLibContext);
802 gpphLibContext->psHwReference->device_info.fw_version;
804 gpphLibContext->psHwReference->device_info.hci_version;
806 gpphLibContext->psHwReference->device_info.hw_version;
808 gpphLibContext->psHwReference->device_info.model_id;
810 gpphLibContext->psHwReference->device_info.full_version,NXP_FULL_VERSION_LEN);
837 else if((NULL != gpphLibContext) && \
838 (gpphLibContext->LibNfcState.next_state==eLibNfcHalStateShutdown))
842 else if( (eTstmode == phLibNfc_TstMode_On) && (NULL != gpphLibContext))
846 else if( (eTstmode == phLibNfc_TstMode_Off) && (NULL == gpphLibContext))
850 else if( (eTstmode == phLibNfc_TstMode_Off) && (NULL != gpphLibContext))
852 if (NULL!= gpphLibContext->CBInfo.pClientShutdownCb)
859 if(TRUE != gpphLibContext->status.GenCb_pending_status)
861 Status = phHal4Nfc_Close(gpphLibContext->psHwReference,
863 (void *)gpphLibContext);
867 gpphLibContext->CBInfo.pClientShutdownCb = pTestModeCb;
868 gpphLibContext->CBInfo.pClientShtdwnCntx = pContext;
869 gpphLibContext->status.GenCb_pending_status=TRUE;
870 gpphLibContext->LibNfcState.next_state= eLibNfcHalStateShutdown;
881 gpphLibContext=(pphLibNfc_LibContext_t)phOsalNfc_GetMemory(
883 if(NULL == gpphLibContext)
889 (void)memset((void *)gpphLibContext,0,(
893 gpphLibContext->CBInfo.pClientInitCb=pTestModeCb;
894 gpphLibContext->CBInfo.pClientInitCntx=pContext;
896 gpphLibContext->psHwReference=(phHal_sHwReference_t *)
898 (void)memset((void *)gpphLibContext->psHwReference,0,
901 if( gpphLibContext->psHwReference!=NULL)
903 gpphLibContext->psHwReference->p_board_driver = pDriverHandle;
904 Status = phLibNfc_UpdateNextState(gpphLibContext,
913 gpphLibContext->psHwReference,
916 (void *)gpphLibContext);