Home
last modified time | relevance | path

Searched refs:nfc_hal_cb (Results 1 – 9 of 9) sorted by relevance

/external/libnfc-nci/halimpl/bcm2079x/hal/hal/
Dnfc_hal_prm.c50 #define NFC_HAL_PRM_STATE(str) HAL_TRACE_DEBUG2 ("%s st: %d", str, nfc_hal_cb.prm.state)
87 nfc_hal_cb.prm.state = NFC_HAL_PRM_ST_IDLE; in nfc_hal_prm_spd_handle_download_complete()
90 if (nfc_hal_cb.prm.p_cback) in nfc_hal_prm_spd_handle_download_complete()
91 (nfc_hal_cb.prm.p_cback) (event); in nfc_hal_prm_spd_handle_download_complete()
106 UINT16 len, offset = nfc_hal_cb.prm.cur_patch_offset; in nfc_hal_prm_spd_send_next_segment()
113 if (nfc_hal_cb.prm.cur_patch_len_remaining < patch_hdr_size) in nfc_hal_prm_spd_send_next_segment()
121 p_src = (UINT8*) (nfc_hal_cb.prm.p_cur_patch_data + offset); in nfc_hal_prm_spd_send_next_segment()
130 nfc_hal_cb.prm.cur_patch_offset += (len + patch_hdr_size); in nfc_hal_prm_spd_send_next_segment()
131 nfc_hal_cb.prm.cur_patch_len_remaining -= (len + patch_hdr_size); in nfc_hal_prm_spd_send_next_segment()
137 nfc_hal_cb.prm.flags |= NFC_HAL_PRM_FLAGS_SIGNATURE_SENT; in nfc_hal_prm_spd_send_next_segment()
[all …]
Dnfc_hal_dm.c200 if (nfc_hal_cb.dev_cb.next_dm_config == NFC_HAL_DM_CONFIG_NONE) in nfc_hal_dm_config_nfcc_cback()
227 if (nfc_hal_cb.dev_cb.next_startup_vsc + NCI_MSG_HDR_SIZE - 1 <= *p_nfc_hal_dm_start_up_vsc_cfg) in nfc_hal_dm_send_startup_vsc()
229 p = p_nfc_hal_dm_start_up_vsc_cfg + nfc_hal_cb.dev_cb.next_startup_vsc; in nfc_hal_dm_send_startup_vsc()
236 nfc_hal_cb.dev_cb.next_startup_vsc += NCI_MSG_HDR_SIZE + len; in nfc_hal_dm_send_startup_vsc()
240 nfc_hal_cb.dev_cb.next_dm_config = NFC_HAL_DM_CONFIG_NONE; in nfc_hal_dm_send_startup_vsc()
250 nfc_hal_cb.p_stack_cback (HAL_NFC_POST_INIT_CPLT_EVT, HAL_NFC_STATUS_FAILED); in nfc_hal_dm_send_startup_vsc()
264 …HAL_TRACE_DEBUG1 ("nfc_hal_dm_config_nfcc (): next_dm_config = %d", nfc_hal_cb.dev_cb.next_dm_conf… in nfc_hal_dm_config_nfcc()
266 if ((p_nfc_hal_dm_lptd_cfg[0]) && (nfc_hal_cb.dev_cb.next_dm_config <= NFC_HAL_DM_CONFIG_LPTD)) in nfc_hal_dm_config_nfcc()
268 nfc_hal_cb.dev_cb.next_dm_config = NFC_HAL_DM_CONFIG_PLL_325; in nfc_hal_dm_config_nfcc()
279 nfc_hal_cb.p_stack_cback (HAL_NFC_POST_INIT_CPLT_EVT, HAL_NFC_STATUS_FAILED); in nfc_hal_dm_config_nfcc()
[all …]
Dnfc_hal_hci.c94 …if ( (nfc_hal_cb.hci_cb.p_hci_netwk_info_buf && (p_evt_data->nv_read.block == HC_F3_NV_BLOCK || p… in nfc_hal_hci_evt_hdlr()
95 … ||(nfc_hal_cb.hci_cb.p_hci_netwk_dh_info_buf && p_evt_data->nv_read.block == HC_F2_NV_BLOCK) ) in nfc_hal_hci_evt_hdlr()
131 if (nfc_hal_cb.nvm_cb.nvm_type == NCI_SPD_NVM_TYPE_NONE) in nfc_hal_hci_enable()
133 …nfc_hal_hci_enable (): No HCI NETWK CMD to send for NVM Type: 0x%02x", nfc_hal_cb.nvm_cb.nvm_type); in nfc_hal_hci_enable()
138 if (nfc_hal_cb.hci_cb.p_hci_netwk_dh_info_buf) in nfc_hal_hci_enable()
140 p_hci_netwk_cmd = (UINT8 *) (nfc_hal_cb.hci_cb.p_hci_netwk_dh_info_buf - NCI_MSG_HDR_SIZE); in nfc_hal_hci_enable()
142 nfc_hal_cb.hci_cb.p_hci_netwk_dh_info_buf = NULL; in nfc_hal_hci_enable()
145 if (nfc_hal_cb.hci_cb.p_hci_netwk_info_buf) in nfc_hal_hci_enable()
147 p_hci_netwk_cmd = (UINT8 *) (nfc_hal_cb.hci_cb.p_hci_netwk_info_buf - NCI_MSG_HDR_SIZE); in nfc_hal_hci_enable()
149 nfc_hal_cb.hci_cb.p_hci_netwk_info_buf = NULL; in nfc_hal_hci_enable()
[all …]
Dnfc_hal_main.c45 tNFC_HAL_CB nfc_hal_cb; variable
85 memset (&nfc_hal_cb, 0, sizeof (tNFC_HAL_CB)); in nfc_hal_main_init()
87 nfc_hal_cb.ncit_cb.nci_ctrl_size = NFC_HAL_NCI_INIT_CTRL_PAYLOAD_SIZE; in nfc_hal_main_init()
88 nfc_hal_cb.trace_level = NFC_HAL_INITIAL_TRACE_LEVEL; in nfc_hal_main_init()
89 nfc_hal_cb.timer.p_cback = nfc_hal_main_timeout_cback; in nfc_hal_main_init()
106 nfc_hal_cb.ncit_cb.rcv_state = NFC_HAL_RCV_IDLE_ST; /* to process packet type */ in nfc_hal_main_open_transport()
108 if (nfc_hal_cb.ncit_cb.p_rcv_msg) in nfc_hal_main_open_transport()
110 GKI_freebuf (nfc_hal_cb.ncit_cb.p_rcv_msg); in nfc_hal_main_open_transport()
111 nfc_hal_cb.ncit_cb.p_rcv_msg = NULL; in nfc_hal_main_open_transport()
127 nfc_hal_main_start_quick_timer (&nfc_hal_cb.timer, NFC_HAL_TTYPE_NFCC_ENABLE, in nfc_hal_main_open_transport()
[all …]
Dnfc_hal_nci.c54 NFC_HDR *p_msg = nfc_hal_cb.ncit_cb.p_rcv_msg; in nfc_hal_nci_assemble_nci_msg()
90 if (nfc_hal_cb.ncit_cb.p_frag_msg) in nfc_hal_nci_assemble_nci_msg()
92 if (nfc_hal_cb.ncit_cb.p_frag_msg->layer_specific != p_msg->layer_specific) in nfc_hal_nci_assemble_nci_msg()
95 …2 ("nfc_hal_nci_assemble_nci_msg() - different messages 0x%x, 0x%x!!", nfc_hal_cb.ncit_cb.p_frag_m… in nfc_hal_nci_assemble_nci_msg()
96 nfc_hal_cb.ncit_cb.nci_ras |= NFC_HAL_NCI_RAS_ERROR; in nfc_hal_nci_assemble_nci_msg()
98 else if (nfc_hal_cb.ncit_cb.nci_ras == 0) in nfc_hal_nci_assemble_nci_msg()
104 size = GKI_get_buf_size (nfc_hal_cb.ncit_cb.p_frag_msg); in nfc_hal_nci_assemble_nci_msg()
105 …needed = (NFC_HDR_SIZE + nfc_hal_cb.ncit_cb.p_frag_msg->len + nfc_hal_cb.ncit_cb.p_frag_msg->offs… in nfc_hal_nci_assemble_nci_msg()
110 …pd = (UINT8 *) (nfc_hal_cb.ncit_cb.p_frag_msg + 1) + nfc_hal_cb.ncit_cb.p_frag_msg->offset + nfc… in nfc_hal_nci_assemble_nci_msg()
112 nfc_hal_cb.ncit_cb.p_frag_msg->len += p_msg->len; in nfc_hal_nci_assemble_nci_msg()
[all …]
Dnfc_hal_api.c112 nfc_hal_cb.p_stack_cback = p_hal_cback; in HAL_NfcOpen()
113 nfc_hal_cb.p_data_cback = p_data_cback; in HAL_NfcOpen()
135 if (nfc_hal_cb.p_stack_cback) in HAL_NfcClose()
239 if (nfc_hal_cb.pre_discover_done == FALSE) in HAL_NfcPreDiscover()
241 nfc_hal_cb.pre_discover_done = TRUE; in HAL_NfcPreDiscover()
304 if (nfc_hal_cb.p_stack_cback) in HAL_NfcPowerCycle()
322 HAL_TRACE_API1 ("HAL_NfcGetMaxNfcee: %d",nfc_hal_cb.max_ee); in HAL_NfcGetMaxNfcee()
323 return nfc_hal_cb.max_ee; in HAL_NfcGetMaxNfcee()
/external/libnfc-nci/src/hal/include/
Dnfc_hal_target.h189 #define HAL_TRACE_ERROR0(m) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_ERROR…
190 #define HAL_TRACE_ERROR1(m,p1) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_ERROR…
191 #define HAL_TRACE_ERROR2(m,p1,p2) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_ERROR…
192 #define HAL_TRACE_ERROR3(m,p1,p2,p3) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_ERROR…
193 #define HAL_TRACE_ERROR4(m,p1,p2,p3,p4) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_ERROR…
194 #define HAL_TRACE_ERROR5(m,p1,p2,p3,p4,p5) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_ERROR…
195 #define HAL_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_ERROR…
197 #define HAL_TRACE_WARNING0(m) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_WARNI…
198 #define HAL_TRACE_WARNING1(m,p1) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_WARNI…
199 #define HAL_TRACE_WARNING2(m,p1,p2) {if (nfc_hal_cb.trace_level >= BT_TRACE_LEVEL_WARNI…
[all …]
/external/libnfc-nci/src/hal/int/
Dnfc_hal_int.h201 …EBUG3 ("init state: %d->%d(%s)", nfc_hal_cb.dev_cb.initializing_state, state, nfc_hal_init_state_s…
203 #define NFC_HAL_SET_INIT_STATE(state) nfc_hal_cb.dev_cb.initializing_state = state;
451 extern tNFC_HAL_CB nfc_hal_cb;
453 #define nfc_hal_cb (*nfc_hal_cb_ptr) macro
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
Dpatchram.cpp374 nfc_hal_cb.max_ee = BRCM_NFC_20791_GEN_MAX_EE; in getNfaValues()
379 nfc_hal_cb.max_ee = BRCM_NFC_43341_GEN_MAX_EE; in getNfaValues()
384 nfc_hal_cb.max_ee = BRCM_NFC_20795_GEN_MAX_EE; in getNfaValues()
390 nfc_hal_cb.max_ee = num; in getNfaValues()