/packages/modules/Nfc/libnfc-nci/src/gki/common/ |
D | gki_time.cc | 614 void GKI_init_timer_list_entry(TIMER_LIST_ENT* p_tle) { in GKI_init_timer_list_entry() argument 615 p_tle->p_next = nullptr; in GKI_init_timer_list_entry() 616 p_tle->p_prev = nullptr; in GKI_init_timer_list_entry() 617 p_tle->ticks = GKI_UNUSED_LIST_ENTRY; in GKI_init_timer_list_entry() 618 p_tle->in_use = false; in GKI_init_timer_list_entry() 644 TIMER_LIST_ENT* p_tle; in GKI_update_timer_list() local 649 p_tle = p_timer_listq->p_first; in GKI_update_timer_list() 653 while ((p_tle) && (p_tle->ticks <= 0)) { in GKI_update_timer_list() 655 p_tle = p_tle->p_next; in GKI_update_timer_list() 662 while ((p_tle != nullptr) && (rem_ticks > 0)) { in GKI_update_timer_list() [all …]
|
D | gki.h | 301 typedef void(TIMER_CBACK)(TIMER_LIST_ENT* p_tle); 455 TIMER_LIST_ENT* p_tle) = 0; 463 TIMER_LIST_ENT* p_tle) = 0; 479 TIMER_LIST_ENT* p_tle) override { in remove_from_timer_list() argument 480 GKI_remove_from_timer_list(p_timer_listq, p_tle); in remove_from_timer_list() 501 void add_to_timer_list(TIMER_LIST_Q* p_list, TIMER_LIST_ENT* p_tle) override { in add_to_timer_list() argument 502 GKI_add_to_timer_list(p_list, p_tle); in add_to_timer_list()
|
/packages/modules/Nfc/libnfc-nci/src/nfc/nfc/ |
D | nfc_task.cc | 55 void nfc_start_timer(TIMER_LIST_ENT* p_tle, uint16_t type, uint32_t timeout) { in nfc_start_timer() argument 77 gki_utils->remove_from_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_start_timer() 79 p_tle->event = type; in nfc_start_timer() 80 p_tle->ticks = timeout; /* Save the number of seconds for the timer */ in nfc_start_timer() 82 gki_utils->add_to_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_start_timer() 94 uint32_t nfc_remaining_time(TIMER_LIST_ENT* p_tle) { in nfc_remaining_time() argument 95 return (GKI_get_remaining_ticks(&nfc_cb.timer_queue, p_tle)); in nfc_remaining_time() 108 TIMER_LIST_ENT* p_tle; in nfc_process_timer_evt() local 114 p_tle = GKI_timer_list_first(&nfc_cb.timer_queue); in nfc_process_timer_evt() 115 GKI_remove_from_timer_list(&nfc_cb.timer_queue, p_tle); in nfc_process_timer_evt() [all …]
|
/packages/modules/Nfc/libnfc-nci/src/nfa/sys/ |
D | nfa_sys_ptim.cc | 62 TIMER_LIST_ENT* p_tle; in nfa_sys_ptim_timer_update() local 90 p_tle = GKI_timer_list_first(&p_cb->timer_queue); in nfa_sys_ptim_timer_update() 91 LOG(VERBOSE) << StringPrintf("%s: expired=%p", __func__, p_tle); in nfa_sys_ptim_timer_update() 92 GKI_remove_from_timer_list(&p_cb->timer_queue, p_tle); in nfa_sys_ptim_timer_update() 95 if (p_tle->p_cback) { in nfa_sys_ptim_timer_update() 96 (*p_tle->p_cback)(p_tle); in nfa_sys_ptim_timer_update() 97 } else if (p_tle->event) { in nfa_sys_ptim_timer_update() 100 p_msg->event = p_tle->event; in nfa_sys_ptim_timer_update() 124 void nfa_sys_ptim_start_timer(tPTIM_CB* p_cb, TIMER_LIST_ENT* p_tle, in nfa_sys_ptim_start_timer() argument 126 LOG(VERBOSE) << StringPrintf("%s: p_tle=%p", __func__, p_tle); in nfa_sys_ptim_start_timer() [all …]
|
D | nfa_sys_main.cc | 336 void nfa_sys_start_timer(TIMER_LIST_ENT* p_tle, uint16_t type, in nfa_sys_start_timer() argument 338 nfa_sys_ptim_start_timer(&nfa_sys_cb.ptim_cb, p_tle, type, timeout); in nfa_sys_start_timer() 350 void nfa_sys_stop_timer(TIMER_LIST_ENT* p_tle) { in nfa_sys_stop_timer() argument 351 nfa_sys_ptim_stop_timer(&nfa_sys_cb.ptim_cb, p_tle); in nfa_sys_stop_timer()
|
/packages/modules/Nfc/libnfc-nci/src/fuzzers/integration/fakes/ |
D | gki_time_fakes.cc | 17 void GKI_add_to_timer_list(TIMER_LIST_Q* p_timer_listq, TIMER_LIST_ENT* p_tle) { in GKI_add_to_timer_list() argument 18 if (!p_tle || !p_timer_listq || p_tle->ticks < 0) { in GKI_add_to_timer_list() 22 p_tle->in_use = true; in GKI_add_to_timer_list() 29 if (p_tle->ticks <= p_successor->ticks) { in GKI_add_to_timer_list() 30 p_successor->ticks -= p_tle->ticks; in GKI_add_to_timer_list() 36 p_tle->ticks -= p_successor->ticks; in GKI_add_to_timer_list() 42 p_timer_listq->insert(it, p_tle); in GKI_add_to_timer_list() 46 TIMER_LIST_ENT* p_tle) { in GKI_remove_from_timer_list() argument 47 if (!p_tle || !p_tle->in_use) { in GKI_remove_from_timer_list() 51 auto it = std::find(p_timer_listq->begin(), p_timer_listq->end(), p_tle); in GKI_remove_from_timer_list() [all …]
|
/packages/modules/Nfc/libnfc-nci/src/nfc/include/ |
D | nfc_int.h | 311 void nfc_start_timer(TIMER_LIST_ENT* p_tle, uint16_t type, uint32_t timeout); 312 uint32_t nfc_remaining_time(TIMER_LIST_ENT* p_tle); 313 void nfc_stop_timer(TIMER_LIST_ENT* p_tle); 315 void nfc_start_quick_timer(TIMER_LIST_ENT* p_tle, uint16_t type, 317 void nfc_stop_quick_timer(TIMER_LIST_ENT* p_tle);
|
D | rw_int.h | 892 extern void rw_t1t_process_timeout(TIMER_LIST_ENT* p_tle); 911 extern void rw_t3t_process_timeout(TIMER_LIST_ENT* p_tle); 920 extern void rw_t4t_process_timeout(TIMER_LIST_ENT* p_tle); 923 extern void rw_i93_process_timeout(TIMER_LIST_ENT* p_tle); 931 extern void rw_ci_process_timeout(TIMER_LIST_ENT* p_tle); 934 extern void rw_mfc_process_timeout(TIMER_LIST_ENT* p_tle);
|
D | ce_int.h | 166 extern void ce_t4t_process_timeout(TIMER_LIST_ENT* p_tle);
|
/packages/modules/Nfc/libnfc-nci/src/nfa/include/ |
D | nfa_sys_ptim.h | 77 extern void nfa_sys_ptim_start_timer(tPTIM_CB* p_cb, TIMER_LIST_ENT* p_tle, 89 extern void nfa_sys_ptim_stop_timer(tPTIM_CB* p_cb, TIMER_LIST_ENT* p_tle);
|
D | nfa_sys.h | 111 extern void nfa_sys_start_timer(TIMER_LIST_ENT* p_tle, uint16_t type, 113 extern void nfa_sys_stop_timer(TIMER_LIST_ENT* p_tle);
|
/packages/modules/Nfc/libnfc-nci/tests/src/ |
D | mock_gki_utils.h | 26 (TIMER_LIST_Q * p_timer_listq, TIMER_LIST_ENT* p_tle), 37 (TIMER_LIST_Q * p_list, TIMER_LIST_ENT* p_tle), (override));
|
D | nfa_dm_act_test.cc | 75 MOCK_METHOD(void, nfa_sys_stop_timer, (TIMER_LIST_ENT* p_tle), ()); 737 MOCK_METHOD(void, nfa_sys_stop_timer, (TIMER_LIST_ENT* p_tle), ());
|
/packages/modules/Nfc/libnfc-nci/src/nfc/tags/ |
D | rw_ci.cc | 156 void rw_ci_process_timeout(TIMER_LIST_ENT* p_tle) { in rw_ci_process_timeout() argument 157 LOG(DEBUG) << StringPrintf("%s: event=%d", __func__, p_tle->event); in rw_ci_process_timeout() 159 if (p_tle->event == NFC_TTYPE_RW_CI_RESPONSE) { in rw_ci_process_timeout() 162 LOG(ERROR) << StringPrintf("%s: unknown event=%d", __func__, p_tle->event); in rw_ci_process_timeout()
|
D | ce_t4t.cc | 517 void ce_t4t_process_timeout(TIMER_LIST_ENT* p_tle) { in ce_t4t_process_timeout() argument 521 LOG(VERBOSE) << StringPrintf("%s: event=%d", __func__, p_tle->event); in ce_t4t_process_timeout() 523 if (p_tle->event == NFC_TTYPE_CE_T4T_UPDATE) { in ce_t4t_process_timeout() 533 LOG(ERROR) << StringPrintf("%s: unknown event=%d", __func__, p_tle->event); in ce_t4t_process_timeout()
|
D | rw_mfc.cc | 663 void rw_mfc_process_timeout(TIMER_LIST_ENT* p_tle) { in rw_mfc_process_timeout() argument 664 LOG(VERBOSE) << __func__ << ": event=" << p_tle->event; in rw_mfc_process_timeout() 666 if (p_tle->event == NFC_TTYPE_RW_MFC_RESPONSE) { in rw_mfc_process_timeout() 669 LOG(ERROR) << __func__ << ": unknown event=" << p_tle->event; in rw_mfc_process_timeout()
|
D | rw_t4t.cc | 2286 void rw_t4t_process_timeout(TIMER_LIST_ENT* p_tle) { in rw_t4t_process_timeout() argument 2287 LOG(VERBOSE) << StringPrintf("%s: event=%d", __func__, p_tle->event); in rw_t4t_process_timeout() 2289 if (p_tle->event == NFC_TTYPE_RW_T4T_RESPONSE) { in rw_t4t_process_timeout() 2292 LOG(ERROR) << StringPrintf("%s: unknown event=%d", __func__, p_tle->event); in rw_t4t_process_timeout()
|
D | rw_i93.cc | 3189 void rw_i93_process_timeout(TIMER_LIST_ENT* p_tle) { in rw_i93_process_timeout() argument 3192 LOG(VERBOSE) << StringPrintf("%s: event=%d", __func__, p_tle->event); in rw_i93_process_timeout() 3198 if (p_tle->event == NFC_TTYPE_RW_I93_RESPONSE) { in rw_i93_process_timeout() 3232 LOG(ERROR) << StringPrintf("%s: unknown event=%d", __func__, p_tle->event); in rw_i93_process_timeout()
|
D | rw_t1t.cc | 526 void rw_t1t_process_timeout(__attribute__((unused)) TIMER_LIST_ENT* p_tle) { in rw_t1t_process_timeout() argument
|
D | rw_t3t.cc | 505 void rw_t3t_process_timeout(TIMER_LIST_ENT* p_tle) { in rw_t3t_process_timeout() argument 510 if (p_tle == &p_cb->timer) { in rw_t3t_process_timeout()
|
/packages/modules/Nfc/libnfc-nci/src/nfa/dm/ |
D | nfa_dm_discover.cc | 61 static void nfa_dm_disc_kovio_timeout_cback(TIMER_LIST_ENT* p_tle); 852 TIMER_LIST_ENT* p_tle) { in nfa_dm_disc_deact_ntf_timeout_cback() argument 1630 TIMER_LIST_ENT* p_tle) { in nfa_dm_disc_kovio_timeout_cback() argument
|