/external/bluetooth/bluedroid/stack/mcap/ |
D | mca_dact.c | 39 void mca_dcb_report_cong (tMCA_DCB *p_dcb) in mca_dcb_report_cong() argument 43 evt_data.cong_chg.cong = p_dcb->cong; in mca_dcb_report_cong() 44 evt_data.cong_chg.mdl = mca_dcb_to_hdl(p_dcb); in mca_dcb_report_cong() 45 evt_data.cong_chg.mdl_id = p_dcb->mdl_id; in mca_dcb_report_cong() 46 mca_ccb_report_event (p_dcb->p_ccb, MCA_CONG_CHG_EVT, &evt_data); in mca_dcb_report_cong() 60 void mca_dcb_tc_open (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data) in mca_dcb_tc_open() argument 63 tMCA_CCB *p_ccb = p_dcb->p_ccb; in mca_dcb_tc_open() 68 p_dcb->cong = FALSE; in mca_dcb_tc_open() 70 evt_data.open_cfm.mdl_id = p_dcb->mdl_id; in mca_dcb_tc_open() 71 evt_data.open_cfm.mdl = mca_dcb_to_hdl(p_dcb); in mca_dcb_tc_open() [all …]
|
D | mca_dsm.c | 137 void mca_dcb_event(tMCA_DCB *p_dcb, UINT8 event, tMCA_DCB_EVT *p_data) in mca_dcb_event() argument 142 if (p_dcb == NULL) in mca_dcb_event() 145 …T3("DCB dcb=%d event=%s state=%s", mca_dcb_to_hdl(p_dcb), mca_dcb_evt_str[event], mca_dcb_st_str[p… in mca_dcb_event() 147 MCA_TRACE_EVENT3("DCB dcb=%d event=%d state=%d", mca_dcb_to_hdl(p_dcb), event, p_dcb->state); in mca_dcb_event() 151 state_table = mca_dcb_st_tbl[p_dcb->state - 1]; in mca_dcb_event() 154 p_dcb->state = state_table[event][MCA_DCB_NEXT_STATE]; in mca_dcb_event() 159 (*mca_dcb_action[action])(p_dcb, p_data); in mca_dcb_event() 175 tMCA_DCB *p_dcb = NULL, *p_dcb_tmp; in mca_dcb_alloc() local 195 p_dcb = p_dcb_tmp; in mca_dcb_alloc() 200 return p_dcb; in mca_dcb_alloc() [all …]
|
D | mca_api.c | 291 tMCA_DCB *p_dcb; in MCA_DeleteDep() local 305 p_dcb = &mca_cb.dcb[i*max]; in MCA_DeleteDep() 307 for (i=0; i<max; i++, p_dcb++) in MCA_DeleteDep() 309 if (p_dcb->state && p_dcb->p_cs == p_depcs) in MCA_DeleteDep() 311 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); in MCA_DeleteDep() 430 tMCA_DCB *p_dcb; in MCA_CreateMdl() local 453 p_dcb = mca_dcb_alloc(p_ccb, dep); in MCA_CreateMdl() 455 if (p_dcb) in MCA_CreateMdl() 458 p_dcb->p_chnl_cfg = p_chnl_cfg; in MCA_CreateMdl() 459 p_dcb->mdl_id = mdl_id; in MCA_CreateMdl() [all …]
|
D | mca_main.c | 163 tMCA_TC_TBL * mca_tc_tbl_dalloc(tMCA_DCB *p_dcb) in mca_tc_tbl_dalloc() argument 183 p_tbl->cb_idx = mca_dcb_to_hdl(p_dcb); in mca_tc_tbl_dalloc() 184 p_tbl->tcid = p_dcb->p_cs->type + 1; in mca_tc_tbl_dalloc() 185 p_tbl->my_mtu = p_dcb->p_chnl_cfg->data_mtu; in mca_tc_tbl_dalloc() 187 p_tbl->lcid = p_dcb->lcid; in mca_tc_tbl_dalloc() 188 mca_cb.tc.lcid_tbl[p_dcb->lcid - L2CAP_BASE_APPL_CID] = i; in mca_tc_tbl_dalloc() 257 tMCA_DCB *p_dcb; in mca_set_cfg_by_tbl() local 267 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx); in mca_set_cfg_by_tbl() 268 p_opt = &p_dcb->p_chnl_cfg->fcr_opt; in mca_set_cfg_by_tbl() 269 fcs = p_dcb->p_chnl_cfg->fcs; in mca_set_cfg_by_tbl() [all …]
|
D | mca_cact.c | 97 tMCA_DCB *p_dcb; in mca_ccb_snd_req() local 103 p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx); in mca_ccb_snd_req() 106 p_msg->mdl_id = p_dcb->mdl_id; in mca_ccb_snd_req() 107 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); in mca_ccb_snd_req() 163 tMCA_DCB *p_dcb; in mca_ccb_snd_rsp() local 185 p_dcb = mca_dcb_by_hdl(p_msg->dcb_idx); in mca_ccb_snd_rsp() 258 tMCA_DCB *p_dcb; in mca_ccb_hdl_req() local 284 if (p_ccb->p_tx_req && ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx))!= NULL)) in mca_ccb_hdl_req() 286 mca_dcb_dealloc (p_dcb, NULL); in mca_ccb_hdl_req() 311 ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) != NULL)) in mca_ccb_hdl_req() [all …]
|
D | mca_int.h | 286 extern void mca_dcb_event(tMCA_DCB *p_dcb, UINT8 event, tMCA_DCB_EVT *p_data); 289 extern void mca_dcb_dealloc(tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 290 extern tMCA_DL mca_dcb_to_hdl(tMCA_DCB *p_dcb); 295 extern void mca_dcb_tc_open (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 296 extern void mca_dcb_cong (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 297 extern void mca_dcb_free_data (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 298 extern void mca_dcb_do_disconn (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 299 extern void mca_dcb_snd_data (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 300 extern void mca_dcb_hdl_data (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 307 extern tMCA_TC_TBL * mca_tc_tbl_dalloc(tMCA_DCB *p_dcb);
|
D | mca_csm.c | 370 tMCA_DCB *p_dcb; in mca_ccb_uses_mdl_id() local 374 p_dcb = &mca_cb.dcb[i*MCA_NUM_MDLS]; in mca_ccb_uses_mdl_id() 375 for (i=0; i<MCA_NUM_MDLS; i++, p_dcb++) in mca_ccb_uses_mdl_id() 377 if (p_dcb->state != MCA_DCB_NULL_ST && p_dcb->mdl_id == mdl_id) in mca_ccb_uses_mdl_id()
|
D | mca_l2c.c | 228 tMCA_DCB *p_dcb; in mca_l2c_dconn_ind_cback() local 239 (p_ccb->p_tx_req && (p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) != NULL)) in mca_l2c_dconn_ind_cback() 243 p_dcb->lcid = lcid; in mca_l2c_dconn_ind_cback() 244 p_tbl = mca_tc_tbl_dalloc(p_dcb); in mca_l2c_dconn_ind_cback() 247 p_chnl_cfg = p_dcb->p_chnl_cfg; in mca_l2c_dconn_ind_cback()
|
/external/bluetooth/bluedroid/bta/hl/ |
D | bta_hl_act.c | 89 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_mca_cong_change() local 99 p_dcb->cong = p_cong_chg->cong; in bta_hl_dch_mca_cong_change() 100 evt_data.dch_cong_ind.mdl_handle = p_dcb->mdl_handle; in bta_hl_dch_mca_cong_change() 123 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_echo_test() local 129 p_dcb->echo_oper = BTA_HL_ECHO_OP_CI_GET_ECHO_DATA; in bta_hl_dch_echo_test() 130 p_dcb->cout_oper |= BTA_HL_CO_GET_ECHO_DATA_MASK; in bta_hl_dch_echo_test() 133 p_dcb->p_echo_tx_pkt->len, in bta_hl_dch_echo_test() 134 BTA_HL_GET_BUF_PTR(p_dcb->p_echo_tx_pkt), in bta_hl_dch_echo_test() 151 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_dch_sdp_init() local 159 if (p_dcb->dch_oper == BTA_HL_DCH_OP_LOCAL_OPEN ) in bta_hl_dch_sdp_init() [all …]
|
D | bta_hl_utils.c | 275 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_clean_mdl_cb() local 280 utl_freebuf((void **) &p_dcb->p_tx_pkt); in bta_hl_clean_mdl_cb() 281 utl_freebuf((void **) &p_dcb->p_rx_pkt); in bta_hl_clean_mdl_cb() 282 utl_freebuf((void **) &p_dcb->p_echo_tx_pkt); in bta_hl_clean_mdl_cb() 283 utl_freebuf((void **) &p_dcb->p_echo_rx_pkt); in bta_hl_clean_mdl_cb() 285 memset((void *)p_dcb, 0 , sizeof(tBTA_HL_MDL_CB)); in bta_hl_clean_mdl_cb() 375 tBTA_HL_MDL_CB *p_dcb; in bta_hl_get_service_uuids() local 383 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_get_service_uuids() 384 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_get_service_uuids() 386 if (p_dcb->peer_mdep_role == BTA_HL_MDEP_ROLE_SINK) in bta_hl_get_service_uuids() [all …]
|
D | bta_hl_main.c | 965 tBTA_HL_MDL_CB *p_dcb; in bta_hl_api_dch_open() local 979 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_api_dch_open() 998 p_dcb->in_use = TRUE; in bta_hl_api_dch_open() 999 p_dcb->dch_oper = BTA_HL_DCH_OP_LOCAL_OPEN; in bta_hl_api_dch_open() 1000 p_dcb->sec_mask = p_data->api_dch_open.sec_mask; in bta_hl_api_dch_open() 1001 … p_dcb->local_mdep_id = p_data->api_dch_open.local_mdep_id; in bta_hl_api_dch_open() 1002 p_dcb->peer_mdep_id = p_data->api_dch_open.peer_mdep_id; in bta_hl_api_dch_open() 1006 p_dcb->peer_mdep_role = BTA_HL_MDEP_ROLE_SOURCE; in bta_hl_api_dch_open() 1010 p_dcb->peer_mdep_role = BTA_HL_MDEP_ROLE_SINK; in bta_hl_api_dch_open() 1013 p_dcb->local_mdep_cfg_idx = mdep_cfg_idx; in bta_hl_api_dch_open() [all …]
|
/external/bluetooth/bluedroid/btif/co/ |
D | bta_hl_co.c | 326 btif_hl_mdl_cb_t *p_dcb; in bta_hl_co_get_tx_data() local 334 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_co_get_tx_data() 336 if (p_dcb->tx_size <= buf_size ) in bta_hl_co_get_tx_data() 338 memcpy(p_buf, p_dcb->p_tx_pkt, p_dcb->tx_size); in bta_hl_co_get_tx_data() 339 btif_hl_free_buf((void **) &p_dcb->p_tx_pkt); in bta_hl_co_get_tx_data() 340 p_dcb->tx_size = 0; in bta_hl_co_get_tx_data() 371 btif_hl_mdl_cb_t *p_dcb; in bta_hl_co_put_rx_data() local 379 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_co_put_rx_data() 381 if ((p_dcb->p_rx_pkt = (UINT8 *)btif_hl_get_buf(data_size)) != NULL) in bta_hl_co_put_rx_data() 383 memcpy(p_dcb->p_rx_pkt, p_data, data_size); in bta_hl_co_put_rx_data() [all …]
|
/external/bluetooth/bluedroid/btif/src/ |
D | btif_hl.c | 509 static void btif_hl_clean_mdl_cb(btif_hl_mdl_cb_t *p_dcb) in btif_hl_clean_mdl_cb() argument 512 btif_hl_free_buf((void **) &p_dcb->p_rx_pkt); in btif_hl_clean_mdl_cb() 513 btif_hl_free_buf((void **) &p_dcb->p_tx_pkt); in btif_hl_clean_mdl_cb() 514 memset(p_dcb, 0 , sizeof(btif_hl_mdl_cb_t)); in btif_hl_clean_mdl_cb() 1042 btif_hl_mdl_cb_t *p_dcb; in btif_hl_find_mdl_idx_using_channel_id() local 1054 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k); in btif_hl_find_mdl_idx_using_channel_id() 1057 p_dcb->in_use && in btif_hl_find_mdl_idx_using_channel_id() 1058 (p_dcb->channel_id == channel_id)) in btif_hl_find_mdl_idx_using_channel_id() 1124 btif_hl_mdl_cb_t *p_dcb; in btif_hl_find_mdl_idx_using_handle() local 1136 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k); in btif_hl_find_mdl_idx_using_handle() [all …]
|