Home | History | Annotate | Download | only in src

Lines Matching refs:ps_llc_ctxt

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