Home
last modified time | relevance | path

Searched refs:p_ccb (Results 1 – 25 of 42) sorted by relevance

12

/system/bt/stack/l2cap/
Dl2c_csm.cc41 static void l2c_csm_closed(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data);
42 static void l2c_csm_orig_w4_sec_comp(tL2C_CCB* p_ccb, tL2CEVT event,
44 static void l2c_csm_term_w4_sec_comp(tL2C_CCB* p_ccb, tL2CEVT event,
46 static void l2c_csm_w4_l2cap_connect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
48 static void l2c_csm_w4_l2ca_connect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
50 static void l2c_csm_config(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data);
51 static void l2c_csm_open(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data);
52 static void l2c_csm_w4_l2cap_disconnect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
54 static void l2c_csm_w4_l2ca_disconnect_rsp(tL2C_CCB* p_ccb, tL2CEVT event,
60 static void l2c_csm_send_connect_rsp(tL2C_CCB* p_ccb) { in l2c_csm_send_connect_rsp() argument
[all …]
Dl2c_fcr.cc89 static bool process_reqseq(tL2C_CCB* p_ccb, uint16_t ctrl_word);
90 static void process_s_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word);
91 static void process_i_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word,
93 static bool retransmit_i_frames(tL2C_CCB* p_ccb, uint8_t tx_seq);
94 static void prepare_I_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf,
96 static bool do_sar_reassembly(tL2C_CCB* p_ccb, BT_HDR* p_buf,
164 void l2c_fcr_start_timer(tL2C_CCB* p_ccb) { in l2c_fcr_start_timer() argument
165 CHECK(p_ccb != NULL); in l2c_fcr_start_timer()
169 if (p_ccb->fcrb.wait_ack) { in l2c_fcr_start_timer()
170 tout = (uint32_t)p_ccb->our_cfg.fcr.mon_tout; in l2c_fcr_start_timer()
[all …]
Dl2c_utils.cc150 tL2C_CCB* p_ccb; in l2cu_release_lcb() local
181 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2cu_release_lcb()
182 p_ccb = p_lcb->ccb_queue.p_first_ccb) { in l2cu_release_lcb()
183 l2cu_release_ccb(p_ccb); in l2cu_release_lcb()
400 void l2cu_send_peer_connect_req(tL2C_CCB* p_ccb) { in l2cu_send_peer_connect_req() argument
405 p_ccb->p_lcb->signal_id++; in l2cu_send_peer_connect_req()
406 l2cu_adj_id(p_ccb->p_lcb); in l2cu_send_peer_connect_req()
408 p_ccb->local_id = p_ccb->p_lcb->signal_id; in l2cu_send_peer_connect_req()
410 p_buf = l2cu_build_header(p_ccb->p_lcb, L2CAP_CONN_REQ_LEN, in l2cu_send_peer_connect_req()
411 L2CAP_CMD_CONN_REQ, p_ccb->local_id); in l2cu_send_peer_connect_req()
[all …]
Dl2c_main.cc149 tL2C_CCB* p_ccb = NULL; in l2c_rcv_acl_data() local
151 p_ccb = l2cu_find_ccb_by_cid(p_lcb, rcv_cid); in l2c_rcv_acl_data()
152 if (!p_ccb) { in l2c_rcv_acl_data()
201 p_ccb = p_lcb->p_fixed_ccbs[rcv_cid - L2CAP_FIRST_FIXED_CHNL]; in l2c_rcv_acl_data()
202 p_ccb->metrics.rx(p_msg->len); in l2c_rcv_acl_data()
204 if (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) in l2c_rcv_acl_data()
205 l2c_fcr_proc_pdu(p_ccb, p_msg); in l2c_rcv_acl_data()
212 if (!p_ccb) { in l2c_rcv_acl_data()
218 l2c_lcc_proc_pdu(p_ccb, p_msg); in l2c_rcv_acl_data()
221 --p_ccb->remote_credit_count; in l2c_rcv_acl_data()
[all …]
Dl2c_link.cc145 tL2C_CCB* p_ccb; in l2c_link_hci_conn_comp() local
204 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_link_hci_conn_comp()
205 p_ccb = p_ccb->p_next_ccb) { in l2c_link_hci_conn_comp()
206 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, &ci); in l2c_link_hci_conn_comp()
229 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_hci_conn_comp()
230 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_hci_conn_comp()
232 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM_NEG, &ci); in l2c_link_hci_conn_comp()
234 p_ccb = pn; in l2c_link_hci_conn_comp()
277 tL2C_CCB* p_ccb; in l2c_link_sec_comp2() local
301 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_next_ccb) { in l2c_link_sec_comp2()
[all …]
Dl2c_ble.cc202 for (tL2C_CCB* p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2cble_notify_le_connection() local
203 p_ccb = p_ccb->p_next_ccb) { in l2cble_notify_le_connection()
204 if (p_ccb->chnl_state == CST_CLOSED) in l2cble_notify_le_connection()
205 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, NULL); in l2cble_notify_le_connection()
421 tL2C_CCB *p_ccb = NULL, *temp_p_ccb = NULL; in l2cble_process_sig_cmd() local
602 p_ccb = temp_p_ccb; in l2cble_process_sig_cmd()
603 p_ccb->local_conn_cfg.mtu = L2CAP_SDU_LENGTH_LE_MAX; in l2cble_process_sig_cmd()
604 p_ccb->local_conn_cfg.mps = in l2cble_process_sig_cmd()
606 p_lcb->pending_lead_cid = p_ccb->local_cid; in l2cble_process_sig_cmd()
620 l2c_csm_execute(p_ccb, L2CEVT_L2CAP_CREDIT_BASED_CONNECT_REQ, NULL); in l2cble_process_sig_cmd()
[all …]
Dl2c_api.cc164 tL2C_CCB* p_ccb; in L2CA_Deregister() local
175 p_ccb = p_lcb->ccb_queue.p_first_ccb; in L2CA_Deregister()
176 if ((p_ccb == NULL) || (p_lcb->link_state == LST_DISCONNECTING)) { in L2CA_Deregister()
180 if ((p_ccb->in_use) && in L2CA_Deregister()
181 ((p_ccb->chnl_state == CST_W4_L2CAP_DISCONNECT_RSP) || in L2CA_Deregister()
182 (p_ccb->chnl_state == CST_W4_L2CA_DISCONNECT_RSP))) { in L2CA_Deregister()
186 if (p_ccb->p_rcb == p_rcb) { in L2CA_Deregister()
187 l2c_csm_execute(p_ccb, L2CEVT_L2CA_DISCONNECT_REQ, NULL); in L2CA_Deregister()
331 tL2C_CCB* p_ccb = l2cu_allocate_ccb(p_lcb, 0); in L2CA_ConnectReq() local
332 if (p_ccb == nullptr) { in L2CA_ConnectReq()
[all …]
Dl2c_int.h683 extern void l2cu_enqueue_ccb(tL2C_CCB* p_ccb);
684 extern void l2cu_dequeue_ccb(tL2C_CCB* p_ccb);
685 extern void l2cu_change_pri_ccb(tL2C_CCB* p_ccb, tL2CAP_CHNL_PRIORITY priority);
688 extern void l2cu_release_ccb(tL2C_CCB* p_ccb);
696 extern void l2cu_send_peer_connect_req(tL2C_CCB* p_ccb);
697 extern void l2cu_send_peer_connect_rsp(tL2C_CCB* p_ccb, uint16_t result,
699 extern void l2cu_send_peer_config_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg);
700 extern void l2cu_send_peer_config_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg);
701 extern void l2cu_send_peer_config_rej(tL2C_CCB* p_ccb, uint8_t* p_data,
703 extern void l2cu_send_peer_disc_req(tL2C_CCB* p_ccb);
[all …]
/system/bt/stack/gap/
Dgap_conn.cc98 static void gap_release_ccb(tGAP_CCB* p_ccb);
99 static void gap_checks_con_flags(tGAP_CCB* p_ccb);
165 tGAP_CCB* p_ccb; in GAP_ConnOpen() local
171 p_ccb = gap_allocate_ccb(); in GAP_ConnOpen()
172 if (p_ccb == NULL) return (GAP_INVALID_HANDLE); in GAP_ConnOpen()
175 p_ccb->transport = transport; in GAP_ConnOpen()
178 p_ccb->service_id = service_id; in GAP_ConnOpen()
183 if (*p_rem_bda != RawAddress::kAny) p_ccb->rem_addr_specified = true; in GAP_ConnOpen()
185 p_ccb->rem_dev_address = *p_rem_bda; in GAP_ConnOpen()
188 gap_release_ccb(p_ccb); in GAP_ConnOpen()
[all …]
/system/bt/stack/sdp/
Dsdp_main.cc119 tCONN_CB* p_ccb = sdpu_allocate_ccb(); in sdp_connect_ind() local
120 if (p_ccb == NULL) return; in sdp_connect_ind()
123 p_ccb->con_state = SDP_STATE_CFG_SETUP; in sdp_connect_ind()
126 p_ccb->device_address = bd_addr; in sdp_connect_ind()
127 p_ccb->connection_id = l2cap_cid; in sdp_connect_ind()
131 tCONN_CB* p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_on_l2cap_error() local
132 if (p_ccb == nullptr) return; in sdp_on_l2cap_error()
133 sdp_disconnect(p_ccb, SDP_CFG_FAILED); in sdp_on_l2cap_error()
148 tCONN_CB* p_ccb; in sdp_connect_cfm() local
151 p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_connect_cfm()
[all …]
Dsdp_server.cc46 static void process_service_search(tCONN_CB* p_ccb, uint16_t trans_num,
50 static void process_service_attr_req(tCONN_CB* p_ccb, uint16_t trans_num,
54 static void process_service_search_attr_req(tCONN_CB* p_ccb, uint16_t trans_num,
107 void sdp_server_handle_client_req(tCONN_CB* p_ccb, BT_HDR* p_msg) { in sdp_server_handle_client_req() argument
114 alarm_set_on_mloop(p_ccb->sdp_conn_timer, SDP_INACT_TIMEOUT_MS, in sdp_server_handle_client_req()
115 sdp_conn_timer_timeout, p_ccb); in sdp_server_handle_client_req()
121 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_REQ_SYNTAX, in sdp_server_handle_client_req()
135 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_REQ_SYNTAX, in sdp_server_handle_client_req()
143 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_PDU_SIZE, in sdp_server_handle_client_req()
150 process_service_search(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req()
[all …]
Dsdp_discovery.cc47 static void process_service_search_rsp(tCONN_CB* p_ccb, uint8_t* p_reply,
49 static void process_service_attr_rsp(tCONN_CB* p_ccb, uint8_t* p_reply,
51 static void process_service_search_attr_rsp(tCONN_CB* p_ccb, uint8_t* p_reply,
53 static uint8_t* save_attr_seq(tCONN_CB* p_ccb, uint8_t* p, uint8_t* p_msg_end);
120 static void sdp_snd_service_search_req(tCONN_CB* p_ccb, uint8_t cont_len, in sdp_snd_service_search_req() argument
132 UINT16_TO_BE_STREAM(p, p_ccb->transaction_id); in sdp_snd_service_search_req()
133 p_ccb->transaction_id++; in sdp_snd_service_search_req()
140 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in sdp_snd_service_search_req()
141 p_ccb->p_db->uuid_filters); in sdp_snd_service_search_req()
159 p_ccb->disc_state = SDP_DISC_WAIT_HANDLES; in sdp_snd_service_search_req()
[all …]
/system/bt/stack/avdt/
Davdt_ccb_act.cc50 static void avdt_ccb_clear_ccb(AvdtpCcb* p_ccb) { in avdt_ccb_clear_ccb() argument
54 p_ccb->cong = false; in avdt_ccb_clear_ccb()
55 p_ccb->ret_count = 0; in avdt_ccb_clear_ccb()
58 osi_free_and_reset((void**)&p_ccb->p_curr_msg); in avdt_ccb_clear_ccb()
61 osi_free_and_reset((void**)&p_ccb->p_rx_msg); in avdt_ccb_clear_ccb()
64 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->rsp_q)) != NULL) in avdt_ccb_clear_ccb()
79 void avdt_ccb_chan_open(AvdtpCcb* p_ccb, UNUSED_ATTR tAVDT_CCB_EVT* p_data) { in avdt_ccb_chan_open() argument
80 avdt_ad_open_req(AVDT_CHAN_SIG, p_ccb, NULL, AVDT_INT); in avdt_ccb_chan_open()
94 void avdt_ccb_chan_close(AvdtpCcb* p_ccb, UNUSED_ATTR tAVDT_CCB_EVT* p_data) { in avdt_ccb_chan_close() argument
96 avdt_ad_close_req(AVDT_CHAN_SIG, p_ccb, NULL); in avdt_ccb_chan_close()
[all …]
Davdt_ccb.cc367 void avdt_ccb_event(AvdtpCcb* p_ccb, uint8_t event, tAVDT_CCB_EVT* p_data) { in avdt_ccb_event() argument
374 avdt_ccb_to_idx(p_ccb), avdt_ccb_evt_str[event], in avdt_ccb_event()
375 avdt_ccb_st_str[p_ccb->state], p_ccb); in avdt_ccb_event()
379 state_table = avdt_ccb_st_tbl[p_ccb->state]; in avdt_ccb_event()
382 if (p_ccb->state != state_table[event][AVDT_CCB_NEXT_STATE]) { in avdt_ccb_event()
383 p_ccb->state = state_table[event][AVDT_CCB_NEXT_STATE]; in avdt_ccb_event()
390 avdt_ccb_evt_str[event], avdt_ccb_st_str[p_ccb->state], in avdt_ccb_event()
393 (*avdtp_cb.p_ccb_act[action])(p_ccb, p_data); in avdt_ccb_event()
411 AvdtpCcb* p_ccb = &avdtp_cb.ccb[0]; in avdt_ccb_by_bd() local
414 for (i = 0; i < AVDT_NUM_LINKS; i++, p_ccb++) { in avdt_ccb_by_bd()
[all …]
Davdt_l2c.cc71 AvdtpCcb* p_ccb = NULL; in avdt_sec_check_complete_term() local
74 p_ccb = avdt_ccb_by_bd(*bd_addr); in avdt_sec_check_complete_term()
76 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP); in avdt_sec_check_complete_term()
81 avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid; in avdt_sec_check_complete_term()
101 AvdtpCcb* p_ccb = NULL; in avdt_sec_check_complete_orig() local
105 if (bd_addr) p_ccb = avdt_ccb_by_bd(*bd_addr); in avdt_sec_check_complete_orig()
106 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_INT); in avdt_sec_check_complete_orig()
129 AvdtpCcb* p_ccb; in avdt_l2c_connect_ind_cback() local
134 p_ccb = avdt_ccb_by_bd(bd_addr); in avdt_l2c_connect_ind_cback()
135 if (p_ccb == NULL) { in avdt_l2c_connect_ind_cback()
[all …]
Davdt_msg.cc1059 bool avdt_msg_send(AvdtpCcb* p_ccb, BT_HDR* p_msg) { in avdt_msg_send() argument
1072 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_SIG, p_ccb, NULL); in avdt_msg_send()
1076 p_ccb->p_curr_msg = p_msg; in avdt_msg_send()
1080 curr_msg_len = p_ccb->p_curr_msg->len; in avdt_msg_send()
1083 while ((!p_ccb->cong) && (p_ccb->p_curr_msg != NULL)) { in avdt_msg_send()
1089 if ((p_ccb->p_curr_msg->offset == AVDT_MSG_OFFSET) && in avdt_msg_send()
1090 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) { in avdt_msg_send()
1093 p_buf = p_ccb->p_curr_msg; in avdt_msg_send()
1096 else if ((p_ccb->p_curr_msg->offset == AVDT_MSG_OFFSET) && in avdt_msg_send()
1097 (p_ccb->p_curr_msg->len > in avdt_msg_send()
[all …]
Davdt_ad.cc143 AvdtpTransportChannel* avdt_ad_tc_tbl_by_st(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_st() argument
149 if (p_ccb == NULL) { in avdt_ad_tc_tbl_by_st()
158 ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_st()
215 AvdtpTransportChannel* avdt_ad_tc_tbl_by_type(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_type() argument
220 uint8_t ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_type()
246 AvdtpTransportChannel* avdt_ad_tc_tbl_alloc(AvdtpCcb* p_ccb) { in avdt_ad_tc_tbl_alloc() argument
263 p_tbl->ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_alloc()
299 AvdtpCcb* p_ccb; in avdt_ad_tc_close_ind() local
313 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_close_ind()
314 avdt_ccb_event(p_ccb, AVDT_CCB_LL_CLOSE_EVT, NULL); in avdt_ad_tc_close_ind()
[all …]
Davdt_api.cc45 AvdtpCcb* p_ccb = (AvdtpCcb*)data; in avdt_ccb_idle_ccb_timer_timeout() local
51 avdt_ccb_event(p_ccb, avdt_event, &avdt_ccb_evt); in avdt_ccb_idle_ccb_timer_timeout()
55 AvdtpCcb* p_ccb = (AvdtpCcb*)data; in avdt_ccb_ret_ccb_timer_timeout() local
61 avdt_ccb_event(p_ccb, avdt_event, &avdt_ccb_evt); in avdt_ccb_ret_ccb_timer_timeout()
65 AvdtpCcb* p_ccb = (AvdtpCcb*)data; in avdt_ccb_rsp_ccb_timer_timeout() local
71 avdt_ccb_event(p_ccb, avdt_event, &avdt_ccb_evt); in avdt_ccb_rsp_ccb_timer_timeout()
249 AvdtpCcb* p_ccb; in AVDT_DiscoverReq() local
256 p_ccb = avdt_ccb_by_bd(bd_addr); in AVDT_DiscoverReq()
257 if (p_ccb == NULL) { in AVDT_DiscoverReq()
258 p_ccb = avdt_ccb_alloc_by_channel_index(bd_addr, channel_index); in AVDT_DiscoverReq()
[all …]
Davdt_int.h416 p_ccb(nullptr), in AvdtpScb()
447 AvdtpCcb* p_ccb_saved = p_ccb; in Recycle()
465 p_ccb = nullptr; in Reset()
489 AvdtpCcb* p_ccb; // CCB associated with this SCB variable
725 typedef void (*tAVDT_CCB_ACTION)(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data);
807 extern void avdt_ccb_event(AvdtpCcb* p_ccb, uint8_t event,
813 extern void avdt_ccb_dealloc(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data);
814 extern uint8_t avdt_ccb_to_idx(AvdtpCcb* p_ccb);
818 extern void avdt_ccb_chan_open(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data);
819 extern void avdt_ccb_chan_close(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data);
[all …]
/system/bt/stack/avct/
Davct_api.cc122 tAVCT_CCB* p_ccb; in AVCT_CreateConn() local
128 p_ccb = avct_ccb_alloc(p_cc); in AVCT_CreateConn()
129 if (p_ccb == NULL) { in AVCT_CreateConn()
133 *p_handle = avct_ccb_to_idx(p_ccb); in AVCT_CreateConn()
143 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn()
149 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn()
155 p_ccb->p_lcb = p_lcb; in AVCT_CreateConn()
158 avct_lcb_evt.p_ccb = p_ccb; in AVCT_CreateConn()
181 tAVCT_CCB* p_ccb; in AVCT_RemoveConn() local
186 p_ccb = avct_ccb_by_idx(handle); in AVCT_RemoveConn()
[all …]
Davct_ccb.cc43 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_ccb_alloc() local
46 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_ccb_alloc()
47 if (!p_ccb->allocated) { in avct_ccb_alloc()
48 p_ccb->allocated = AVCT_ALOC_LCB; in avct_ccb_alloc()
49 memcpy(&p_ccb->cc, p_cc, sizeof(tAVCT_CC)); in avct_ccb_alloc()
57 p_ccb = NULL; in avct_ccb_alloc()
60 return p_ccb; in avct_ccb_alloc()
74 void avct_ccb_dealloc(tAVCT_CCB* p_ccb, uint8_t event, uint16_t result, in avct_ccb_dealloc() argument
76 tAVCT_CTRL_CBACK* p_cback = p_ccb->cc.p_ctrl_cback; in avct_ccb_dealloc()
78 AVCT_TRACE_DEBUG("avct_ccb_dealloc %d", avct_ccb_to_idx(p_ccb)); in avct_ccb_dealloc()
[all …]
Davct_bcb_act.cc136 p_data->p_ccb->p_bcb = NULL; in avct_bcb_unbind_disc()
137 (*p_data->p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_data->p_ccb), in avct_bcb_unbind_disc()
156 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_bcb_open_ind() local
161 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_open_ind()
163 if (p_ccb->allocated) { in avct_bcb_open_ind()
165 if (p_ccb->p_bcb == p_bcb) { in avct_bcb_open_ind()
167 p_ccb_bind = p_ccb; in avct_bcb_open_ind()
168 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_BROWSE_CONN_CFM_EVT, in avct_bcb_open_ind()
169 0, &p_ccb->p_lcb->peer_addr); in avct_bcb_open_ind()
173 else if ((p_ccb->p_bcb == NULL) && (p_ccb->cc.role == AVCT_ACP) && in avct_bcb_open_ind()
[all …]
Davct_lcb_act.cc201 avct_ccb_dealloc(p_data->p_ccb, AVCT_DISCONNECT_CFM_EVT, 0, NULL); in avct_lcb_unbind_disc()
218 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_lcb_open_ind() local
222 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_open_ind()
224 if (p_ccb->allocated) { in avct_lcb_open_ind()
226 if (p_ccb->p_lcb == p_lcb) { in avct_lcb_open_ind()
229 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_CONNECT_CFM_EVT, 0, in avct_lcb_open_ind()
233 else if ((p_ccb->p_lcb == NULL) && (p_ccb->cc.role == AVCT_ACP) && in avct_lcb_open_ind()
234 (avct_lcb_has_pid(p_lcb, p_ccb->cc.pid) == NULL)) { in avct_lcb_open_ind()
237 p_ccb->p_lcb = p_lcb; in avct_lcb_open_ind()
239 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_CONNECT_IND_EVT, 0, in avct_lcb_open_ind()
[all …]
Davct_lcb.cc81 typedef void (*tAVCT_LCB_ACTION)(tAVCT_LCB* p_ccb, tAVCT_LCB_EVT* p_data);
302 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_lcb_dealloc() local
303 for (size_t i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_dealloc()
304 if (p_ccb->allocated && p_ccb->p_lcb == p_lcb) { in avct_lcb_dealloc()
359 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_lcb_has_pid() local
362 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_has_pid()
363 if (p_ccb->allocated && (p_ccb->p_lcb == p_lcb) && (p_ccb->cc.pid == pid)) { in avct_lcb_has_pid()
364 return p_ccb; in avct_lcb_has_pid()
381 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_lcb_last_ccb() local
385 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_last_ccb()
[all …]
/system/bt/test/mock/
Dmock_stack_l2cap_utils.cc57 bool l2cu_is_ccb_active(tL2C_CCB* p_ccb) { in l2cu_is_ccb_active() argument
124 uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_process_peer_cfg_req() argument
129 void l2cu_adjust_out_mps(tL2C_CCB* p_ccb) { in l2cu_adjust_out_mps() argument
132 void l2cu_change_pri_ccb(tL2C_CCB* p_ccb, tL2CAP_CHNL_PRIORITY priority) { in l2cu_change_pri_ccb() argument
135 void l2cu_check_channel_congestion(tL2C_CCB* p_ccb) { in l2cu_check_channel_congestion() argument
144 void l2cu_dequeue_ccb(tL2C_CCB* p_ccb) { mock_function_count_map[__func__]++; } in l2cu_dequeue_ccb() argument
146 void l2cu_disconnect_chnl(tL2C_CCB* p_ccb) { in l2cu_disconnect_chnl() argument
149 void l2cu_enqueue_ccb(tL2C_CCB* p_ccb) { mock_function_count_map[__func__]++; } in l2cu_enqueue_ccb() argument
159 void l2cu_process_our_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_process_our_cfg_req() argument
162 void l2cu_process_our_cfg_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) { in l2cu_process_our_cfg_rsp() argument
[all …]

12