/external/bluetooth/bluedroid/stack/mcap/ |
mca_dact.c | 39 void mca_dcb_report_cong (tMCA_DCB *p_dcb) 43 evt_data.cong_chg.cong = p_dcb->cong; 44 evt_data.cong_chg.mdl = mca_dcb_to_hdl(p_dcb); 45 evt_data.cong_chg.mdl_id = p_dcb->mdl_id; 46 mca_ccb_report_event (p_dcb->p_ccb, MCA_CONG_CHG_EVT, &evt_data); 60 void mca_dcb_tc_open (tMCA_DCB *p_dcb, tMCA_DCB_EVT *p_data) 63 tMCA_CCB *p_ccb = p_dcb->p_ccb; 68 p_dcb->cong = FALSE; 70 evt_data.open_cfm.mdl_id = p_dcb->mdl_id; 71 evt_data.open_cfm.mdl = mca_dcb_to_hdl(p_dcb); [all...] |
mca_dsm.c | 137 void mca_dcb_event(tMCA_DCB *p_dcb, UINT8 event, tMCA_DCB_EVT *p_data) 142 if (p_dcb == NULL) 145 MCA_TRACE_EVENT3("DCB dcb=%d event=%s state=%s", mca_dcb_to_hdl(p_dcb), mca_dcb_evt_str[event], mca_dcb_st_str[p_dcb->state]); 147 MCA_TRACE_EVENT3("DCB dcb=%d event=%d state=%d", mca_dcb_to_hdl(p_dcb), event, p_dcb->state); 151 state_table = mca_dcb_st_tbl[p_dcb->state - 1]; 154 p_dcb->state = state_table[event][MCA_DCB_NEXT_STATE]; 159 (*mca_dcb_action[action])(p_dcb, p_data); 175 tMCA_DCB *p_dcb = NULL, *p_dcb_tmp local 215 tMCA_DCB *p_dcb; local 307 tMCA_DCB * p_dcb = NULL; local 325 tMCA_DCB *p_dcb; local [all...] |
mca_api.c | 291 tMCA_DCB *p_dcb; local 305 p_dcb = &mca_cb.dcb[i*max]; 307 for (i=0; i<max; i++, p_dcb++) 309 if (p_dcb->state && p_dcb->p_cs == p_depcs) 311 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); 430 tMCA_DCB *p_dcb; local 453 p_dcb = mca_dcb_alloc(p_ccb, dep); 455 if (p_dcb) 458 p_dcb->p_chnl_cfg = p_chnl_cfg 508 tMCA_DCB *p_dcb; local 572 tMCA_DCB *p_dcb = mca_dcb_by_hdl(mdl); local 605 tMCA_DCB *p_dcb; local 674 tMCA_DCB *p_dcb; local 738 tMCA_DCB *p_dcb; local 786 tMCA_DCB *p_dcb; local 886 tMCA_DCB *p_dcb = mca_dcb_by_hdl(mdl); local 918 tMCA_DCB *p_dcb = mca_dcb_by_hdl(mdl); local [all...] |
mca_main.c | 163 tMCA_TC_TBL * mca_tc_tbl_dalloc(tMCA_DCB *p_dcb) 183 p_tbl->cb_idx = mca_dcb_to_hdl(p_dcb); 184 p_tbl->tcid = p_dcb->p_cs->type + 1; 185 p_tbl->my_mtu = p_dcb->p_chnl_cfg->data_mtu; 187 p_tbl->lcid = p_dcb->lcid; 188 mca_cb.tc.lcid_tbl[p_dcb->lcid - L2CAP_BASE_APPL_CID] = i; 257 tMCA_DCB *p_dcb; local 267 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx); 268 p_opt = &p_dcb->p_chnl_cfg->fcr_opt; 269 fcs = p_dcb->p_chnl_cfg->fcs 299 tMCA_DCB *p_dcb; local 352 tMCA_DCB *p_dcb; local 407 tMCA_DCB *p_dcb; local 443 tMCA_DCB *p_dcb; local [all...] |
mca_cact.c | 97 tMCA_DCB *p_dcb; local 103 p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx); 106 p_msg->mdl_id = p_dcb->mdl_id; 107 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); 163 tMCA_DCB *p_dcb; local 185 p_dcb = mca_dcb_by_hdl(p_msg->dcb_idx); 258 tMCA_DCB *p_dcb; local 284 if (p_ccb->p_tx_req && ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx))!= NULL)) 286 mca_dcb_dealloc (p_dcb, NULL); 311 ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) != NULL) 460 tMCA_DCB *p_dcb; local [all...] |
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); [all...] |
mca_csm.c | 370 tMCA_DCB *p_dcb; local 374 p_dcb = &mca_cb.dcb[i*MCA_NUM_MDLS]; 375 for (i=0; i<MCA_NUM_MDLS; i++, p_dcb++) 377 if (p_dcb->state != MCA_DCB_NULL_ST && p_dcb->mdl_id == mdl_id)
|
mca_l2c.c | 228 tMCA_DCB *p_dcb; local 239 (p_ccb->p_tx_req && (p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) != NULL)) 243 p_dcb->lcid = lcid; 244 p_tbl = mca_tc_tbl_dalloc(p_dcb); 247 p_chnl_cfg = p_dcb->p_chnl_cfg;
|
/external/bluetooth/bluedroid/bta/hl/ |
bta_hl_act.c | 89 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 99 p_dcb->cong = p_cong_chg->cong; 100 evt_data.dch_cong_ind.mdl_handle = p_dcb->mdl_handle; 123 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 129 p_dcb->echo_oper = BTA_HL_ECHO_OP_CI_GET_ECHO_DATA; 130 p_dcb->cout_oper |= BTA_HL_CO_GET_ECHO_DATA_MASK; 133 p_dcb->p_echo_tx_pkt->len, 134 BTA_HL_GET_BUF_PTR(p_dcb->p_echo_tx_pkt), 151 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 159 if (p_dcb->dch_oper == BTA_HL_DCH_OP_LOCAL_OPEN 196 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 237 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 301 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 330 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 374 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 415 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 492 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 546 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 737 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 780 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 829 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 880 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 987 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1106 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1131 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1176 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1236 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1310 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1359 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1398 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1444 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1549 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1613 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1695 tBTA_HL_MDL_CB *p_dcb; local 2434 tBTA_HL_MDL_CB *p_dcb; local [all...] |
bta_hl_utils.c | 275 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 280 utl_freebuf((void **) &p_dcb->p_tx_pkt); 281 utl_freebuf((void **) &p_dcb->p_rx_pkt); 282 utl_freebuf((void **) &p_dcb->p_echo_tx_pkt); 283 utl_freebuf((void **) &p_dcb->p_echo_rx_pkt); 285 memset((void *)p_dcb, 0 , sizeof(tBTA_HL_MDL_CB)); 375 tBTA_HL_MDL_CB *p_dcb; local 383 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); 384 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) 386 if (p_dcb->peer_mdep_role == BTA_HL_MDEP_ROLE_SINK 467 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1214 tBTA_HL_MDL_CB *p_dcb; local 1306 tBTA_HL_MDL_CB *p_dcb; local 1877 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 2522 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 2592 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 2750 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 2804 tBTA_HL_MDL_CB *p_dcb; local 2835 tBTA_HL_MDL_CB *p_dcb; local [all...] |
bta_hl_main.c | 965 tBTA_HL_MDL_CB *p_dcb; local 1118 tBTA_HL_MDL_CB *p_dcb; local 1187 tBTA_HL_MDL_CB *p_dcb; local 1327 tBTA_HL_MDL_CB *p_dcb; local 1807 tBTA_HL_MDL_CB *p_dcb; local 1870 tBTA_HL_MDL_CB *p_dcb; local [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_hl.c | 505 static void btif_hl_clean_mdl_cb(btif_hl_mdl_cb_t *p_dcb) 508 btif_hl_free_buf((void **) &p_dcb->p_rx_pkt); 509 btif_hl_free_buf((void **) &p_dcb->p_tx_pkt); 510 memset(p_dcb, 0 , sizeof(btif_hl_mdl_cb_t)); 1038 btif_hl_mdl_cb_t *p_dcb; local 1120 btif_hl_mdl_cb_t *p_dcb; local 1948 btif_hl_mdl_cb_t *p_dcb; local 2280 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR( app_idx, mcl_idx, mdl_idx); local 2821 btif_hl_mdl_cb_t *p_dcb; local 2901 btif_hl_mdl_cb_t *p_dcb; local 2978 btif_hl_mdl_cb_t *p_dcb; local 3056 btif_hl_mdl_cb_t *p_dcb; local 3129 btif_hl_mdl_cb_t *p_dcb; local 3160 btif_hl_mdl_cb_t *p_dcb; local 3260 btif_hl_mdl_cb_t *p_dcb; local 3285 btif_hl_mdl_cb_t *p_dcb; local 4130 btif_hl_mdl_cb_t *p_dcb; local 4667 btif_hl_mdl_cb_t *p_dcb; local 4695 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 4719 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 4765 btif_hl_mdl_cb_t *p_dcb = NULL; local 4822 btif_hl_mdl_cb_t *p_dcb = NULL ; local 4926 btif_hl_mdl_cb_t *p_dcb = NULL; local [all...] |
/external/bluetooth/bluedroid/btif/co/ |
bta_hl_co.c | 326 btif_hl_mdl_cb_t *p_dcb; local 334 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); 336 if (p_dcb->tx_size <= buf_size ) 338 memcpy(p_buf, p_dcb->p_tx_pkt, p_dcb->tx_size); 339 btif_hl_free_buf((void **) &p_dcb->p_tx_pkt); 340 p_dcb->tx_size = 0; 371 btif_hl_mdl_cb_t *p_dcb; local 379 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); 381 if ((p_dcb->p_rx_pkt = (UINT8 *)btif_hl_get_buf(data_size)) != NULL [all...] |