/system/bt/stack/l2cap/ |
D | l2c_csm.cc | 42 static void l2c_csm_closed(tL2C_CCB* p_ccb, uint16_t event, void* p_data); 43 static void l2c_csm_orig_w4_sec_comp(tL2C_CCB* p_ccb, uint16_t event, 45 static void l2c_csm_term_w4_sec_comp(tL2C_CCB* p_ccb, uint16_t event, 47 static void l2c_csm_w4_l2cap_connect_rsp(tL2C_CCB* p_ccb, uint16_t event, 49 static void l2c_csm_w4_l2ca_connect_rsp(tL2C_CCB* p_ccb, uint16_t event, 51 static void l2c_csm_config(tL2C_CCB* p_ccb, uint16_t event, void* p_data); 52 static void l2c_csm_open(tL2C_CCB* p_ccb, uint16_t event, void* p_data); 53 static void l2c_csm_w4_l2cap_disconnect_rsp(tL2C_CCB* p_ccb, uint16_t event, 55 static void l2c_csm_w4_l2ca_disconnect_rsp(tL2C_CCB* p_ccb, uint16_t event, 69 void l2c_csm_execute(tL2C_CCB* p_ccb, uint16_t event, void* p_data) { in l2c_csm_execute() argument [all …]
|
D | l2c_fcr.cc | 90 static bool process_reqseq(tL2C_CCB* p_ccb, uint16_t ctrl_word); 91 static void process_s_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word); 92 static void process_i_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word, 94 static bool retransmit_i_frames(tL2C_CCB* p_ccb, uint8_t tx_seq); 95 static void prepare_I_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, 97 static void process_stream_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf); 98 static bool do_sar_reassembly(tL2C_CCB* p_ccb, BT_HDR* p_buf, 102 static void l2c_fcr_collect_ack_delay(tL2C_CCB* p_ccb, uint8_t num_bufs_acked); 170 void l2c_fcr_start_timer(tL2C_CCB* p_ccb) { in l2c_fcr_start_timer() argument 171 CHECK(p_ccb != NULL); in l2c_fcr_start_timer() [all …]
|
D | l2c_utils.cc | 142 tL2C_CCB* p_ccb; in l2cu_release_lcb() local 178 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2cu_release_lcb() 179 p_ccb = p_lcb->ccb_queue.p_first_ccb) { in l2cu_release_lcb() 180 l2cu_release_ccb(p_ccb); in l2cu_release_lcb() 426 void l2cu_send_peer_connect_req(tL2C_CCB* p_ccb) { in l2cu_send_peer_connect_req() argument 431 p_ccb->p_lcb->id++; in l2cu_send_peer_connect_req() 432 l2cu_adj_id(p_ccb->p_lcb, L2CAP_ADJ_ID); in l2cu_send_peer_connect_req() 434 p_ccb->local_id = p_ccb->p_lcb->id; in l2cu_send_peer_connect_req() 436 p_buf = l2cu_build_header(p_ccb->p_lcb, L2CAP_CONN_REQ_LEN, in l2cu_send_peer_connect_req() 437 L2CAP_CMD_CONN_REQ, p_ccb->local_id); in l2cu_send_peer_connect_req() [all …]
|
D | l2c_api.cc | 127 tL2C_CCB* p_ccb; in L2CA_Deregister() local 138 p_ccb = p_lcb->ccb_queue.p_first_ccb; in L2CA_Deregister() 139 if ((p_ccb == NULL) || (p_lcb->link_state == LST_DISCONNECTING)) { in L2CA_Deregister() 143 if ((p_ccb->in_use) && in L2CA_Deregister() 144 ((p_ccb->chnl_state == CST_W4_L2CAP_DISCONNECT_RSP) || in L2CA_Deregister() 145 (p_ccb->chnl_state == CST_W4_L2CA_DISCONNECT_RSP))) { in L2CA_Deregister() 149 if (p_ccb->p_rcb == p_rcb) { in L2CA_Deregister() 150 l2c_csm_execute(p_ccb, L2CEVT_L2CA_DISCONNECT_REQ, NULL); in L2CA_Deregister() 335 tL2C_CCB* p_ccb = l2cu_allocate_ccb(p_lcb, 0); in L2CA_ErtmConnectReq() local 336 if (p_ccb == nullptr) { in L2CA_ErtmConnectReq() [all …]
|
D | l2c_main.cc | 148 tL2C_CCB* p_ccb = NULL; in l2c_rcv_acl_data() local 150 p_ccb = l2cu_find_ccb_by_cid(p_lcb, rcv_cid); in l2c_rcv_acl_data() 151 if (!p_ccb) { in l2c_rcv_acl_data() 204 p_ccb = p_lcb->p_fixed_ccbs[rcv_cid - L2CAP_FIRST_FIXED_CHNL]; in l2c_rcv_acl_data() 206 if (p_ccb->peer_cfg.fcr.mode != L2CAP_FCR_BASIC_MODE) in l2c_rcv_acl_data() 207 l2c_fcr_proc_pdu(p_ccb, p_msg); in l2c_rcv_acl_data() 215 if (!p_ccb) { in l2c_rcv_acl_data() 221 l2c_lcc_proc_pdu(p_ccb, p_msg); in l2c_rcv_acl_data() 224 --p_ccb->remote_credit_count; in l2c_rcv_acl_data() 227 if (p_ccb->remote_credit_count <= L2CAP_LE_CREDIT_THRESHOLD) { in l2c_rcv_acl_data() [all …]
|
D | l2c_ble.cc | 236 tL2C_CCB* p_ccb; in l2cble_notify_le_connection() local 248 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2cble_notify_le_connection() 249 p_ccb = p_ccb->p_next_ccb) { in l2cble_notify_le_connection() 250 if (p_ccb->chnl_state == CST_CLOSED) in l2cble_notify_le_connection() 251 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, NULL); in l2cble_notify_le_connection() 476 tL2C_CCB *p_ccb = NULL, *temp_p_ccb = NULL; in l2cble_process_sig_cmd() local 578 p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, rcid); in l2cble_process_sig_cmd() 579 if (p_ccb) { in l2cble_process_sig_cmd() 604 p_ccb = l2cu_allocate_ccb(p_lcb, 0); in l2cble_process_sig_cmd() 605 if (p_ccb == NULL) { in l2cble_process_sig_cmd() [all …]
|
D | l2c_link.cc | 150 tL2C_CCB* p_ccb; in l2c_link_hci_conn_comp() local 215 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; in l2c_link_hci_conn_comp() 216 p_ccb = p_ccb->p_next_ccb) { in l2c_link_hci_conn_comp() 217 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM, &ci); in l2c_link_hci_conn_comp() 242 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb;) { in l2c_link_hci_conn_comp() 243 tL2C_CCB* pn = p_ccb->p_next_ccb; in l2c_link_hci_conn_comp() 245 l2c_csm_execute(p_ccb, L2CEVT_LP_CONNECT_CFM_NEG, &ci); in l2c_link_hci_conn_comp() 247 p_ccb = pn; in l2c_link_hci_conn_comp() 289 tL2C_CCB* p_ccb; in l2c_link_sec_comp2() local 311 for (p_ccb = p_lcb->ccb_queue.p_first_ccb; p_ccb; p_ccb = p_next_ccb) { in l2c_link_sec_comp2() [all …]
|
D | l2c_int.h | 604 extern void l2cu_enqueue_ccb(tL2C_CCB* p_ccb); 605 extern void l2cu_dequeue_ccb(tL2C_CCB* p_ccb); 606 extern void l2cu_change_pri_ccb(tL2C_CCB* p_ccb, tL2CAP_CHNL_PRIORITY priority); 609 extern void l2cu_release_ccb(tL2C_CCB* p_ccb); 618 extern void l2cu_send_peer_connect_req(tL2C_CCB* p_ccb); 619 extern void l2cu_send_peer_connect_rsp(tL2C_CCB* p_ccb, uint16_t result, 621 extern void l2cu_send_peer_config_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg); 622 extern void l2cu_send_peer_config_rsp(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg); 623 extern void l2cu_send_peer_config_rej(tL2C_CCB* p_ccb, uint8_t* p_data, 625 extern void l2cu_send_peer_disc_req(tL2C_CCB* p_ccb); [all …]
|
/system/bt/stack/gap/ |
D | gap_conn.cc | 103 static void gap_release_ccb(tGAP_CCB* p_ccb); 104 static void gap_checks_con_flags(tGAP_CCB* p_ccb); 174 tGAP_CCB* p_ccb; in GAP_ConnOpen() local 180 p_ccb = gap_allocate_ccb(); in GAP_ConnOpen() 181 if (p_ccb == NULL) return (GAP_INVALID_HANDLE); in GAP_ConnOpen() 184 p_ccb->transport = transport; in GAP_ConnOpen() 187 p_ccb->service_id = service_id; in GAP_ConnOpen() 192 if (*p_rem_bda != RawAddress::kAny) p_ccb->rem_addr_specified = true; in GAP_ConnOpen() 194 p_ccb->rem_dev_address = *p_rem_bda; in GAP_ConnOpen() 201 if (!p_ccb->rem_addr_specified && !is_server) { in GAP_ConnOpen() [all …]
|
/system/bt/stack/sdp/ |
D | sdp_main.cc | 170 tCONN_CB* p_ccb; in sdp_connect_ind() local 173 p_ccb = sdpu_allocate_ccb(); in sdp_connect_ind() 174 if (p_ccb == NULL) return; in sdp_connect_ind() 177 p_ccb->con_state = SDP_STATE_CFG_SETUP; in sdp_connect_ind() 180 p_ccb->device_address = bd_addr; in sdp_connect_ind() 181 p_ccb->connection_id = l2cap_cid; in sdp_connect_ind() 206 p_ccb->connection_id); in sdp_connect_ind() 225 tCONN_CB* p_ccb; in sdp_connect_cfm() local 229 p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_connect_cfm() 230 if (p_ccb == NULL) { in sdp_connect_cfm() [all …]
|
D | sdp_server.cc | 54 static void process_service_search(tCONN_CB* p_ccb, uint16_t trans_num, 58 static void process_service_attr_req(tCONN_CB* p_ccb, uint16_t trans_num, 62 static void process_service_search_attr_req(tCONN_CB* p_ccb, uint16_t trans_num, 115 void sdp_server_handle_client_req(tCONN_CB* p_ccb, BT_HDR* p_msg) { in sdp_server_handle_client_req() argument 122 alarm_set_on_mloop(p_ccb->sdp_conn_timer, SDP_INACT_TIMEOUT_MS, in sdp_server_handle_client_req() 123 sdp_conn_timer_timeout, p_ccb); in sdp_server_handle_client_req() 128 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_REQ_SYNTAX, in sdp_server_handle_client_req() 140 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_REQ_SYNTAX, in sdp_server_handle_client_req() 147 sdpu_build_n_send_error(p_ccb, trans_num, SDP_INVALID_PDU_SIZE, in sdp_server_handle_client_req() 154 process_service_search(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req() [all …]
|
D | sdp_discovery.cc | 45 static void process_service_search_rsp(tCONN_CB* p_ccb, uint8_t* p_reply, 47 static void process_service_attr_rsp(tCONN_CB* p_ccb, uint8_t* p_reply, 49 static void process_service_search_attr_rsp(tCONN_CB* p_ccb, uint8_t* p_reply, 51 static uint8_t* save_attr_seq(tCONN_CB* p_ccb, uint8_t* p, uint8_t* p_msg_end); 118 static void sdp_snd_service_search_req(tCONN_CB* p_ccb, uint8_t cont_len, in sdp_snd_service_search_req() argument 130 UINT16_TO_BE_STREAM(p, p_ccb->transaction_id); in sdp_snd_service_search_req() 131 p_ccb->transaction_id++; in sdp_snd_service_search_req() 140 &p_ccb->p_db->uuid_filters[p_ccb->cur_uuid_idx]); in sdp_snd_service_search_req() 142 p = sdpu_build_uuid_seq(p, p_ccb->p_db->num_uuid_filters, in sdp_snd_service_search_req() 143 p_ccb->p_db->uuid_filters); in sdp_snd_service_search_req() [all …]
|
/system/bt/stack/avdt/ |
D | avdt_ccb_act.cc | 49 static void avdt_ccb_clear_ccb(AvdtpCcb* p_ccb) { in avdt_ccb_clear_ccb() argument 53 p_ccb->cong = false; in avdt_ccb_clear_ccb() 54 p_ccb->ret_count = 0; in avdt_ccb_clear_ccb() 57 osi_free_and_reset((void**)&p_ccb->p_curr_msg); in avdt_ccb_clear_ccb() 60 osi_free_and_reset((void**)&p_ccb->p_rx_msg); in avdt_ccb_clear_ccb() 63 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_ccb->rsp_q)) != NULL) in avdt_ccb_clear_ccb() 78 void avdt_ccb_chan_open(AvdtpCcb* p_ccb, UNUSED_ATTR tAVDT_CCB_EVT* p_data) { in avdt_ccb_chan_open() argument 79 BTM_SetOutService(p_ccb->peer_addr, BTM_SEC_SERVICE_AVDTP, AVDT_CHAN_SIG); in avdt_ccb_chan_open() 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 [all …]
|
D | avdt_ccb.cc | 367 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 …]
|
D | avdt_msg.cc | 1047 bool avdt_msg_send(AvdtpCcb* p_ccb, BT_HDR* p_msg) { in avdt_msg_send() argument 1060 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_SIG, p_ccb, NULL); in avdt_msg_send() 1064 p_ccb->p_curr_msg = p_msg; in avdt_msg_send() 1068 curr_msg_len = p_ccb->p_curr_msg->len; in avdt_msg_send() 1071 while ((!p_ccb->cong) && (p_ccb->p_curr_msg != NULL)) { in avdt_msg_send() 1077 if ((p_ccb->p_curr_msg->offset == AVDT_MSG_OFFSET) && in avdt_msg_send() 1078 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) { in avdt_msg_send() 1081 p_buf = p_ccb->p_curr_msg; in avdt_msg_send() 1084 else if ((p_ccb->p_curr_msg->offset == AVDT_MSG_OFFSET) && in avdt_msg_send() 1085 (p_ccb->p_curr_msg->len > in avdt_msg_send() [all …]
|
D | avdt_ad.cc | 142 AvdtpTransportChannel* avdt_ad_tc_tbl_by_st(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_st() argument 148 if (p_ccb == NULL) { in avdt_ad_tc_tbl_by_st() 157 ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_st() 217 AvdtpTransportChannel* avdt_ad_tc_tbl_by_type(uint8_t type, AvdtpCcb* p_ccb, in avdt_ad_tc_tbl_by_type() argument 222 uint8_t ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_by_type() 248 AvdtpTransportChannel* avdt_ad_tc_tbl_alloc(AvdtpCcb* p_ccb) { in avdt_ad_tc_tbl_alloc() argument 265 p_tbl->ccb_idx = avdt_ccb_to_idx(p_ccb); in avdt_ad_tc_tbl_alloc() 302 AvdtpCcb* p_ccb; in avdt_ad_tc_close_ind() local 316 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_ad_tc_close_ind() 317 avdt_ccb_event(p_ccb, AVDT_CCB_LL_CLOSE_EVT, NULL); in avdt_ad_tc_close_ind() [all …]
|
D | avdt_l2c.cc | 79 AvdtpCcb* p_ccb = NULL; in avdt_sec_check_complete_term() local 84 p_ccb = avdt_ccb_by_bd(*bd_addr); in avdt_sec_check_complete_term() 86 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP); in avdt_sec_check_complete_term() 97 avdtp_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid; in avdt_sec_check_complete_term() 130 AvdtpCcb* p_ccb = NULL; in avdt_sec_check_complete_orig() local 135 if (bd_addr) p_ccb = avdt_ccb_by_bd(*bd_addr); in avdt_sec_check_complete_orig() 136 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_INT); in avdt_sec_check_complete_orig() 167 AvdtpCcb* p_ccb; in avdt_l2c_connect_ind_cback() local 174 p_ccb = avdt_ccb_by_bd(bd_addr); in avdt_l2c_connect_ind_cback() 175 if (p_ccb == NULL) { in avdt_l2c_connect_ind_cback() [all …]
|
D | avdt_int.h | 422 p_ccb(nullptr), in AvdtpScb() 453 AvdtpCcb* p_ccb_saved = p_ccb; in Recycle() 471 p_ccb = nullptr; in Reset() 495 AvdtpCcb* p_ccb; // CCB associated with this SCB variable 735 typedef void (*tAVDT_CCB_ACTION)(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data); 817 extern void avdt_ccb_event(AvdtpCcb* p_ccb, uint8_t event, 823 extern void avdt_ccb_dealloc(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data); 824 extern uint8_t avdt_ccb_to_idx(AvdtpCcb* p_ccb); 828 extern void avdt_ccb_chan_open(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data); 829 extern void avdt_ccb_chan_close(AvdtpCcb* p_ccb, tAVDT_CCB_EVT* p_data); [all …]
|
D | avdt_api.cc | 41 AvdtpCcb* p_ccb = (AvdtpCcb*)data; in avdt_ccb_idle_ccb_timer_timeout() local 47 avdt_ccb_event(p_ccb, avdt_event, &avdt_ccb_evt); in avdt_ccb_idle_ccb_timer_timeout() 51 AvdtpCcb* p_ccb = (AvdtpCcb*)data; in avdt_ccb_ret_ccb_timer_timeout() local 57 avdt_ccb_event(p_ccb, avdt_event, &avdt_ccb_evt); in avdt_ccb_ret_ccb_timer_timeout() 61 AvdtpCcb* p_ccb = (AvdtpCcb*)data; in avdt_ccb_rsp_ccb_timer_timeout() local 67 avdt_ccb_event(p_ccb, avdt_event, &avdt_ccb_evt); in avdt_ccb_rsp_ccb_timer_timeout() 259 AvdtpCcb* p_ccb; in AVDT_DiscoverReq() local 266 p_ccb = avdt_ccb_by_bd(bd_addr); in AVDT_DiscoverReq() 267 if (p_ccb == NULL) { in AVDT_DiscoverReq() 268 p_ccb = avdt_ccb_alloc_by_channel_index(bd_addr, channel_index); in AVDT_DiscoverReq() [all …]
|
/system/bt/stack/avct/ |
D | avct_ccb.cc | 43 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 …]
|
D | avct_api.cc | 137 tAVCT_CCB* p_ccb; in AVCT_CreateConn() local 143 p_ccb = avct_ccb_alloc(p_cc); in AVCT_CreateConn() 144 if (p_ccb == NULL) { in AVCT_CreateConn() 148 *p_handle = avct_ccb_to_idx(p_ccb); in AVCT_CreateConn() 158 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn() 164 avct_ccb_dealloc(p_ccb, AVCT_NO_EVT, 0, NULL); in AVCT_CreateConn() 170 p_ccb->p_lcb = p_lcb; in AVCT_CreateConn() 173 avct_lcb_evt.p_ccb = p_ccb; in AVCT_CreateConn() 196 tAVCT_CCB* p_ccb; in AVCT_RemoveConn() local 201 p_ccb = avct_ccb_by_idx(handle); in AVCT_RemoveConn() [all …]
|
D | avct_bcb_act.cc | 139 p_data->p_ccb->p_bcb = NULL; in avct_bcb_unbind_disc() 140 (*p_data->p_ccb->cc.p_ctrl_cback)(avct_ccb_to_idx(p_data->p_ccb), in avct_bcb_unbind_disc() 159 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_bcb_open_ind() local 164 for (int idx = 0; idx < AVCT_NUM_CONN; idx++, p_ccb++) { in avct_bcb_open_ind() 166 if (p_ccb->allocated) { in avct_bcb_open_ind() 168 if (p_ccb->p_bcb == p_bcb) { in avct_bcb_open_ind() 170 p_ccb_bind = p_ccb; in avct_bcb_open_ind() 171 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_BROWSE_CONN_CFM_EVT, in avct_bcb_open_ind() 172 0, &p_ccb->p_lcb->peer_addr); in avct_bcb_open_ind() 176 else if ((p_ccb->p_bcb == NULL) && (p_ccb->cc.role == AVCT_ACP) && in avct_bcb_open_ind() [all …]
|
D | avct_lcb_act.cc | 199 avct_ccb_dealloc(p_data->p_ccb, AVCT_DISCONNECT_CFM_EVT, 0, NULL); in avct_lcb_unbind_disc() 216 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_lcb_open_ind() local 220 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_open_ind() 222 if (p_ccb->allocated) { in avct_lcb_open_ind() 224 if (p_ccb->p_lcb == p_lcb) { in avct_lcb_open_ind() 227 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_CONNECT_CFM_EVT, 0, in avct_lcb_open_ind() 231 else if ((p_ccb->p_lcb == NULL) && (p_ccb->cc.role == AVCT_ACP) && in avct_lcb_open_ind() 232 (avct_lcb_has_pid(p_lcb, p_ccb->cc.pid) == NULL)) { in avct_lcb_open_ind() 235 p_ccb->p_lcb = p_lcb; in avct_lcb_open_ind() 237 p_ccb->cc.p_ctrl_cback(avct_ccb_to_idx(p_ccb), AVCT_CONNECT_IND_EVT, 0, in avct_lcb_open_ind() [all …]
|
D | avct_lcb.cc | 81 typedef void (*tAVCT_LCB_ACTION)(tAVCT_LCB* p_ccb, tAVCT_LCB_EVT* p_data); 301 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_lcb_dealloc() local 302 for (size_t i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_dealloc() 303 if (p_ccb->allocated && p_ccb->p_lcb == p_lcb) { in avct_lcb_dealloc() 358 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_lcb_has_pid() local 361 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_has_pid() 362 if (p_ccb->allocated && (p_ccb->p_lcb == p_lcb) && (p_ccb->cc.pid == pid)) { in avct_lcb_has_pid() 363 return p_ccb; in avct_lcb_has_pid() 380 tAVCT_CCB* p_ccb = &avct_cb.ccb[0]; in avct_lcb_last_ccb() local 384 for (i = 0; i < AVCT_NUM_CONN; i++, p_ccb++) { in avct_lcb_last_ccb() [all …]
|
/system/bt/stack/mcap/ |
D | mca_cact.cc | 50 void mca_ccb_rsp_tout(tMCA_CCB* p_ccb, UNUSED_ATTR tMCA_CCB_EVT* p_data) { in mca_ccb_rsp_tout() argument 53 mca_ccb_report_event(p_ccb, MCA_RSP_TOUT_IND_EVT, &evt_data); in mca_ccb_rsp_tout() 65 void mca_ccb_report_event(tMCA_CCB* p_ccb, uint8_t event, tMCA_CTRL* p_data) { in mca_ccb_report_event() argument 66 if (p_ccb && p_ccb->p_rcb && p_ccb->p_rcb->p_cback) in mca_ccb_report_event() 67 (*p_ccb->p_rcb->p_cback)(mca_rcb_to_handle(p_ccb->p_rcb), in mca_ccb_report_event() 68 mca_ccb_to_hdl(p_ccb), event, p_data); in mca_ccb_report_event() 80 void mca_ccb_free_msg(UNUSED_ATTR tMCA_CCB* p_ccb, tMCA_CCB_EVT* p_data) { in mca_ccb_free_msg() argument 93 void mca_ccb_snd_req(tMCA_CCB* p_ccb, tMCA_CCB_EVT* p_data) { in mca_ccb_snd_req() argument 99 MCA_TRACE_DEBUG("mca_ccb_snd_req cong=%d req=%d", p_ccb->cong, in mca_ccb_snd_req() 102 if ((p_ccb->status == MCA_CCB_STAT_PENDING) && in mca_ccb_snd_req() [all …]
|