Lines Matching refs:ps_llc_ctxt

160     phLlcNfc_Context_t      *ps_llc_ctxt = NULL;  in phLlcNfc_Register()  local
179 ps_llc_ctxt = (phLlcNfc_Context_t*)phOsalNfc_GetMemory( in phLlcNfc_Register()
181 if (NULL == ps_llc_ctxt) in phLlcNfc_Register()
191 (void)memset(ps_llc_ctxt, 0, sizeof(phLlcNfc_Context_t)); in phLlcNfc_Register()
199 psReference->plower_if->pcontext = ps_llc_ctxt; in phLlcNfc_Register()
202 ps_llc_ctxt->cb_for_if.receive_complete = if_callback.receive_complete; in phLlcNfc_Register()
203 ps_llc_ctxt->cb_for_if.send_complete = if_callback.send_complete; in phLlcNfc_Register()
204 ps_llc_ctxt->cb_for_if.notify = if_callback.notify; in phLlcNfc_Register()
206 ps_llc_ctxt->cb_for_if.pif_ctxt = if_callback.pif_ctxt; in phLlcNfc_Register()
208 result = phLlcNfc_Interface_Register(ps_llc_ctxt, psconfig); in phLlcNfc_Register()
230 phLlcNfc_Context_t *ps_llc_ctxt = (phLlcNfc_Context_t*)pContext; in phLlcNfc_Init() local
234 if ((NULL == ps_llc_ctxt) || (NULL == pLinkInfo)) in phLlcNfc_Init()
242 ps_llc_ctxt->phwinfo = pLinkInfo; in phLlcNfc_Init()
244 phLlcNfc_H_Frame_Init(ps_llc_ctxt); in phLlcNfc_Init()
246 result = phLlcNfc_Interface_Init(ps_llc_ctxt); in phLlcNfc_Init()
250 result = phLlcNfc_TimerInit(ps_llc_ctxt); in phLlcNfc_Init()
259 result = phLlcNfc_H_CreateUFramePayload(ps_llc_ctxt, in phLlcNfc_Init()
267 result = phLlcNfc_Interface_Write(ps_llc_ctxt, in phLlcNfc_Init()
277 ps_llc_ctxt->s_frameinfo.sent_frame_type = in phLlcNfc_Init()
285 (void)phLlcNfc_Release(ps_llc_ctxt, pLinkInfo); in phLlcNfc_Init()
300 phLlcNfc_Context_t *ps_llc_ctxt = (phLlcNfc_Context_t*)pContext; in phLlcNfc_Release() local
306 if ((NULL != ps_llc_ctxt) && (NULL != pLinkInfo)) in phLlcNfc_Release()
309 ps_llc_ctxt->phwinfo = pLinkInfo; in phLlcNfc_Release()
311 if (NULL != ps_llc_ctxt->lower_if.release) in phLlcNfc_Release()
313 result = ps_llc_ctxt->lower_if.release( in phLlcNfc_Release()
314 ps_llc_ctxt->lower_if.pcontext, in phLlcNfc_Release()
318 if (NULL != ps_llc_ctxt->lower_if.transact_abort) in phLlcNfc_Release()
320 result = ps_llc_ctxt->lower_if.transact_abort( in phLlcNfc_Release()
321 ps_llc_ctxt->lower_if.pcontext, in phLlcNfc_Release()
324 if (NULL != ps_llc_ctxt->lower_if.unregister) in phLlcNfc_Release()
326 result = ps_llc_ctxt->lower_if.unregister( in phLlcNfc_Release()
327 ps_llc_ctxt->lower_if.pcontext, in phLlcNfc_Release()
332 phLlcNfc_TimerUnInit(ps_llc_ctxt); in phLlcNfc_Release()
333 phLlcNfc_H_Frame_DeInit(&ps_llc_ctxt->s_frameinfo); in phLlcNfc_Release()
334 (void)memset(ps_llc_ctxt, 0, sizeof(phLlcNfc_Context_t)); in phLlcNfc_Release()
335 phOsalNfc_FreeMemory(ps_llc_ctxt); in phLlcNfc_Release()
336 ps_llc_ctxt = NULL; in phLlcNfc_Release()
363 phLlcNfc_Context_t *ps_llc_ctxt = (phLlcNfc_Context_t*)pContext; in phLlcNfc_Send() local
372 if ((NULL == ps_llc_ctxt) || (NULL == pLinkInfo) || in phLlcNfc_Send()
380 else if (ps_llc_ctxt->s_frameinfo.s_send_store.winsize_cnt >= in phLlcNfc_Send()
381 ps_llc_ctxt->s_frameinfo.window_size) in phLlcNfc_Send()
389 ps_frame_info = &(ps_llc_ctxt->s_frameinfo); in phLlcNfc_Send()
396 ps_llc_ctxt->phwinfo = pLinkInfo; in phLlcNfc_Send()
400 &(ps_llc_ctxt->s_frameinfo), in phLlcNfc_Send()
424 result = phLlcNfc_Interface_Write (ps_llc_ctxt, in phLlcNfc_Send()
481 phLlcNfc_Context_t *ps_llc_ctxt = (phLlcNfc_Context_t*)pContext; in phLlcNfc_Receive() local
485 if ((NULL == ps_llc_ctxt) || (NULL == pLinkInfo) || in phLlcNfc_Receive()
494 ps_llc_ctxt->phwinfo = pLinkInfo; in phLlcNfc_Receive()
496 ps_recv_pkt = &(ps_llc_ctxt->s_frameinfo.s_recvpacket); in phLlcNfc_Receive()
501 result = phLlcNfc_Interface_Read(ps_llc_ctxt, in phLlcNfc_Receive()
506 ps_llc_ctxt->s_frameinfo.upper_recv_call = TRUE; in phLlcNfc_Receive()
509 ps_llc_ctxt->state = phLlcNfc_Initialised_State; in phLlcNfc_Receive()