Home
last modified time | relevance | path

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

123

/system/bt/stack/smp/
Dsmp_act.cc52 static bool pts_test_send_authentication_complete_failure(tSMP_CB* p_cb) { in pts_test_send_authentication_complete_failure() argument
53 uint8_t reason = p_cb->cert_failure; in pts_test_send_authentication_complete_failure()
59 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data); in pts_test_send_authentication_complete_failure()
69 static void smp_update_key_mask(tSMP_CB* p_cb, uint8_t key_type, bool recv) { in smp_update_key_mask() argument
72 __func__, p_cb->role, recv, p_cb->local_i_key, p_cb->local_r_key); in smp_update_key_mask()
74 if (((p_cb->le_secure_connections_mode_is_used) || (p_cb->smp_over_br)) && in smp_update_key_mask()
79 p_cb->local_i_key &= ~key_type; in smp_update_key_mask()
80 p_cb->local_r_key &= ~key_type; in smp_update_key_mask()
81 } else if (p_cb->role == HCI_ROLE_SLAVE) { in smp_update_key_mask()
83 p_cb->local_i_key &= ~key_type; in smp_update_key_mask()
[all …]
Dsmp_keys.cc51 static void smp_process_stk(tSMP_CB* p_cb, Octet16* p);
52 static Octet16 smp_calculate_legacy_short_term_key(tSMP_CB* p_cb);
53 static void smp_process_private_key(tSMP_CB* p_cb);
111 void smp_proc_passkey(tSMP_CB* p_cb, BT_OCTET8 rand) { in smp_proc_passkey() argument
112 uint8_t* tt = p_cb->tk.data(); in smp_proc_passkey()
124 p_cb->tk = {0}; in smp_proc_passkey()
127 if (p_cb->p_callback) { in smp_proc_passkey()
130 (*p_cb->p_callback)(SMP_PASSKEY_NOTIF_EVT, p_cb->pairing_bda, in smp_proc_passkey()
134 if (p_cb->selected_association_model == SMP_MODEL_SEC_CONN_PASSKEY_DISP) { in smp_proc_passkey()
141 key.p_data = p_cb->tk.data(); in smp_proc_passkey()
[all …]
Dsmp_api.cc134 tSMP_CB* p_cb = &smp_cb; in SMP_Pair() local
137 p_cb->state, p_cb->br_state, p_cb->flags, in SMP_Pair()
140 if (p_cb->state != SMP_STATE_IDLE || in SMP_Pair()
141 p_cb->flags & SMP_PAIR_FLAGS_WE_STARTED_DD || p_cb->smp_over_br) { in SMP_Pair()
145 p_cb->flags = SMP_PAIR_FLAGS_WE_STARTED_DD; in SMP_Pair()
146 p_cb->pairing_bda = bd_addr; in SMP_Pair()
152 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data); in SMP_Pair()
174 tSMP_CB* p_cb = &smp_cb; in SMP_BR_PairWith() local
177 p_cb->state, p_cb->br_state, p_cb->flags, in SMP_BR_PairWith()
180 if (p_cb->state != SMP_STATE_IDLE || p_cb->smp_over_br || in SMP_BR_PairWith()
[all …]
Dsmp_utils.cc78 static bool smp_parameter_unconditionally_valid(tSMP_CB* p_cb);
79 static bool smp_parameter_unconditionally_invalid(tSMP_CB* p_cb);
82 typedef bool (*tSMP_CMD_LEN_VALID)(tSMP_CB* p_cb);
84 static bool smp_command_has_valid_fixed_length(tSMP_CB* p_cb);
106 typedef bool (*tSMP_CMD_PARAM_RANGES_VALID)(tSMP_CB* p_cb);
108 static bool smp_pairing_request_response_parameters_are_valid(tSMP_CB* p_cb);
109 static bool smp_pairing_keypress_notification_is_valid(tSMP_CB* p_cb);
135 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb);
137 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
139 tSMP_CB* p_cb);
[all …]
Dsmp_l2c.cc96 tSMP_CB* p_cb = &smp_cb; in smp_connect_callback() local
101 p_cb->pairing_bda.ToString().c_str()); in smp_connect_callback()
105 if (bd_addr == p_cb->pairing_bda) { in smp_connect_callback()
110 if (!p_cb->connect_initialized) { in smp_connect_callback()
111 p_cb->connect_initialized = true; in smp_connect_callback()
113 p_cb->role = L2CA_GetBleConnRole(bd_addr); in smp_connect_callback()
116 p_cb->local_r_key = p_cb->local_i_key = SMP_SEC_DEFAULT_KEY; in smp_connect_callback()
117 p_cb->loc_auth_req = p_cb->peer_auth_req = SMP_DEFAULT_AUTH_REQ; in smp_connect_callback()
118 p_cb->cb_evt = SMP_IO_CAP_REQ_EVT; in smp_connect_callback()
119 smp_sm_event(p_cb, SMP_L2CAP_CONN_EVT, NULL); in smp_connect_callback()
[all …]
Dsmp_int.h334 typedef void (*tSMP_ACT)(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
342 extern void smp_sm_event(tSMP_CB* p_cb, tSMP_EVENT event,
349 extern void smp_br_state_machine_event(tSMP_CB* p_cb, tSMP_BR_EVENT event,
355 extern void smp_send_pair_req(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
356 extern void smp_send_confirm(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
357 extern void smp_send_pair_fail(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
358 extern void smp_send_rand(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
359 extern void smp_send_pair_public_key(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
360 extern void smp_send_commitment(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
361 extern void smp_send_dhkey_check(tSMP_CB* p_cb, tSMP_INT_DATA* p_data);
[all …]
/system/bt/bta/ag/
Dbta_ag_at.cc46 void bta_ag_at_init(tBTA_AG_AT_CB* p_cb) { in bta_ag_at_init() argument
47 p_cb->p_cmd_buf = nullptr; in bta_ag_at_init()
48 p_cb->cmd_pos = 0; in bta_ag_at_init()
63 void bta_ag_at_reinit(tBTA_AG_AT_CB* p_cb) { in bta_ag_at_reinit() argument
64 osi_free_and_reset((void**)&p_cb->p_cmd_buf); in bta_ag_at_reinit()
65 p_cb->cmd_pos = 0; in bta_ag_at_reinit()
80 void bta_ag_process_at(tBTA_AG_AT_CB* p_cb, char* p_end) { in bta_ag_process_at() argument
86 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) { in bta_ag_process_at()
87 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at()
93 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) { in bta_ag_process_at()
[all …]
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc151 static void nfa_ee_update_route_size(tNFA_EE_ECB* p_cb) { in nfa_ee_update_route_size() argument
155 p_cb->size_mask_proto = 0; in nfa_ee_update_route_size()
156 p_cb->size_mask_tech = 0; in nfa_ee_update_route_size()
160 if (p_cb->tech_switch_on & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
162 if (p_cb->tech_switch_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
164 if (p_cb->tech_battery_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
168 if (p_cb->tech_screen_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
170 if (p_cb->tech_screen_off & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
172 if (p_cb->tech_screen_off_lock & nfa_ee_tech_mask_list[xx]) in nfa_ee_update_route_size()
177 p_cb->size_mask_tech += 5; in nfa_ee_update_route_size()
[all …]
Dnfa_ee_main.cc159 void nfa_ee_restore_one_ecb(tNFA_EE_ECB* p_cb) { in nfa_ee_restore_one_ecb() argument
167 p_cb->nfcee_id, p_cb->ecb_flags, p_cb->ee_status, p_cb->ee_old_status); in nfa_ee_restore_one_ecb()
168 if ((p_cb->nfcee_id != NFA_EE_INVALID) && in nfa_ee_restore_one_ecb()
169 (p_cb->ee_status & NFA_EE_STATUS_RESTORING) == 0 && in nfa_ee_restore_one_ecb()
170 (p_cb->ee_old_status & NFA_EE_STATUS_RESTORING) != 0) { in nfa_ee_restore_one_ecb()
171 p_cb->ee_old_status &= ~NFA_EE_STATUS_RESTORING; in nfa_ee_restore_one_ecb()
172 mask = nfa_ee_ecb_to_mask(p_cb); in nfa_ee_restore_one_ecb()
173 if (p_cb->ee_status != p_cb->ee_old_status) { in nfa_ee_restore_one_ecb()
174 p_cb->ecb_flags |= NFA_EE_ECB_FLAGS_RESTORE; in nfa_ee_restore_one_ecb()
175 if (p_cb->ee_old_status == NFC_NFCEE_STATUS_ACTIVE) { in nfa_ee_restore_one_ecb()
[all …]
Dnfa_ee_api.cc97 tNFA_EE_ECB* p_cb = nfa_ee_cb.ecb; in NFA_EeGetInfo() local
118 for (xx = 0; (xx < ret) && (num_ret < max_ret); xx++, p_cb++) { in NFA_EeGetInfo()
121 max_ret, num_ret, p_cb->ee_status); in NFA_EeGetInfo()
122 if ((p_cb->ee_status & NFA_EE_STATUS_INT_MASK) || in NFA_EeGetInfo()
123 (p_cb->ee_status == NFA_EE_STATUS_REMOVED)) { in NFA_EeGetInfo()
126 p_info->ee_handle = NFA_HANDLE_GROUP_EE | (tNFA_HANDLE)p_cb->nfcee_id; in NFA_EeGetInfo()
127 p_info->ee_status = p_cb->ee_status; in NFA_EeGetInfo()
128 p_info->num_interface = p_cb->num_interface; in NFA_EeGetInfo()
129 p_info->num_tlvs = p_cb->num_tlvs; in NFA_EeGetInfo()
130 memcpy(p_info->ee_interface, p_cb->ee_interface, p_cb->num_interface); in NFA_EeGetInfo()
[all …]
/system/nfc/src/nfa/ce/
Dnfa_ce_act.cc57 tNFA_CE_CB* p_cb = &nfa_ce_cb; in nfa_ce_handle_t3t_evt() local
64 if ((p_cb->listen_info[idx].flags & NFA_CE_LISTEN_INFO_IN_USE) && in nfa_ce_handle_t3t_evt()
65 (p_cb->listen_info[idx].flags & NFA_CE_LISTEN_INFO_FELICA) && in nfa_ce_handle_t3t_evt()
66 (p_cb->listen_info[idx].flags & NFA_CE_LISTEN_INFO_T3T_ACTIVATE_PND)) { in nfa_ce_handle_t3t_evt()
67 p_cb->idx_cur_active = idx; in nfa_ce_handle_t3t_evt()
68 p_cb->p_active_conn_cback = in nfa_ce_handle_t3t_evt()
69 p_cb->listen_info[p_cb->idx_cur_active].p_conn_cback; in nfa_ce_handle_t3t_evt()
76 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_START_EVT, &conn_evt); in nfa_ce_handle_t3t_evt()
88 if (p_cb->idx_cur_active == NFA_CE_LISTEN_INFO_IDX_NDEF) { in nfa_ce_handle_t3t_evt()
[all …]
/system/bt/bta/hh/
Dbta_hh_act.cc180 tBTA_HH_DEV_CB* p_cb = bta_hh_cb.p_cur; in bta_hh_sdp_cback() local
185 if ((result == SDP_SUCCESS) && (p_cb != NULL)) { in bta_hh_sdp_cback()
187 if (p_cb->sec_mask) attr_mask |= HID_SEC_REQUIRED; in bta_hh_sdp_cback()
191 __func__, p_cb, result, attr_mask, p_cb->hid_handle); in bta_hh_sdp_cback()
196 if (bta_hh_tod_spt(p_cb, sdp_rec->sub_class)) { in bta_hh_sdp_cback()
198 if (p_cb->hid_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_sdp_cback()
200 if (HID_HostAddDev(p_cb->addr, attr_mask, &hdl) == HID_SUCCESS) { in bta_hh_sdp_cback()
203 bta_hh_cb.cb_index[hdl] = p_cb->index; in bta_hh_sdp_cback()
205 p_cb->app_id = 0; in bta_hh_sdp_cback()
208 hdl = p_cb->hid_handle; in bta_hh_sdp_cback()
[all …]
Dbta_hh_le.cc68 static void bta_hh_le_add_dev_bg_conn(tBTA_HH_DEV_CB* p_cb, bool check_bond);
88 static void bta_hh_le_hid_report_dbg(tBTA_HH_DEV_CB* p_cb) { in bta_hh_le_hid_report_dbg() argument
91 if (!p_cb->hid_srvc.in_use) return; in bta_hh_le_hid_report_dbg()
93 tBTA_HH_LE_RPT* p_rpt = &p_cb->hid_srvc.report[0]; in bta_hh_le_hid_report_dbg()
229 bool bta_hh_is_le_device(tBTA_HH_DEV_CB* p_cb, const RawAddress& remote_bda) { in bta_hh_is_le_device() argument
230 p_cb->is_le_device = BTM_UseLeLink(remote_bda); in bta_hh_is_le_device()
232 return p_cb->is_le_device; in bta_hh_is_le_device()
266 void bta_hh_le_open_conn(tBTA_HH_DEV_CB* p_cb, const RawAddress& remote_bda) { in bta_hh_le_open_conn() argument
270 p_cb->hid_handle = bta_hh_le_get_le_dev_hdl(p_cb->index); in bta_hh_le_open_conn()
271 if (p_cb->hid_handle == BTA_HH_IDX_INVALID) { in bta_hh_le_open_conn()
[all …]
Dbta_hh_int.h307 extern void bta_hh_sm_execute(tBTA_HH_DEV_CB* p_cb, uint16_t event,
311 extern void bta_hh_api_disc_act(tBTA_HH_DEV_CB* p_cb, tBTA_HH_DATA* p_data);
312 extern void bta_hh_open_act(tBTA_HH_DEV_CB* p_cb, tBTA_HH_DATA* p_data);
313 extern void bta_hh_close_act(tBTA_HH_DEV_CB* p_cb, tBTA_HH_DATA* p_data);
314 extern void bta_hh_data_act(tBTA_HH_DEV_CB* p_cb, tBTA_HH_DATA* p_data);
315 extern void bta_hh_ctrl_dat_act(tBTA_HH_DEV_CB* p_cb, tBTA_HH_DATA* p_data);
316 extern void bta_hh_start_sdp(tBTA_HH_DEV_CB* p_cb, tBTA_HH_DATA* p_data);
317 extern void bta_hh_sdp_cmpl(tBTA_HH_DEV_CB* p_cb, tBTA_HH_DATA* p_data);
318 extern void bta_hh_write_dev_act(tBTA_HH_DEV_CB* p_cb, tBTA_HH_DATA* p_data);
319 extern void bta_hh_get_dscp_act(tBTA_HH_DEV_CB* p_cb, tBTA_HH_DATA* p_data);
[all …]
Dbta_hh_utils.cc108 void bta_hh_clean_up_kdev(tBTA_HH_DEV_CB* p_cb) { in bta_hh_clean_up_kdev() argument
111 if (p_cb->hid_handle != BTA_HH_INVALID_HANDLE) { in bta_hh_clean_up_kdev()
113 if (p_cb->is_le_device) in bta_hh_clean_up_kdev()
114 bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(p_cb->hid_handle)] = in bta_hh_clean_up_kdev()
118 bta_hh_cb.cb_index[p_cb->hid_handle] = BTA_HH_IDX_INVALID; in bta_hh_clean_up_kdev()
122 index = p_cb->index; /* Preserve index for this control block */ in bta_hh_clean_up_kdev()
125 osi_free_and_reset((void**)&p_cb->dscp_info.descriptor.dsc_list); in bta_hh_clean_up_kdev()
127 memset(p_cb, 0, sizeof(tBTA_HH_DEV_CB)); /* Reset control block */ in bta_hh_clean_up_kdev()
129 p_cb->index = index; /* Restore index for this control block */ in bta_hh_clean_up_kdev()
130 p_cb->state = BTA_HH_IDLE_ST; in bta_hh_clean_up_kdev()
[all …]
/system/nfc/src/nfc/tags/
Drw_t3t.cc139 static void rw_t3t_handle_get_sc_poll_rsp(tRW_T3T_CB* p_cb, uint8_t nci_status,
143 static void rw_t3t_handle_ndef_detect_poll_rsp(tRW_T3T_CB* p_cb,
146 static void rw_t3t_handle_fmt_poll_rsp(tRW_T3T_CB* p_cb, uint8_t nci_status,
148 static void rw_t3t_handle_sro_poll_rsp(tRW_T3T_CB* p_cb, uint8_t nci_status,
196 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_check_timeout() local
200 timeout = (p_cb->check_tout_a + num_blocks * p_cb->check_tout_b) * in rw_t3t_check_timeout()
219 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_update_timeout() local
223 timeout = (p_cb->update_tout_a + num_blocks * p_cb->update_tout_b) * in rw_t3t_update_timeout()
241 tRW_T3T_CB* p_cb = &rw_cb.tcb.t3t; in rw_t3t_process_error() local
246 if (p_cb->rw_state == RW_T3T_STATE_COMMAND_PENDING) { in rw_t3t_process_error()
[all …]
Dce_t3t.cc159 tCE_T3T_MEM* p_cb = &p_ce_cb->mem.t3t; in ce_t3t_send_rsp() local
165 p_nfcid2 = p_cb->local_nfcid2; in ce_t3t_send_rsp()
200 tCE_T3T_MEM* p_cb = &p_ce_cb->mem.t3t; in ce_t3t_handle_update_cmd() local
202 uint8_t* p_block_list = p_cb->cur_cmd.p_block_list_start; in ce_t3t_handle_update_cmd()
203 uint8_t* p_block_data = p_cb->cur_cmd.p_block_data_start; in ce_t3t_handle_update_cmd()
212 if (p_cb->state == CE_T3T_STATE_IDLE) { in ce_t3t_handle_update_cmd()
213 p_cb->state = CE_T3T_STATE_UPDATING; in ce_t3t_handle_update_cmd()
216 for (i = 0; i < p_cb->cur_cmd.num_blocks; i++) { in ce_t3t_handle_update_cmd()
228 p_cb->cur_cmd.service_code_list[bl0 & T3T_MSG_SERVICE_LIST_MASK]; in ce_t3t_handle_update_cmd()
240 if (p_cb->cur_cmd.num_blocks > p_cb->ndef_info.nbw) { in ce_t3t_handle_update_cmd()
[all …]
/system/nfc/src/nfa/sys/
Dnfa_sys_ptim.cc45 void nfa_sys_ptim_init(tPTIM_CB* p_cb, uint16_t period, uint8_t timer_id) { in nfa_sys_ptim_init() argument
46 GKI_init_timer_list(&p_cb->timer_queue); in nfa_sys_ptim_init()
47 p_cb->period = period; in nfa_sys_ptim_init()
48 p_cb->timer_id = timer_id; in nfa_sys_ptim_init()
62 void nfa_sys_ptim_timer_update(tPTIM_CB* p_cb) { in nfa_sys_ptim_timer_update() argument
75 if (new_ticks_count >= p_cb->last_gki_ticks) { in nfa_sys_ptim_timer_update()
76 period_in_ticks = (int32_t)(new_ticks_count - p_cb->last_gki_ticks); in nfa_sys_ptim_timer_update()
78 period_in_ticks = (int32_t)(((uint32_t)0xffffffff - p_cb->last_gki_ticks) + in nfa_sys_ptim_timer_update()
83 GKI_update_timer_list(&p_cb->timer_queue, GKI_TICKS_TO_MS(period_in_ticks)); in nfa_sys_ptim_timer_update()
85 p_cb->last_gki_ticks = new_ticks_count; in nfa_sys_ptim_timer_update()
[all …]
/system/bt/bta/gatt/
Dbta_gatts_utils.cc43 uint8_t bta_gatts_alloc_srvc_cb(tBTA_GATTS_CB* p_cb, uint8_t rcb_idx) { in bta_gatts_alloc_srvc_cb() argument
47 if (!p_cb->srvc_cb[i].in_use) { in bta_gatts_alloc_srvc_cb()
48 p_cb->srvc_cb[i].in_use = true; in bta_gatts_alloc_srvc_cb()
49 p_cb->srvc_cb[i].rcb_idx = rcb_idx; in bta_gatts_alloc_srvc_cb()
87 uint8_t bta_gatts_find_app_rcb_idx_by_app_if(tBTA_GATTS_CB* p_cb, in bta_gatts_find_app_rcb_idx_by_app_if() argument
92 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) return i; in bta_gatts_find_app_rcb_idx_by_app_if()
105 tBTA_GATTS_SRVC_CB* bta_gatts_find_srvc_cb_by_srvc_id(tBTA_GATTS_CB* p_cb, in bta_gatts_find_srvc_cb_by_srvc_id() argument
110 if (p_cb->srvc_cb[i].in_use && p_cb->srvc_cb[i].service_id == service_id) { in bta_gatts_find_srvc_cb_by_srvc_id()
112 return &p_cb->srvc_cb[i]; in bta_gatts_find_srvc_cb_by_srvc_id()
126 tBTA_GATTS_SRVC_CB* bta_gatts_find_srvc_cb_by_attr_id(tBTA_GATTS_CB* p_cb, in bta_gatts_find_srvc_cb_by_attr_id() argument
[all …]
Dbta_gatts_main.cc46 tBTA_GATTS_CB* p_cb = &bta_gatts_cb; in bta_gatts_hdl_event() local
50 bta_gatts_api_disable(p_cb); in bta_gatts_hdl_event()
54 bta_gatts_register(p_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
58 bta_gatts_start_if(p_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
62 bta_gatts_deregister(p_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
66 bta_gatts_indicate_handle(p_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
70 bta_gatts_open(p_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
74 bta_gatts_cancel_open(p_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
78 bta_gatts_close(p_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
82 bta_gatts_send_rsp(p_cb, (tBTA_GATTS_DATA*)p_msg); in bta_gatts_hdl_event()
[all …]
/system/nfc/src/gki/common/
Dgki_buffer.cc51 tGKI_COM_CB* p_cb = &gki_cb.com; in gki_init_free_queue() local
59 p_cb->pool_start[id] = (uint8_t*)p_mem; in gki_init_free_queue()
60 p_cb->pool_end[id] = (uint8_t*)p_mem + (act_size * total); in gki_init_free_queue()
63 p_cb->pool_size[id] = act_size; in gki_init_free_queue()
65 p_cb->freeq[id].size = (uint16_t)tempsize; in gki_init_free_queue()
66 p_cb->freeq[id].total = total; in gki_init_free_queue()
67 p_cb->freeq[id].cur_cnt = 0; in gki_init_free_queue()
68 p_cb->freeq[id].max_cnt = 0; in gki_init_free_queue()
73 p_cb->freeq[id].p_first = hdr; in gki_init_free_queue()
86 p_cb->freeq[id].p_last = hdr; in gki_init_free_queue()
[all …]
/system/bt/btif/co/
Dbta_gatts_co.cc51 btif_gatts_srv_chg_cb_t* p_cb = &btif_gatts_srv_chg_cb; in btif_gatts_check_init() local
53 if (!p_cb->enable) { in btif_gatts_check_init()
54 memset(p_cb, 0, sizeof(btif_gatts_srv_chg_cb_t)); in btif_gatts_check_init()
55 p_cb->enable = true; in btif_gatts_check_init()
64 btif_gatts_srv_chg_cb_t* p_cb = &btif_gatts_srv_chg_cb; in btif_gatts_add_bonded_dev_from_nv() local
70 for (i = 0; i != p_cb->num_clients; ++i) { in btif_gatts_add_bonded_dev_from_nv()
71 if (p_cb->srv_chg[i].bda == bda) { in btif_gatts_add_bonded_dev_from_nv()
78 if (p_cb->num_clients < BTIF_GATTS_MAX_SRV_CHG_CLT_SIZE) { in btif_gatts_add_bonded_dev_from_nv()
79 p_cb->srv_chg[p_cb->num_clients].bda = bda; in btif_gatts_add_bonded_dev_from_nv()
80 p_cb->srv_chg[p_cb->num_clients].srv_changed = false; in btif_gatts_add_bonded_dev_from_nv()
[all …]
/system/bt/bta/jv/
Dbta_jv_act.cc91 static tBTA_JV_PCB* bta_jv_add_rfc_port(tBTA_JV_RFC_CB* p_cb,
94 static void bta_jv_pm_conn_busy(tBTA_JV_PM_CB* p_cb);
95 static void bta_jv_pm_conn_idle(tBTA_JV_PM_CB* p_cb);
96 static void bta_jv_pm_state_change(tBTA_JV_PM_CB* p_cb,
172 tBTA_JV_RFC_CB* p_cb = NULL; in bta_jv_alloc_rfc_cb() local
177 p_cb = &bta_jv_cb.rfc_cb[i]; in bta_jv_alloc_rfc_cb()
179 p_cb->handle = (i + 1) | BTA_JV_RFCOMM_MASK; in bta_jv_alloc_rfc_cb()
181 p_cb->max_sess = 1; in bta_jv_alloc_rfc_cb()
182 p_cb->curr_sess = 1; in bta_jv_alloc_rfc_cb()
183 for (j = 0; j < BTA_JV_MAX_RFC_SR_SESSION; j++) p_cb->rfc_hdl[j] = 0; in bta_jv_alloc_rfc_cb()
[all …]
/system/nfc/src/nfa/dm/
Dnfa_dm_ndef.cc91 tNFA_DM_CB* p_cb = &nfa_dm_cb; in nfa_dm_ndef_dereg_hdlr_by_handle() local
95 if (p_cb->p_ndef_handler[hdlr_idx]) { in nfa_dm_ndef_dereg_hdlr_by_handle()
96 GKI_freebuf(p_cb->p_ndef_handler[hdlr_idx]); in nfa_dm_ndef_dereg_hdlr_by_handle()
97 p_cb->p_ndef_handler[hdlr_idx] = nullptr; in nfa_dm_ndef_dereg_hdlr_by_handle()
112 tNFA_DM_CB* p_cb = &nfa_dm_cb; in nfa_dm_ndef_dereg_all() local
117 if (p_cb->p_ndef_handler[i] != nullptr) { 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] = nullptr; in nfa_dm_ndef_dereg_all()
134 tNFA_DM_CB* p_cb = &nfa_dm_cb; in nfa_dm_ndef_reg_hdlr() local
143 if (p_cb->p_ndef_handler[NFA_NDEF_DEFAULT_HANDLER_IDX]) { in nfa_dm_ndef_reg_hdlr()
[all …]
/system/bt/bta/av/
Dbta_av_act.cc156 static void bta_av_close_all_rc(tBTA_AV_CB* p_cb) { in bta_av_close_all_rc() argument
160 if ((p_cb->disabling) || (bta_av_cb.rcb[i].shdl != 0)) in bta_av_close_all_rc()
306 uint8_t bta_av_rc_create(tBTA_AV_CB* p_cb, uint8_t role, uint8_t shdl, in bta_av_rc_create() argument
329 tBTA_AV_SCB* p_scb = p_cb->p_scb[shdl - 1]; in bta_av_rc_create()
347 ccb.control = p_cb->features & (BTA_AV_FEAT_RCTG | BTA_AV_FEAT_RCCT | in bta_av_rc_create()
354 p_rcb = &p_cb->rcb[i]; in bta_av_rc_create()
367 p_cb->rc_acp_handle = p_rcb->handle; in bta_av_rc_create()
368 p_cb->rc_acp_idx = (i + 1); in bta_av_rc_create()
370 p_cb->rc_acp_handle, p_cb->rc_acp_idx); in bta_av_rc_create()
455 tBTA_AV_CB* p_cb = &bta_av_cb; in bta_av_find_lcb() local
[all …]

123