Home
last modified time | relevance | path

Searched refs:p_cb (Results 1 – 20 of 20) sorted by relevance

/external/libnfc-nci/src/nfa/ee/
Dnfa_ee_act.c124 static void nfa_ee_update_route_size(tNFA_EE_ECB *p_cb) in nfa_ee_update_route_size() argument
129 p_cb->size_mask = 0; in nfa_ee_update_route_size()
134 if (p_cb->tech_switch_on & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
136 if (p_cb->tech_switch_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
138 if (p_cb->tech_battery_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
143 p_cb->size_mask += 5; in nfa_ee_update_route_size()
151 if (p_cb->proto_switch_on & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size()
153 if (p_cb->proto_switch_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size()
155 if (p_cb->proto_battery_off & nfa_ee_proto_mask_list[xx]) in nfa_ee_update_route_size()
160 p_cb->size_mask += 5; in nfa_ee_update_route_size()
[all …]
Dnfa_ee_main.c152 void nfa_ee_restore_one_ecb (tNFA_EE_ECB *p_cb) in nfa_ee_restore_one_ecb() argument
158 …_flags:0x%x ee_status:0x%x ee_old_status: 0x%x", p_cb->nfcee_id, p_cb->ecb_flags, p_cb->ee_status,… in nfa_ee_restore_one_ecb()
159 …if ((p_cb->nfcee_id != NFA_EE_INVALID) && (p_cb->ee_status & NFA_EE_STATUS_RESTORING) == 0 && (p_c… in nfa_ee_restore_one_ecb()
161 p_cb->ee_old_status &= ~NFA_EE_STATUS_RESTORING; in nfa_ee_restore_one_ecb()
162 mask = nfa_ee_ecb_to_mask(p_cb); in nfa_ee_restore_one_ecb()
163 if (p_cb->ee_status != p_cb->ee_old_status) in nfa_ee_restore_one_ecb()
165 p_cb->ecb_flags |= NFA_EE_ECB_FLAGS_RESTORE; in nfa_ee_restore_one_ecb()
166 if (p_cb->ee_old_status == NFC_NFCEE_STATUS_ACTIVE) in nfa_ee_restore_one_ecb()
168 NFC_NfceeModeSet (p_cb->nfcee_id, NFC_MODE_ACTIVATE); in nfa_ee_restore_one_ecb()
174 p_cb->ecb_flags |= NFA_EE_ECB_FLAGS_ROUTING; in nfa_ee_restore_one_ecb()
[all …]
Dnfa_ee_api.c96 tNFA_EE_ECB *p_cb = nfa_ee_cb.ecb; in NFA_EeGetInfo() local
116 for (xx = 0; (xx < ret) && (num_ret < max_ret); xx++, p_cb++) in NFA_EeGetInfo()
118 …NFA_TRACE_DEBUG4 ("xx:%d max_ret:%d, num_ret:%d ee_status:0x%x", xx, max_ret, num_ret, p_cb->ee_st… in NFA_EeGetInfo()
119 … if ((p_cb->ee_status & NFA_EE_STATUS_INT_MASK) || (p_cb->ee_status == NFA_EE_STATUS_REMOVED)) in NFA_EeGetInfo()
123 p_info->ee_handle = NFA_HANDLE_GROUP_EE | (tNFA_HANDLE)p_cb->nfcee_id; in NFA_EeGetInfo()
124 p_info->ee_status = p_cb->ee_status; in NFA_EeGetInfo()
125 p_info->num_interface = p_cb->num_interface; in NFA_EeGetInfo()
126 p_info->num_tlvs = p_cb->num_tlvs; in NFA_EeGetInfo()
127 memcpy(p_info->ee_interface, p_cb->ee_interface, p_cb->num_interface); in NFA_EeGetInfo()
128 memcpy(p_info->ee_tlv, p_cb->ee_tlv, p_cb->num_tlvs * sizeof(tNFA_EE_TLV)); in NFA_EeGetInfo()
[all …]
/external/libnfc-nci/src/nfa/ce/
Dnfa_ce_act.c51 tNFA_CE_CB *p_cb = &nfa_ce_cb; in nfa_ce_handle_t3t_evt() local
60 if (p_cb->idx_cur_active == NFA_CE_LISTEN_INFO_IDX_NDEF) in nfa_ce_handle_t3t_evt()
63 (*p_cb->p_active_conn_cback) (NFA_CE_NDEF_WRITE_START_EVT, &conn_evt); in nfa_ce_handle_t3t_evt()
73 if (p_cb->idx_cur_active == NFA_CE_LISTEN_INFO_IDX_NDEF) in nfa_ce_handle_t3t_evt()
78 (*p_cb->p_active_conn_cback) (NFA_CE_NDEF_WRITE_CPLT_EVT, &conn_evt); in nfa_ce_handle_t3t_evt()
87 if (p_cb->idx_cur_active == NFA_CE_LISTEN_INFO_IDX_NDEF) in nfa_ce_handle_t3t_evt()
92 (*p_cb->p_active_conn_cback) (NFA_DATA_EVT, &conn_evt); in nfa_ce_handle_t3t_evt()
97 conn_evt.ce_data.handle = (NFA_HANDLE_GROUP_CE | ((tNFA_HANDLE)p_cb->idx_cur_active)); in nfa_ce_handle_t3t_evt()
100 (*p_cb->p_active_conn_cback) (NFA_CE_DATA_EVT, &conn_evt); in nfa_ce_handle_t3t_evt()
122 tNFA_CE_CB *p_cb = &nfa_ce_cb; in nfa_ce_handle_t4t_evt() local
[all …]
Dnfa_ce_main.c139 tNFA_CE_CB *p_cb = &nfa_ce_cb; in nfa_ce_proc_nfcc_power_mode() local
155 if ( (p_cb->listen_info[listen_info_idx].flags & NFA_CE_LISTEN_INFO_IN_USE) in nfa_ce_proc_nfcc_power_mode()
156 &&(p_cb->listen_info[listen_info_idx].rf_disc_handle != NFA_HANDLE_INVALID)) in nfa_ce_proc_nfcc_power_mode()
158 nfa_dm_delete_rf_discover (p_cb->listen_info[listen_info_idx].rf_disc_handle); in nfa_ce_proc_nfcc_power_mode()
159 p_cb->listen_info[listen_info_idx].rf_disc_handle = NFA_HANDLE_INVALID; in nfa_ce_proc_nfcc_power_mode()
/external/libnfc-nci/src/nfc/tags/
Drw_t3t.c129 static void rw_t3t_handle_get_sc_poll_rsp (tRW_T3T_CB *p_cb, UINT8 nci_status, UINT8 num_responses,…
130 static void rw_t3t_handle_ndef_detect_poll_rsp (tRW_T3T_CB *p_cb, UINT8 nci_status, UINT8 num_respo…
131 static void rw_t3t_handle_fmt_poll_rsp (tRW_T3T_CB *p_cb, UINT8 nci_status, UINT8 num_responses, UI…
132 static void rw_t3t_handle_sro_poll_rsp (tRW_T3T_CB *p_cb, UINT8 nci_status, UINT8 num_responses, UI…
185 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_check_timeout() local
189 …timeout = (p_cb->check_tout_a + num_blocks * p_cb->check_tout_b)*QUICK_TIMER_TICKS_PER_SEC/1000000; in rw_t3t_check_timeout()
208 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_update_timeout() local
212 …timeout = (p_cb->update_tout_a + num_blocks * p_cb->update_tout_b)*QUICK_TIMER_TICKS_PER_SEC/10000… in rw_t3t_update_timeout()
230 tRW_T3T_CB *p_cb = &rw_cb.tcb.t3t; in rw_t3t_process_error() local
235 if (p_cb->rw_state == RW_T3T_STATE_COMMAND_PENDING) in rw_t3t_process_error()
[all …]
Dce_t3t.c181 tCE_T3T_MEM *p_cb = &p_ce_cb->mem.t3t; in ce_t3t_send_rsp() local
188 p_nfcid2 = p_cb->local_nfcid2; in ce_t3t_send_rsp()
225 tCE_T3T_MEM *p_cb = &p_ce_cb->mem.t3t; in ce_t3t_handle_update_cmd() local
227 UINT8 *p_block_list = p_cb->cur_cmd.p_block_list_start; in ce_t3t_handle_update_cmd()
228 UINT8 *p_block_data = p_cb->cur_cmd.p_block_data_start; in ce_t3t_handle_update_cmd()
238 if (p_cb->state == CE_T3T_STATE_IDLE) in ce_t3t_handle_update_cmd()
240 p_cb->state = CE_T3T_STATE_UPDATING; in ce_t3t_handle_update_cmd()
243 for (i = 0; i < p_cb->cur_cmd.num_blocks; i++) in ce_t3t_handle_update_cmd()
258 service_code = p_cb->cur_cmd.service_code_list[bl0 & T3T_MSG_SERVICE_LIST_MASK]; in ce_t3t_handle_update_cmd()
272 if (p_cb->cur_cmd.num_blocks > p_cb->ndef_info.nbw) in ce_t3t_handle_update_cmd()
[all …]
/external/libnfc-nci/src/nfa/sys/
Dnfa_sys_ptim.c43 void nfa_sys_ptim_init (tPTIM_CB *p_cb, UINT16 period, UINT8 timer_id) in nfa_sys_ptim_init() argument
45 GKI_init_timer_list (&p_cb->timer_queue); in nfa_sys_ptim_init()
46 p_cb->period = period; in nfa_sys_ptim_init()
47 p_cb->timer_id = timer_id; in nfa_sys_ptim_init()
61 void nfa_sys_ptim_timer_update (tPTIM_CB *p_cb) in nfa_sys_ptim_timer_update() argument
74 if (new_ticks_count >= p_cb->last_gki_ticks) in nfa_sys_ptim_timer_update()
76 period_in_ticks = (INT32) (new_ticks_count - p_cb->last_gki_ticks); in nfa_sys_ptim_timer_update()
80 period_in_ticks = (INT32) (((UINT32) 0xffffffff - p_cb->last_gki_ticks) in nfa_sys_ptim_timer_update()
85 GKI_update_timer_list (&p_cb->timer_queue, GKI_TICKS_TO_MS (period_in_ticks)); in nfa_sys_ptim_timer_update()
87 p_cb->last_gki_ticks = new_ticks_count; in nfa_sys_ptim_timer_update()
[all …]
/external/libnfc-nci/src/gki/common/
Dgki_buffer.c54 tGKI_COM_CB *p_cb = &gki_cb.com; in gki_init_free_queue() local
63 p_cb->pool_start[id] = (UINT8 *)p_mem; in gki_init_free_queue()
64 p_cb->pool_end[id] = (UINT8 *)p_mem + (act_size * total); in gki_init_free_queue()
67 p_cb->pool_size[id] = act_size; in gki_init_free_queue()
69 p_cb->freeq[id].size = (UINT16) tempsize; in gki_init_free_queue()
70 p_cb->freeq[id].total = total; in gki_init_free_queue()
71 p_cb->freeq[id].cur_cnt = 0; in gki_init_free_queue()
72 p_cb->freeq[id].max_cnt = 0; in gki_init_free_queue()
82 p_cb->freeq[id].p_first = hdr; in gki_init_free_queue()
95 p_cb->freeq[id].p_last = hdr1; in gki_init_free_queue()
[all …]
/external/libnfc-nci/halimpl/bcm2079x/gki/common/
Dgki_buffer.c54 tGKI_COM_CB *p_cb = &gki_cb.com; in gki_init_free_queue() local
63 p_cb->pool_start[id] = (UINT8 *)p_mem; in gki_init_free_queue()
64 p_cb->pool_end[id] = (UINT8 *)p_mem + (act_size * total); in gki_init_free_queue()
67 p_cb->pool_size[id] = act_size; in gki_init_free_queue()
69 p_cb->freeq[id].size = (UINT16) tempsize; in gki_init_free_queue()
70 p_cb->freeq[id].total = total; in gki_init_free_queue()
71 p_cb->freeq[id].cur_cnt = 0; in gki_init_free_queue()
72 p_cb->freeq[id].max_cnt = 0; in gki_init_free_queue()
82 p_cb->freeq[id].p_first = hdr; in gki_init_free_queue()
95 p_cb->freeq[id].p_last = hdr1; in gki_init_free_queue()
[all …]
/external/libnfc-nci/halimpl/bcm2079x/hal/hal/
Dnfc_hal_nci.c179 static BOOLEAN nfc_hal_nci_receive_nci_msg (tNFC_HAL_NCIT_CB *p_cb, UINT8 byte) in nfc_hal_nci_receive_nci_msg() argument
184 switch (p_cb->rcv_state) in nfc_hal_nci_receive_nci_msg()
189 p_cb->rcv_state = NFC_HAL_RCV_NCI_HDR_ST; in nfc_hal_nci_receive_nci_msg()
190 p_cb->rcv_len = NCI_MSG_HDR_SIZE; in nfc_hal_nci_receive_nci_msg()
193 if ((p_cb->p_rcv_msg = (NFC_HDR *) GKI_getpoolbuf (NFC_HAL_NCI_POOL_ID)) != NULL) in nfc_hal_nci_receive_nci_msg()
196 p_cb->p_rcv_msg->len = 0; in nfc_hal_nci_receive_nci_msg()
197 p_cb->p_rcv_msg->event = 0; in nfc_hal_nci_receive_nci_msg()
198 p_cb->p_rcv_msg->offset = 0; in nfc_hal_nci_receive_nci_msg()
200 … *((UINT8 *) (p_cb->p_rcv_msg + 1) + p_cb->p_rcv_msg->offset + p_cb->p_rcv_msg->len++) = byte; in nfc_hal_nci_receive_nci_msg()
206 p_cb->rcv_len--; in nfc_hal_nci_receive_nci_msg()
[all …]
/external/libnfc-nci/src/nfa/dm/
Dnfa_dm_ndef.c87 tNFA_DM_CB *p_cb = &nfa_dm_cb; in nfa_dm_ndef_dereg_hdlr_by_handle() local
91 if (p_cb->p_ndef_handler[hdlr_idx]) in nfa_dm_ndef_dereg_hdlr_by_handle()
93 GKI_freebuf (p_cb->p_ndef_handler[hdlr_idx]); in nfa_dm_ndef_dereg_hdlr_by_handle()
94 p_cb->p_ndef_handler[hdlr_idx] = NULL; in nfa_dm_ndef_dereg_hdlr_by_handle()
110 tNFA_DM_CB *p_cb = &nfa_dm_cb; in nfa_dm_ndef_dereg_all() local
116 if (p_cb->p_ndef_handler[i] != NULL) in nfa_dm_ndef_dereg_all()
118 GKI_freebuf (p_cb->p_ndef_handler[i]); in nfa_dm_ndef_dereg_all()
119 p_cb->p_ndef_handler[i] = NULL; in nfa_dm_ndef_dereg_all()
136 tNFA_DM_CB *p_cb = &nfa_dm_cb; in nfa_dm_ndef_reg_hdlr() local
145 if (p_cb->p_ndef_handler[NFA_NDEF_DEFAULT_HANDLER_IDX]) in nfa_dm_ndef_reg_hdlr()
[all …]
/external/libnfc-nci/src/nfc/nfc/
Dnfc_ncif.c139 UINT8 nfc_ncif_send_data (tNFC_CONN_CB *p_cb, BT_HDR *p_data) in nfc_ncif_send_data() argument
146 UINT8 buffer_size = p_cb->buff_size; in nfc_ncif_send_data()
147 UINT8 hdr0 = p_cb->conn_id; in nfc_ncif_send_data()
150 …TRACE_DEBUG3 ("nfc_ncif_send_data :%d, num_buff:%d qc:%d", p_cb->conn_id, p_cb->num_buff, p_cb->tx… in nfc_ncif_send_data()
151 if (p_cb->id == NFC_RF_CONN_ID) in nfc_ncif_send_data()
160 if (p_cb->init_credits == p_cb->num_buff) in nfc_ncif_send_data()
164 …CE_DEBUG2 ("deactivating NFC-DEP init_credits:%d, num_buff:%d", p_cb->init_credits, p_cb->num_buff… in nfc_ncif_send_data()
177 GKI_enqueue (&p_cb->tx_q, p_data); in nfc_ncif_send_data()
181 p_data = (BT_HDR *)GKI_getfirst (&p_cb->tx_q); in nfc_ncif_send_data()
184 while (p_data && (p_data->len >= 0) && (p_cb->num_buff > 0)) in nfc_ncif_send_data()
[all …]
Dnfc_utils.c74 void nfc_set_conn_id (tNFC_CONN_CB * p_cb, UINT8 conn_id) in nfc_set_conn_id() argument
78 if (p_cb == NULL) in nfc_set_conn_id()
81 p_cb->conn_id = conn_id; in nfc_set_conn_id()
82 handle = (UINT8) (p_cb - nfc_cb.conn_cb + 1); in nfc_set_conn_id()
165 void nfc_free_conn_cb (tNFC_CONN_CB *p_cb) in nfc_free_conn_cb() argument
169 if (p_cb == NULL) in nfc_free_conn_cb()
172 while ((p_buf = GKI_dequeue (&p_cb->rx_q)) != NULL) in nfc_free_conn_cb()
175 while ((p_buf = GKI_dequeue (&p_cb->tx_q)) != NULL) in nfc_free_conn_cb()
178 nfc_cb.conn_id[p_cb->conn_id] = 0; in nfc_free_conn_cb()
179 p_cb->p_cback = NULL; in nfc_free_conn_cb()
[all …]
Dnfc_main.c218 tNFC_CONN_CB *p_cb = &nfc_cb.conn_cb[NFC_RF_CONN_ID]; in nfc_enabled() local
258 p_cb->init_credits = p_cb->num_buff = 0; in nfc_enabled()
260 nfc_set_conn_id (p_cb, NFC_RF_CONN_ID); in nfc_enabled()
274 nfc_free_conn_cb (p_cb); in nfc_enabled()
980 tNFC_CONN_CB *p_cb; in NFC_ConnCreate() local
984 p_cb = nfc_alloc_conn_cb (p_cback); in NFC_ConnCreate()
985 if (p_cb) in NFC_ConnCreate()
987 p_cb->id = id; in NFC_ConnCreate()
1008 p_cb->id = NFC_TEST_ID; in NFC_ConnCreate()
1011 p_cb->act_protocol = protocol; in NFC_ConnCreate()
[all …]
Dnfc_test.c57 tNFC_CONN_CB *p_cb = nfc_find_conn_cb_by_handle (NCI_TEST_ID); in NFC_TestLoopback() local
59 if (p_data && p_cb && (p_data->offset >= (NCI_MSG_OFFSET_SIZE + NCI_DATA_HDR_SIZE))) in NFC_TestLoopback()
61 status = nfc_ncif_send_data (p_cb, p_data); in NFC_TestLoopback()
/external/libnfc-nci/src/nfa/int/
Dnfa_sys_ptim.h60 extern void nfa_sys_ptim_init (tPTIM_CB *p_cb, UINT16 period, UINT8 timer_id);
71 extern void nfa_sys_ptim_timer_update (tPTIM_CB *p_cb);
83 extern void nfa_sys_ptim_start_timer (tPTIM_CB *p_cb, TIMER_LIST_ENT *p_tle, UINT16 type, INT32 tim…
94 extern void nfa_sys_ptim_stop_timer (tPTIM_CB *p_cb, TIMER_LIST_ENT *p_tle);
Dnfa_ee_int.h192 tNFA_EE_ECB *p_cb; member
201 tNFA_EE_ECB *p_cb; member
212 tNFA_EE_ECB *p_cb; member
223 tNFA_EE_ECB *p_cb; member
245 tNFA_EE_ECB *p_cb; member
255 tNFA_EE_ECB *p_cb; member
265 tNFA_EE_ECB *p_cb; member
280 tNFA_EE_ECB *p_cb; member
452 UINT8 nfa_ee_ecb_to_mask (tNFA_EE_ECB *p_cb);
453 void nfa_ee_restore_one_ecb (tNFA_EE_ECB *p_cb);
[all …]
/external/libnfc-nci/src/nfc/int/
Dnfc_int.h228 NFC_API extern void nfc_set_conn_id (tNFC_CONN_CB * p_cb, UINT8 conn_id);
229 NFC_API extern void nfc_free_conn_cb (tNFC_CONN_CB *p_cb);
231 NFC_API extern void nfc_data_event (tNFC_CONN_CB * p_cb);
234 extern UINT8 nfc_ncif_send_data (tNFC_CONN_CB *p_cb, BT_HDR *p_data);
/external/libnfc-nci/src/nfa/hci/
Dnfa_hci_utils.c422 tNFA_HCI_DYN_GATE *p_cb; in nfa_hciu_get_allocated_gate_list() local
426 for (xx = 0, p_cb = nfa_hci_cb.cfg.dyn_gates; xx < NFA_HCI_MAX_GATE_CB; xx++, p_cb++) in nfa_hciu_get_allocated_gate_list()
428 if (p_cb->gate_id != 0) in nfa_hciu_get_allocated_gate_list()
430 *p_gate_list++ = p_cb->gate_id; in nfa_hciu_get_allocated_gate_list()