/system/bt/stack/mcap/ |
D | mca_dact.c | 42 void mca_dcb_report_cong (tMCA_DCB *p_dcb) in mca_dcb_report_cong() argument 46 evt_data.cong_chg.cong = p_dcb->cong; in mca_dcb_report_cong() 47 evt_data.cong_chg.mdl = mca_dcb_to_hdl(p_dcb); in mca_dcb_report_cong() 48 evt_data.cong_chg.mdl_id = p_dcb->mdl_id; in mca_dcb_report_cong() 49 mca_ccb_report_event (p_dcb->p_ccb, MCA_CONG_CHG_EVT, &evt_data); in mca_dcb_report_cong() 63 void mca_dcb_tc_open (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data) in mca_dcb_tc_open() argument 66 tMCA_CCB *p_ccb = p_dcb->p_ccb; in mca_dcb_tc_open() 71 p_dcb->cong = FALSE; in mca_dcb_tc_open() 73 evt_data.open_cfm.mdl_id = p_dcb->mdl_id; in mca_dcb_tc_open() 74 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 …NT("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_EVENT("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 | 289 tMCA_DCB *p_dcb; in MCA_DeleteDep() local 303 p_dcb = &mca_cb.dcb[i*max]; in MCA_DeleteDep() 305 for (i=0; i<max; i++, p_dcb++) in MCA_DeleteDep() 307 if (p_dcb->state && p_dcb->p_cs == p_depcs) in MCA_DeleteDep() 309 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); in MCA_DeleteDep() 427 tMCA_DCB *p_dcb; in MCA_CreateMdl() local 450 p_dcb = mca_dcb_alloc(p_ccb, dep); in MCA_CreateMdl() 452 if (p_dcb) in MCA_CreateMdl() 455 p_dcb->p_chnl_cfg = p_chnl_cfg; in MCA_CreateMdl() 456 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 if (p_dcb) in mca_set_cfg_by_tbl() 270 p_opt = &p_dcb->p_chnl_cfg->fcr_opt; in mca_set_cfg_by_tbl() [all …]
|
D | mca_cact.c | 103 tMCA_DCB *p_dcb; in mca_ccb_snd_req() local 109 p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx); in mca_ccb_snd_req() 112 p_msg->mdl_id = p_dcb->mdl_id; in mca_ccb_snd_req() 113 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); in mca_ccb_snd_req() 260 tMCA_DCB *p_dcb; in mca_ccb_hdl_req() local 286 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() 288 mca_dcb_dealloc(p_dcb, NULL); in mca_ccb_hdl_req() 313 ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) != NULL)) in mca_ccb_hdl_req() 315 mca_dcb_dealloc(p_dcb, NULL); in mca_ccb_hdl_req() 458 tMCA_DCB *p_dcb; in mca_ccb_hdl_rsp() local [all …]
|
D | mca_int.h | 287 extern void mca_dcb_event(tMCA_DCB *p_dcb, UINT8 event, tMCA_DCB_EVT *p_data); 290 extern void mca_dcb_dealloc(tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 291 extern tMCA_DL mca_dcb_to_hdl(tMCA_DCB *p_dcb); 296 extern void mca_dcb_tc_open (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 297 extern void mca_dcb_cong (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 298 extern void mca_dcb_free_data (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 299 extern void mca_dcb_do_disconn (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 300 extern void mca_dcb_snd_data (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 301 extern void mca_dcb_hdl_data (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data); 308 extern tMCA_TC_TBL * mca_tc_tbl_dalloc(tMCA_DCB *p_dcb);
|
D | mca_csm.c | 368 tMCA_DCB *p_dcb; in mca_ccb_uses_mdl_id() local 372 p_dcb = &mca_cb.dcb[i*MCA_NUM_MDLS]; in mca_ccb_uses_mdl_id() 373 for (i=0; i<MCA_NUM_MDLS; i++, p_dcb++) in mca_ccb_uses_mdl_id() 375 if (p_dcb->state != MCA_DCB_NULL_ST && p_dcb->mdl_id == mdl_id) in mca_ccb_uses_mdl_id()
|
D | mca_l2c.c | 233 tMCA_DCB *p_dcb; in mca_l2c_dconn_ind_cback() local 244 (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() 248 p_dcb->lcid = lcid; in mca_l2c_dconn_ind_cback() 249 p_tbl = mca_tc_tbl_dalloc(p_dcb); in mca_l2c_dconn_ind_cback() 252 p_chnl_cfg = p_dcb->p_chnl_cfg; in mca_l2c_dconn_ind_cback()
|
/system/bt/bta/hl/ |
D | bta_hl_act.c | 88 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 98 p_dcb->cong = p_cong_chg->cong; in bta_hl_dch_mca_cong_change() 99 evt_data.dch_cong_ind.mdl_handle = p_dcb->mdl_handle; in bta_hl_dch_mca_cong_change() 122 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 | 246 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 251 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); in bta_hl_clean_mdl_cb() 252 osi_free_and_reset((void **)&p_dcb->p_rx_pkt); in bta_hl_clean_mdl_cb() 253 osi_free_and_reset((void **)&p_dcb->p_echo_tx_pkt); in bta_hl_clean_mdl_cb() 254 osi_free_and_reset((void **)&p_dcb->p_echo_rx_pkt); in bta_hl_clean_mdl_cb() 256 memset((void *)p_dcb, 0 , sizeof(tBTA_HL_MDL_CB)); in bta_hl_clean_mdl_cb() 338 tBTA_HL_MDL_CB *p_dcb; in bta_hl_get_service_uuids() local 346 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_get_service_uuids() 347 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_get_service_uuids() 349 if (p_dcb->peer_mdep_role == BTA_HL_MDEP_ROLE_SINK) in bta_hl_get_service_uuids() [all …]
|
D | bta_hl_main.c | 964 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 …]
|
/system/bt/btif/co/ |
D | bta_hl_co.c | 325 btif_hl_mdl_cb_t *p_dcb; in bta_hl_co_get_tx_data() local 333 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_co_get_tx_data() 335 if (p_dcb->tx_size <= buf_size ) in bta_hl_co_get_tx_data() 337 memcpy(p_buf, p_dcb->p_tx_pkt, p_dcb->tx_size); in bta_hl_co_get_tx_data() 338 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); in bta_hl_co_get_tx_data() 339 p_dcb->tx_size = 0; in bta_hl_co_get_tx_data() 370 btif_hl_mdl_cb_t *p_dcb; in bta_hl_co_put_rx_data() local 377 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_co_put_rx_data() 379 p_dcb->p_rx_pkt = (UINT8 *)osi_malloc(data_size); in bta_hl_co_put_rx_data() 380 memcpy(p_dcb->p_rx_pkt, p_data, data_size); in bta_hl_co_put_rx_data() [all …]
|
/system/bt/btif/src/ |
D | btif_hl.c | 426 static void btif_hl_clean_mdl_cb(btif_hl_mdl_cb_t *p_dcb) in btif_hl_clean_mdl_cb() argument 429 osi_free_and_reset((void **)&p_dcb->p_rx_pkt); in btif_hl_clean_mdl_cb() 430 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); in btif_hl_clean_mdl_cb() 431 memset(p_dcb, 0 , sizeof(btif_hl_mdl_cb_t)); in btif_hl_clean_mdl_cb() 958 btif_hl_mdl_cb_t *p_dcb; in btif_hl_find_mdl_idx_using_channel_id() local 970 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k); in btif_hl_find_mdl_idx_using_channel_id() 973 p_dcb->in_use && in btif_hl_find_mdl_idx_using_channel_id() 974 (p_dcb->channel_id == channel_id)) in btif_hl_find_mdl_idx_using_channel_id() 1039 btif_hl_mdl_cb_t *p_dcb; in btif_hl_find_mdl_idx_using_handle() local 1054 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k); in btif_hl_find_mdl_idx_using_handle() [all …]
|