Home
last modified time | relevance | path

Searched refs:p_dcb (Results 1 – 13 of 13) sorted by relevance

/system/bt/stack/mcap/
Dmca_dact.c42 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 …]
Dmca_dsm.c137 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 …]
Dmca_api.c291 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 …]
Dmca_main.c163 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 …]
Dmca_cact.c102 tMCA_DCB *p_dcb; in mca_ccb_snd_req() local
108 p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx); in mca_ccb_snd_req()
111 p_msg->mdl_id = p_dcb->mdl_id; in mca_ccb_snd_req()
112 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); in mca_ccb_snd_req()
264 tMCA_DCB *p_dcb; in mca_ccb_hdl_req() local
290 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()
292 mca_dcb_dealloc (p_dcb, NULL); in mca_ccb_hdl_req()
317 ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) != NULL)) in mca_ccb_hdl_req()
319 mca_dcb_dealloc(p_dcb, NULL); in mca_ccb_hdl_req()
466 tMCA_DCB *p_dcb; in mca_ccb_hdl_rsp() local
[all …]
Dmca_int.h286 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);
Dmca_csm.c370 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()
Dmca_l2c.c233 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/
Dbta_hl_act.c88 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 …]
Dbta_hl_utils.c274 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
279 utl_freebuf((void **) &p_dcb->p_tx_pkt); in bta_hl_clean_mdl_cb()
280 utl_freebuf((void **) &p_dcb->p_rx_pkt); in bta_hl_clean_mdl_cb()
281 utl_freebuf((void **) &p_dcb->p_echo_tx_pkt); in bta_hl_clean_mdl_cb()
282 utl_freebuf((void **) &p_dcb->p_echo_rx_pkt); in bta_hl_clean_mdl_cb()
284 memset((void *)p_dcb, 0 , sizeof(tBTA_HL_MDL_CB)); in bta_hl_clean_mdl_cb()
374 tBTA_HL_MDL_CB *p_dcb; in bta_hl_get_service_uuids() local
382 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); in bta_hl_get_service_uuids()
383 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) in bta_hl_get_service_uuids()
385 if (p_dcb->peer_mdep_role == BTA_HL_MDEP_ROLE_SINK) in bta_hl_get_service_uuids()
[all …]
Dbta_hl_main.c964 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()
1001p_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/
Dbta_hl_co.c326 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 …]
/system/bt/btif/src/
Dbtif_hl.c525 static void btif_hl_clean_mdl_cb(btif_hl_mdl_cb_t *p_dcb) in btif_hl_clean_mdl_cb() argument
528 btif_hl_free_buf((void **) &p_dcb->p_rx_pkt); in btif_hl_clean_mdl_cb()
529 btif_hl_free_buf((void **) &p_dcb->p_tx_pkt); in btif_hl_clean_mdl_cb()
530 memset(p_dcb, 0 , sizeof(btif_hl_mdl_cb_t)); in btif_hl_clean_mdl_cb()
1059 btif_hl_mdl_cb_t *p_dcb; in btif_hl_find_mdl_idx_using_channel_id() local
1071 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k); in btif_hl_find_mdl_idx_using_channel_id()
1074 p_dcb->in_use && in btif_hl_find_mdl_idx_using_channel_id()
1075 (p_dcb->channel_id == channel_id)) in btif_hl_find_mdl_idx_using_channel_id()
1141 btif_hl_mdl_cb_t *p_dcb; in btif_hl_find_mdl_idx_using_handle() local
1156 p_dcb =BTIF_HL_GET_MDL_CB_PTR(i,j,k); in btif_hl_find_mdl_idx_using_handle()
[all …]