Lines Matching defs:nfc_hal_cb

43 tNFC_HAL_CB nfc_hal_cb;
82 memset (&nfc_hal_cb, 0, sizeof (tNFC_HAL_CB));
84 nfc_hal_cb.ncit_cb.nci_ctrl_size = NFC_HAL_NCI_INIT_CTRL_PAYLOAD_SIZE;
85 nfc_hal_cb.trace_level = NFC_HAL_INITIAL_TRACE_LEVEL;
102 nfc_hal_cb.ncit_cb.rcv_state = NFC_HAL_RCV_IDLE_ST; /* to process packet type */
104 if (nfc_hal_cb.ncit_cb.p_rcv_msg)
106 GKI_freebuf (nfc_hal_cb.ncit_cb.p_rcv_msg);
107 nfc_hal_cb.ncit_cb.p_rcv_msg = NULL;
134 nfc_hal_cb.p_stack_cback(HAL_NFC_ERROR_EVT, status);
161 if (nfc_hal_cb.ncit_cb.nci_wait_rsp != NFC_HAL_WAIT_RSP_NONE)
163 nfc_hal_main_stop_quick_timer (&nfc_hal_cb.ncit_cb.nci_wait_rsp_timer);
164 nfc_hal_nci_cmd_timeout_cback ((void *)&nfc_hal_cb.ncit_cb.nci_wait_rsp_timer);
203 nfc_hal_cb.p_stack_cback (HAL_NFC_OPEN_CPLT_EVT, status);
247 if (nfc_hal_cb.ncit_cb.p_pend_cmd != NULL)
249 GKI_freebuf (nfc_hal_cb.ncit_cb.p_pend_cmd);
250 nfc_hal_cb.ncit_cb.p_pend_cmd = NULL;
254 if (nfc_hal_cb.ncit_cb.p_rcv_msg)
256 GKI_freebuf (nfc_hal_cb.ncit_cb.p_rcv_msg);
257 nfc_hal_cb.ncit_cb.p_rcv_msg = NULL;
261 if (nfc_hal_cb.ncit_cb.p_frag_msg)
263 GKI_freebuf (nfc_hal_cb.ncit_cb.p_frag_msg);
264 nfc_hal_cb.ncit_cb.p_frag_msg = NULL;
295 if (nfc_hal_cb.quick_timer_queue.p_first == NULL)
313 GKI_remove_from_timer_list (&nfc_hal_cb.quick_timer_queue, p_tle);
318 GKI_add_to_timer_list (&nfc_hal_cb.quick_timer_queue, p_tle);
332 GKI_remove_from_timer_list (&nfc_hal_cb.quick_timer_queue, p_tle);
335 if (nfc_hal_cb.quick_timer_queue.p_first == NULL)
354 GKI_update_timer_list (&nfc_hal_cb.quick_timer_queue, 1);
356 while ((nfc_hal_cb.quick_timer_queue.p_first) && (!nfc_hal_cb.quick_timer_queue.p_first->ticks))
358 p_tle = nfc_hal_cb.quick_timer_queue.p_first;
359 GKI_remove_from_timer_list (&nfc_hal_cb.quick_timer_queue, p_tle);
368 if (nfc_hal_cb.quick_timer_queue.p_first == NULL)
458 nfc_hal_cb.p_stack_cback (HAL_NFC_CLOSE_CPLT_EVT, HAL_NFC_STATUS_OK);
459 nfc_hal_cb.p_stack_cback = NULL;
473 nfc_hal_cb.timer.p_cback = nfc_hal_main_timeout_cback;
474 nfc_hal_main_start_quick_timer (&nfc_hal_cb.timer, NFC_HAL_TTYPE_POWER_CYCLE,
501 nfc_hal_cb.ncit_cb.nci_ctrl_size = *p;
504 nfc_hal_cb.dev_cb.next_dm_config = NFC_HAL_DM_CONFIG_LPTD;
505 nfc_hal_cb.dev_cb.next_startup_vsc = 1;
547 if (nfc_hal_cb.ncit_cb.p_rcv_msg)
549 if (nfc_hal_nci_preproc_rx_nci_msg (nfc_hal_cb.ncit_cb.p_rcv_msg))
552 nfc_hal_cb.p_data_cback(nfc_hal_cb.ncit_cb.p_rcv_msg->len, (UINT8 *)((nfc_hal_cb.ncit_cb.p_rcv_msg + 1)
553 + nfc_hal_cb.ncit_cb.p_rcv_msg->offset));
558 if (nfc_hal_cb.ncit_cb.p_rcv_msg)
560 GKI_freebuf(nfc_hal_cb.ncit_cb.p_rcv_msg);
561 nfc_hal_cb.ncit_cb.p_rcv_msg = NULL;
593 nfc_hal_cb.trace_level = new_level;
595 return (nfc_hal_cb.trace_level);