Home
last modified time | relevance | path

Searched refs:p_cback (Results 1 – 25 of 46) sorted by relevance

12

/system/nfc/src/nfc/nfc/
Dnfc_vs.cc52 tNFC_STATUS NFC_RegVSCback(bool is_register, tNFC_VS_CBACK* p_cback) { in NFC_RegVSCback() argument
60 nfc_cb.p_vs_cb[i] = p_cback; in NFC_RegVSCback()
68 if (nfc_cb.p_vs_cb[i] == p_cback) { in NFC_RegVSCback()
91 tNFC_STATUS NFC_SendRawVsCommand(NFC_HDR* p_data, tNFC_VS_CBACK* p_cback) { in NFC_SendRawVsCommand() argument
103 ((tNFC_NCI_VS_MSG*)p_data)->p_cback = p_cback; in NFC_SendRawVsCommand()
124 tNFC_VS_CBACK* p_cback) { in NFC_SendVsCommand() argument
149 ((tNFC_NCI_VS_MSG*)p_data)->p_cback = p_cback; in NFC_SendVsCommand()
Dnfc_utils.cc45 tNFC_CONN_CB* nfc_alloc_conn_cb(tNFC_CONN_CBACK* p_cback) { in nfc_alloc_conn_cb() argument
55 p_conn_cb->p_cback = p_cback; in nfc_alloc_conn_cb()
165 p_cb->p_cback = nullptr; in nfc_free_conn_cb()
189 if (p_conn_cb->p_cback) { in nfc_reset_all_conn_cbs()
192 (*p_conn_cb->p_cback)(p_conn_cb->conn_id, NFC_DEACTIVATE_CEVT, in nfc_reset_all_conn_cbs()
Dnfc_main.cc700 tNFC_STATUS NFC_Enable(tNFC_RESPONSE_CBACK* p_cback) { in NFC_Enable() argument
704 if (!p_cback) { in NFC_Enable()
707 nfc_cb.p_resp_cback = p_cback; in NFC_Enable()
855 tNFC_DISCOVER_CBACK* p_cback) { in NFC_DiscoveryMap() argument
862 nfc_cb.p_discv_cback = p_cback; in NFC_DiscoveryMap()
919 tNFC_DISCOVER_CBACK* p_cback) { in NFC_DiscoveryStart() argument
929 nfc_cb.p_discv_cback = p_cback; in NFC_DiscoveryStart()
1005 tNFC_CONN_CBACK* p_cback) { in NFC_ConnCreate() argument
1011 p_cb = nfc_alloc_conn_cb(p_cback); in NFC_ConnCreate()
1034 p_cb->p_cback = p_cback; in NFC_ConnCreate()
[all …]
Dnfc_ncif.cc291 nfc_cb.p_vsc_cback = (void*)((tNFC_NCI_VS_MSG*)p_buf)->p_cback; in nfc_ncif_check_cmd_queue()
294 nfc_cb.p_vsc_cback = (void*)((tNFC_NCI_VS_MSG*)p_buf)->p_cback; in nfc_ncif_check_cmd_queue()
590 if (p_cb && p_cb->p_cback) { in nfc_ncif_error_status()
593 (*p_cb->p_cback)(conn_id, NFC_ERROR_CEVT, &nfc_conn); in nfc_ncif_error_status()
1295 if (p_cb->p_cback) { in nfc_ncif_proc_deactivate()
1298 (*p_cb->p_cback)(NFC_RF_CONN_ID, NFC_DEACTIVATE_CEVT, &nfc_conn); in nfc_ncif_proc_deactivate()
1322 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nfc_ncif_proc_ee_action() local
1327 if (p_cback) { in nfc_ncif_proc_ee_action()
1335 (*p_cback)(NFC_EE_ACTION_REVT, &nfc_response); in nfc_ncif_proc_ee_action()
1386 (*p_cback)(NFC_EE_ACTION_REVT, &nfc_response); in nfc_ncif_proc_ee_action()
[all …]
/system/nfc/src/nfc/tags/
Dce_main.cc63 if (ce_cb.p_cback) { in CE_SendRawFrame()
95 tCE_CBACK* p_cback) { in CE_SetActivatedTagType() argument
108 ce_cb.p_cback = p_cback; in CE_SetActivatedTagType()
115 ce_cb.p_cback = p_cback; in CE_SetActivatedTagType()
126 ce_cb.p_cback = nullptr; in CE_SetActivatedTagType()
Drw_main.cc170 if (rw_cb.p_cback) { in RW_SendRawFrame()
201 tRW_CBACK* p_cback) { in RW_SetActivatedTagType() argument
210 if (p_cback == nullptr) { in RW_SetActivatedTagType()
256 rw_cb.p_cback = p_cback; in RW_SetActivatedTagType()
311 if (status != NFC_STATUS_OK) rw_cb.p_cback = nullptr; in RW_SetActivatedTagType()
Dce_t4t.cc271 if (ce_cb.p_cback) { in ce_t4t_update_binary()
276 (*ce_cb.p_cback)(CE_T4T_NDEF_UPDATE_CPLT_EVT, &ce_data); in ce_t4t_update_binary()
289 if (ce_cb.p_cback) (*ce_cb.p_cback)(CE_T4T_NDEF_UPDATE_START_EVT, nullptr); in ce_t4t_update_binary()
445 (*(ce_cb.mem.t4t.reg_aid[ce_cb.mem.t4t.selected_aid_idx].p_cback))( in ce_t4t_process_select_app_cmd()
524 if (ce_cb.p_cback) in ce_t4t_process_timeout()
525 (*ce_cb.p_cback)(CE_T4T_NDEF_UPDATE_ABORT_EVT, &ce_data); in ce_t4t_process_timeout()
625 (*(ce_cb.mem.t4t.reg_aid[ce_cb.mem.t4t.selected_aid_idx].p_cback))( in ce_t4t_data_cback()
894 tCE_CBACK* p_cback) { in CE_T4tRegisterAID() argument
913 p_t4t->p_wildcard_aid_cback = p_cback; in CE_T4tRegisterAID()
925 if (p_cback == nullptr) { in CE_T4tRegisterAID()
[all …]
Drw_t2t.cc82 (*rw_cb.p_cback)(RW_T2T_RAW_FRAME_EVT, &rw_data); in rw_t2t_proc_data()
208 (*rw_cb.p_cback)(rw_event, &rw_data); in rw_t2t_proc_data()
214 (*rw_cb.p_cback)(rw_event, &rw_data); in rw_t2t_proc_data()
308 (*rw_cb.p_cback)(RW_T2T_INTF_ERROR_EVT, &rw_data); in rw_t2t_conn_cback()
433 (*rw_cb.p_cback)(RW_T2T_SELECT_CPLT_EVT, &rw_data); in rw_t2t_process_timeout()
546 (*rw_cb.p_cback)(rw_event, &rw_data); in rw_t2t_process_error()
555 (*rw_cb.p_cback)(rw_event, &rw_data); in rw_t2t_process_error()
575 (*rw_cb.p_cback)(RW_T2T_PRESENCE_CHECK_EVT, &rw_data); in rw_t2t_handle_presence_check_rsp()
631 (*rw_cb.p_cback)(event, &rw_data); in rw_t2t_resume_op()
889 if (!p_rw_cb->p_cback) { in RW_T2tPresenceCheck()
[all …]
Drw_t4t.cc1294 if (rw_cb.p_cback) { in rw_t4t_handle_error()
1338 (*(rw_cb.p_cback))(event, &rw_data); in rw_t4t_handle_error()
1504 if (rw_cb.p_cback) { in rw_t4t_sm_ndef_format()
1510 (*(rw_cb.p_cback))(RW_T4T_NDEF_FORMAT_CPLT_EVT, &rw_data); in rw_t4t_sm_ndef_format()
1778 if (rw_cb.p_cback) { in rw_t4t_sm_detect_ndef()
1790 (*(rw_cb.p_cback))(RW_T4T_NDEF_DETECT_EVT, &rw_data); in rw_t4t_sm_detect_ndef()
1966 if (rw_cb.p_cback) { in rw_t4t_sm_read_ndef()
1972 (*(rw_cb.p_cback))(RW_T4T_NDEF_READ_EVT, &rw_data); in rw_t4t_sm_read_ndef()
1980 (*(rw_cb.p_cback))(RW_T4T_NDEF_READ_CPLT_EVT, &rw_data); in rw_t4t_sm_read_ndef()
2048 if (rw_cb.p_cback) { in rw_t4t_sm_update_ndef()
[all …]
/system/nfc/src/nfc/nci/
Dnci_hrcv.cc328 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_rsp() local
386 p_cback = nullptr; in nci_proc_ee_management_rsp()
391 if (p_cback) (*p_cback)(event, &nfc_response); in nci_proc_ee_management_rsp()
406 tNFC_RESPONSE_CBACK* p_cback = nfc_cb.p_resp_cback; in nci_proc_ee_management_ntf() local
423 p_cback = nullptr; in nci_proc_ee_management_ntf()
434 p_cback = nullptr; in nci_proc_ee_management_ntf()
457 p_cback = nullptr; in nci_proc_ee_management_ntf()
469 p_cback = nullptr; in nci_proc_ee_management_ntf()
503 p_cback = nullptr; in nci_proc_ee_management_ntf()
507 if (p_cback) (*p_cback)(event, &nfc_response); in nci_proc_ee_management_ntf()
[all …]
/system/nfc/src/nfa/sys/
Dnfa_sys_cback.cc42 void nfa_sys_cback_reg_enable_complete(tNFA_SYS_ENABLE_CBACK* p_cback) { in nfa_sys_cback_reg_enable_complete() argument
43 nfa_sys_cb.p_enable_cback = p_cback; in nfa_sys_cback_reg_enable_complete()
82 tNFA_SYS_PROC_NFCC_PWR_MODE_CMPL* p_cback) { in nfa_sys_cback_reg_nfcc_power_mode_proc_complete() argument
83 nfa_sys_cb.p_proc_nfcc_pwr_mode_cmpl_cback = p_cback; in nfa_sys_cback_reg_nfcc_power_mode_proc_complete()
Dnfa_sys_ptim.cc95 if (p_tle->p_cback) { in nfa_sys_ptim_timer_update()
96 (*p_tle->p_cback)(p_tle); in nfa_sys_ptim_timer_update()
/system/nfc/src/nfa/ee/
Dnfa_ee_api.cc53 tNFA_STATUS NFA_EeDiscover(tNFA_EE_CBACK* p_cback) { in NFA_EeDiscover() argument
63 } else if ((nfa_ee_cb.p_ee_disc_cback != nullptr) || (p_cback == nullptr)) { in NFA_EeDiscover()
70 p_msg->p_cback = p_cback; in NFA_EeDiscover()
153 tNFA_STATUS NFA_EeRegister(tNFA_EE_CBACK* p_cback) { in NFA_EeRegister() argument
159 if (p_cback == nullptr) { in NFA_EeRegister()
166 p_msg->p_cback = p_cback; in NFA_EeRegister()
188 tNFA_STATUS NFA_EeDeregister(tNFA_EE_CBACK* p_cback) { in NFA_EeDeregister() argument
195 if (nfa_ee_cb.p_ee_cback[xx] == p_cback) { in NFA_EeDeregister()
833 tNFA_EE_CBACK* p_cback) { in NFA_EeConnect() argument
843 if ((p_cb == nullptr) || (p_cback == nullptr)) { in NFA_EeConnect()
[all …]
Dnfa_ee_act.cc808 void nfa_ee_report_event(tNFA_EE_CBACK* p_cback, tNFA_EE_EVT event, in nfa_ee_report_event() argument
813 if (p_cback) { in nfa_ee_report_event()
814 (*p_cback)(event, p_data); in nfa_ee_report_event()
849 tNFA_EE_CBACK* p_cback = p_data->ee_discover.p_cback; in nfa_ee_api_discover() local
859 nfa_ee_cb.p_ee_disc_cback = p_cback; in nfa_ee_api_discover()
862 nfa_ee_report_event(p_cback, NFA_EE_DISCOVER_EVT, &evt_data); in nfa_ee_api_discover()
877 tNFA_EE_CBACK* p_cback = p_data->ee_register.p_cback; in nfa_ee_api_register() local
884 if (nfa_ee_cb.p_ee_cback[xx] == p_cback) { in nfa_ee_api_register()
895 nfa_ee_cb.p_ee_cback[xx] = p_cback; in nfa_ee_api_register()
929 (*p_cback)(NFA_EE_REGISTER_EVT, &evt_data); in nfa_ee_api_register()
[all …]
/system/nfc/src/nfa/dm/
Dnfa_dm_api.cc1066 tNFC_STATUS NFA_RegVSCback(bool is_register, tNFA_VSC_CBACK* p_cback) { in NFA_RegVSCback() argument
1071 if (p_cback == nullptr) { in NFA_RegVSCback()
1080 p_msg->p_cback = p_cback; in NFA_RegVSCback()
1108 uint8_t* p_cmd_params, tNFA_VSC_CBACK* p_cback) { in NFA_SendVsCommand() argument
1118 p_msg->p_cback = p_cback; in NFA_SendVsCommand()
1153 tNFA_VSC_CBACK* p_cback) { in NFA_SendRawVsCommand() argument
1154 if (cmd_params_len == 0x00 || p_cmd_params == nullptr || p_cback == nullptr) { in NFA_SendRawVsCommand()
1162 p_msg->p_cback = p_cback; in NFA_SendRawVsCommand()
/system/nfc/src/nfa/include/
Dnfa_sys.h114 extern void nfa_sys_cback_reg_enable_complete(tNFA_SYS_ENABLE_CBACK* p_cback);
119 tNFA_SYS_PROC_NFCC_PWR_MODE_CMPL* p_cback);
Dnfa_ee_api.h236 extern tNFA_STATUS NFA_EeDiscover(tNFA_EE_CBACK* p_cback);
265 extern tNFA_STATUS NFA_EeRegister(tNFA_EE_CBACK* p_cback);
278 extern tNFA_STATUS NFA_EeDeregister(tNFA_EE_CBACK* p_cback);
557 tNFA_EE_CBACK* p_cback);
Dnfa_dta_int.h80 tNFA_DTA_CBACK* p_cback; member
172 tNFA_DTA_CBACK* p_cback; /* Applicatation for DTA event notification */ member
Dnfa_ee_int.h239 tNFA_EE_CBACK* p_cback; member
245 tNFA_EE_CBACK* p_cback; member
330 tNFA_EE_CBACK* p_cback; member
590 void nfa_ee_report_event(tNFA_EE_CBACK* p_cback, tNFA_EE_EVT event,
598 void nfa_ee_reg_cback_enable_done(tNFA_EE_ENABLE_DONE_CBACK* p_cback);
/system/nfc/src/fuzzers/rw/
Dstubs.cc42 void NFC_SetStaticRfCback(tNFC_CONN_CBACK* p_cback) { rf_cback = p_cback; } in NFC_SetStaticRfCback() argument
/system/nfc/src/fuzzers/ce/
Dstubs.cc45 void NFC_SetStaticRfCback(tNFC_CONN_CBACK* p_cback) { rf_cback = p_cback; } in NFC_SetStaticRfCback() argument
/system/nfc/src/nfc/include/
Dce_api.h169 tCE_CBACK* p_cback);
207 tCE_CBACK* p_cback);
Dnfc_api.h838 extern tNFC_STATUS NFC_Enable(tNFC_RESPONSE_CBACK* p_cback);
961 tNFC_DISCOVER_CBACK* p_cback);
981 tNFC_DISCOVER_CBACK* p_cback);
1039 uint8_t protocol, tNFC_CONN_CBACK* p_cback);
1069 extern void NFC_SetStaticRfCback(tNFC_CONN_CBACK* p_cback);
1234 extern tNFC_STATUS NFC_RegVSCback(bool is_register, tNFC_VS_CBACK* p_cback);
1251 tNFC_VS_CBACK* p_cback);
1267 tNFC_VS_CBACK* p_cback);
1348 extern void NFC_SetStaticHciCback(tNFC_CONN_CBACK* p_cback);
Dce_int.h86 tCE_CBACK* p_cback; member
128 tCE_CBACK* p_cback; member
Dnfc_int.h111 tNFC_CONN_CBACK* p_cback; /* the callback function to receive the data */ member
126 tNFC_VS_CBACK* p_cback; /* the callback function to receive RSP */ member
237 extern tNFC_CONN_CB* nfc_alloc_conn_cb(tNFC_CONN_CBACK* p_cback);

12