Lines Matching refs:gpphLibContext
82 if((phLibNfc_LibContext_t *)context == gpphLibContext)
85 if(eLibNfcHalStateShutdown == gpphLibContext->LibNfcState.next_state)
93 gpphLibContext->status.GenCb_pending_status = FALSE;
94 gpphLibContext->status.DiscEnbl_status = FALSE;
95 phLibNfc_UpdateCurState(status,gpphLibContext);
97 if(gpphLibContext->status.Discovery_pending_status == TRUE)
103 gpphLibContext->status.Discovery_pending_status = FALSE;
105 gpphLibContext->psHwReference,
106 gpphLibContext->eLibNfcCfgMode,
107 &gpphLibContext->sADDconfig,
110 (void *)gpphLibContext);
113 (void)phLibNfc_UpdateNextState(gpphLibContext,
115 gpphLibContext->status.GenCb_pending_status = TRUE;
116 gpphLibContext->status.DiscEnbl_status = TRUE;
131 if(gpphLibContext->CBInfo.pClientDisConfigCb!=NULL)
133 gpphLibContext->CBInfo.pClientDisConfigCb(gpphLibContext->CBInfo.pClientDisCfgCntx,status);
134 gpphLibContext->CBInfo.pClientDisConfigCb=NULL;
154 if((NULL == gpphLibContext) ||
155 (gpphLibContext->LibNfcState.cur_state
166 else if(gpphLibContext->LibNfcState.next_state
173 gpphLibContext->eLibNfcCfgMode =DiscoveryMode;
174 gpphLibContext->sADDconfig = sADDSetup;
175 if(gpphLibContext->status.DiscEnbl_status != TRUE)
180 RetVal = phHal4Nfc_ConfigureDiscovery ( gpphLibContext->psHwReference,
185 (void*)gpphLibContext);
188 gpphLibContext->status.DiscEnbl_status = TRUE;
190 gpphLibContext->CBInfo.pClientDisConfigCb = pConfigDiscovery_RspCb;
191 gpphLibContext->CBInfo.pClientDisCfgCntx = pContext;
192 gpphLibContext->status.GenCb_pending_status = TRUE;
193 gpphLibContext->LibNfcState.next_state = eLibNfcHalStateConfigReady;
228 if((NULL == gpphLibContext) ||
229 (gpphLibContext->LibNfcState.cur_state
241 else if(gpphLibContext->LibNfcState.next_state
247 else if( gpphLibContext->Connected_handle == 0)
252 else if(hTargetDev != gpphLibContext->Connected_handle)
257 else if ((LLCP_STATE_RESET_INIT != gpphLibContext->llcp_cntx.sLlcpContext.state)
258 && (LLCP_STATE_CHECKED != gpphLibContext->llcp_cntx.sLlcpContext.state))
266 gpphLibContext->Connected_handle;
269 &&(TRUE == gpphLibContext->LastTrancvSuccess))
273 gpphLibContext->psHwReference,
274 gpphLibContext->psBufferedAuth,
276 gpphLibContext->Connected_handle,
279 (void *)gpphLibContext
286 RetVal = phHal4Nfc_PresenceCheck(gpphLibContext->psHwReference,
288 (void *)gpphLibContext);
292 gpphLibContext->CBInfo.pClientPresChkCb = pPresenceChk_RspCb;
293 gpphLibContext->CBInfo.pClientPresChkCntx = pRspCbCtx;
295 gpphLibContext->status.GenCb_pending_status = TRUE;
298 gpphLibContext->LibNfcState.next_state = eLibNfcHalStatePresenceChk;
319 if((phLibNfc_LibContext_t *)context != gpphLibContext)
325 gpphLibContext->status.GenCb_pending_status = FALSE;
326 pClientCb =gpphLibContext->CBInfo.pClientPresChkCb ;
327 pUpperLayerContext = gpphLibContext->CBInfo.pClientPresChkCntx;
328 gpphLibContext->CBInfo.pClientPresChkCntx = NULL;
329 gpphLibContext->CBInfo.pClientPresChkCb =NULL;
332 if(eLibNfcHalStateShutdown == gpphLibContext->LibNfcState.next_state)
351 phLibNfc_UpdateCurState(status,gpphLibContext);