Lines Matching refs:pLibContext
258 pphLibNfc_LibContext_t pLibContext=NULL; in phLibNfc_InitCb() local
264 pLibContext = (pphLibNfc_LibContext_t)pContext; in phLibNfc_InitCb()
266 pClientCb =pLibContext->CBInfo.pClientInitCb; in phLibNfc_InitCb()
267 pUpperLayerContext=pLibContext->CBInfo.pClientInitCntx; in phLibNfc_InitCb()
271 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_InitCb()
273 if(pLibContext->psHwReference->uicc_connected==TRUE) in phLibNfc_InitCb()
278 pLibContext->sSeContext.uUiccActivate=TRUE; in phLibNfc_InitCb()
280 if(pLibContext->psHwReference->smx_connected==TRUE) in phLibNfc_InitCb()
285 pLibContext->sSeContext.uSmxActivate =FALSE; in phLibNfc_InitCb()
288 phLibNfc_UpdateCurState(status,pLibContext); in phLibNfc_InitCb()
290 pLibContext->psHwReference, in phLibNfc_InitCb()
293 (void*)pLibContext in phLibNfc_InitCb()
304 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_InitCb()
306 phLibNfc_UpdateCurState(status,pLibContext); in phLibNfc_InitCb()
311 if(pLibContext->psHwReference!= NULL) in phLibNfc_InitCb()
313 phOsalNfc_FreeMemory(pLibContext->psHwReference); in phLibNfc_InitCb()
314 pLibContext->psHwReference = NULL; in phLibNfc_InitCb()
318 phOsalNfc_FreeMemory(pLibContext); in phLibNfc_InitCb()
319 pLibContext= NULL; in phLibNfc_InitCb()
360 pphLibNfc_LibContext_t pLibContext = gpphLibContext; in phLibNfc_Mgt_DeInitialize() local
366 else if((pLibContext==NULL) in phLibNfc_Mgt_DeInitialize()
367 || (pLibContext->LibNfcState.cur_state in phLibNfc_Mgt_DeInitialize()
376 phHal4Nfc_Hal4Reset(pLibContext->psHwReference,(void *)pLibContext); in phLibNfc_Mgt_DeInitialize()
377 if(pLibContext->psHwReference!=NULL) in phLibNfc_Mgt_DeInitialize()
379 phOsalNfc_FreeMemory(pLibContext->psHwReference); in phLibNfc_Mgt_DeInitialize()
380 pLibContext->psHwReference = NULL; in phLibNfc_Mgt_DeInitialize()
385 phOsalNfc_FreeMemory(pLibContext); in phLibNfc_Mgt_DeInitialize()
387 pLibContext= NULL; in phLibNfc_Mgt_DeInitialize()
391 if (NULL!= pLibContext->CBInfo.pClientShutdownCb) in phLibNfc_Mgt_DeInitialize()
397 if(TRUE != pLibContext->status.GenCb_pending_status) in phLibNfc_Mgt_DeInitialize()
399 Status = phHal4Nfc_Close(pLibContext->psHwReference, in phLibNfc_Mgt_DeInitialize()
401 (void *)pLibContext); in phLibNfc_Mgt_DeInitialize()
405 pLibContext->CBInfo.pClientShutdownCb = pDeInitCb; in phLibNfc_Mgt_DeInitialize()
406 pLibContext->CBInfo.pClientShtdwnCntx = pContext; in phLibNfc_Mgt_DeInitialize()
407 pLibContext->status.GenCb_pending_status=TRUE; in phLibNfc_Mgt_DeInitialize()
408 pLibContext->LibNfcState.next_state= eLibNfcHalStateShutdown; in phLibNfc_Mgt_DeInitialize()
424 pphLibNfc_LibContext_t pLibContext=NULL; in phLibNfc_ShutdownCb() local
428 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_ShutdownCb()
430 if(pLibContext == NULL) in phLibNfc_ShutdownCb()
437 pClientCb =pLibContext->CBInfo.pClientShutdownCb; in phLibNfc_ShutdownCb()
438 pUpperLayerContext=pLibContext->CBInfo.pClientShtdwnCntx; in phLibNfc_ShutdownCb()
441 pLibContext->LibNfcState.cur_state = eLibNfcHalStateShutdown; in phLibNfc_ShutdownCb()
442 phLibNfc_UpdateCurState(status,pLibContext); in phLibNfc_ShutdownCb()
444 pLibContext->status.GenCb_pending_status=FALSE; in phLibNfc_ShutdownCb()
451 if(pLibContext->psHwReference!=NULL) in phLibNfc_ShutdownCb()
453 phOsalNfc_FreeMemory(pLibContext->psHwReference); in phLibNfc_ShutdownCb()
454 pLibContext->psHwReference = NULL; in phLibNfc_ShutdownCb()
474 phOsalNfc_FreeMemory(pLibContext); in phLibNfc_ShutdownCb()
476 pLibContext= NULL; in phLibNfc_ShutdownCb()
483 pLibContext=(pphLibNfc_LibContext_t)gpphLibContext; in phLibNfc_ShutdownCb()
484 phLibNfc_UpdateCurState(status,pLibContext); in phLibNfc_ShutdownCb()
485 pLibContext->status.GenCb_pending_status=FALSE; in phLibNfc_ShutdownCb()
687 pphLibNfc_LibContext_t pLibContext, in phLibNfc_UpdateNextState() argument
692 switch(pLibContext->LibNfcState.cur_state) in phLibNfc_UpdateNextState()
769 pLibContext->LibNfcState.next_state = in phLibNfc_UpdateNextState()
770 (uint8_t)((NFCSTATUS_SUCCESS == status)?next_state:pLibContext->LibNfcState.next_state); in phLibNfc_UpdateNextState()