/system/bt/btif/co/ |
bta_hl_co.c | 325 btif_hl_mdl_cb_t *p_dcb; local 333 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); 335 if (p_dcb->tx_size <= buf_size ) 337 memcpy(p_buf, p_dcb->p_tx_pkt, p_dcb->tx_size); 338 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); 339 p_dcb->tx_size = 0; 370 btif_hl_mdl_cb_t *p_dcb; local 377 p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); 379 p_dcb->p_rx_pkt = (UINT8 *)osi_malloc(data_size) [all...] |
/system/bt/stack/mcap/ |
mca_l2c.c | 233 tMCA_DCB *p_dcb; local 244 (p_ccb->p_tx_req && (p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) != NULL)) 248 p_dcb->lcid = lcid; 249 p_tbl = mca_tc_tbl_dalloc(p_dcb); 252 p_chnl_cfg = p_dcb->p_chnl_cfg;
|
mca_api.c | 289 tMCA_DCB *p_dcb; local 303 p_dcb = &mca_cb.dcb[i*max]; 305 for (i=0; i<max; i++, p_dcb++) 307 if (p_dcb->state && p_dcb->p_cs == p_depcs) 309 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); 427 tMCA_DCB *p_dcb; local 450 p_dcb = mca_dcb_alloc(p_ccb, dep); 452 if (p_dcb) 455 p_dcb->p_chnl_cfg = p_chnl_cfg 503 tMCA_DCB *p_dcb; local 567 tMCA_DCB *p_dcb = mca_dcb_by_hdl(mdl); local 599 tMCA_DCB *p_dcb; local 665 tMCA_DCB *p_dcb; local 729 tMCA_DCB *p_dcb; local 776 tMCA_DCB *p_dcb; local 867 tMCA_DCB *p_dcb = mca_dcb_by_hdl(mdl); local 899 tMCA_DCB *p_dcb = mca_dcb_by_hdl(mdl); local [all...] |
mca_cact.c | 103 tMCA_DCB *p_dcb; local 109 p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx); 112 p_msg->mdl_id = p_dcb->mdl_id; 113 mca_dcb_event(p_dcb, MCA_DCB_API_CLOSE_EVT, NULL); 260 tMCA_DCB *p_dcb; local 286 if (p_ccb->p_tx_req && ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx))!= NULL)) 288 mca_dcb_dealloc(p_dcb, NULL); 313 ((p_dcb = mca_dcb_by_hdl(p_ccb->p_tx_req->dcb_idx)) != NULL)) 315 mca_dcb_dealloc(p_dcb, NULL); 458 tMCA_DCB *p_dcb; 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 if (p_dcb) 270 p_opt = &p_dcb->p_chnl_cfg->fcr_opt 302 tMCA_DCB *p_dcb; local 355 tMCA_DCB *p_dcb; local 410 tMCA_DCB *p_dcb; local 447 tMCA_DCB *p_dcb; local [all...] |
mca_csm.c | 368 tMCA_DCB *p_dcb; local 372 p_dcb = &mca_cb.dcb[i*MCA_NUM_MDLS]; 373 for (i=0; i<MCA_NUM_MDLS; i++, p_dcb++) 375 if (p_dcb->state != MCA_DCB_NULL_ST && p_dcb->mdl_id == mdl_id)
|
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_EVENT("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_EVENT("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...] |
/system/bt/bta/hl/ |
bta_hl_act.c | 88 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 98 p_dcb->cong = p_cong_chg->cong; 99 evt_data.dch_cong_ind.mdl_handle = p_dcb->mdl_handle; 122 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 490 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 2391 tBTA_HL_MDL_CB *p_dcb; local [all...] |
bta_hl_main.c | 964 tBTA_HL_MDL_CB *p_dcb; local 1118 tBTA_HL_MDL_CB *p_dcb; local 1187 tBTA_HL_MDL_CB *p_dcb; local 1328 tBTA_HL_MDL_CB *p_dcb; local 1793 tBTA_HL_MDL_CB *p_dcb; local 1856 tBTA_HL_MDL_CB *p_dcb; local [all...] |
bta_hl_utils.c | 246 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 251 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); 252 osi_free_and_reset((void **)&p_dcb->p_rx_pkt); 253 osi_free_and_reset((void **)&p_dcb->p_echo_tx_pkt); 254 osi_free_and_reset((void **)&p_dcb->p_echo_rx_pkt); 256 memset((void *)p_dcb, 0 , sizeof(tBTA_HL_MDL_CB)); 338 tBTA_HL_MDL_CB *p_dcb; local 346 p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); 347 if (p_dcb->local_mdep_id != BTA_HL_ECHO_TEST_MDEP_ID) 349 if (p_dcb->peer_mdep_role == BTA_HL_MDEP_ROLE_SINK 430 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 1174 tBTA_HL_MDL_CB *p_dcb; local 1266 tBTA_HL_MDL_CB *p_dcb; local 1836 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 2481 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 2551 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 2714 tBTA_HL_MDL_CB *p_dcb = BTA_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 2768 tBTA_HL_MDL_CB *p_dcb; local 2799 tBTA_HL_MDL_CB *p_dcb; local [all...] |
/system/bt/btif/src/ |
btif_hl.c | 426 static void btif_hl_clean_mdl_cb(btif_hl_mdl_cb_t *p_dcb) 429 osi_free_and_reset((void **)&p_dcb->p_rx_pkt); 430 osi_free_and_reset((void **)&p_dcb->p_tx_pkt); 431 memset(p_dcb, 0 , sizeof(btif_hl_mdl_cb_t)); 958 btif_hl_mdl_cb_t *p_dcb; local 1039 btif_hl_mdl_cb_t *p_dcb; local 1817 btif_hl_mdl_cb_t *p_dcb; local 2126 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR( app_idx, mcl_idx, mdl_idx); local 2657 btif_hl_mdl_cb_t *p_dcb; local 2731 btif_hl_mdl_cb_t *p_dcb; local 2804 btif_hl_mdl_cb_t *p_dcb; local 2879 btif_hl_mdl_cb_t *p_dcb; local 2951 btif_hl_mdl_cb_t *p_dcb; local 2982 btif_hl_mdl_cb_t *p_dcb; local 3078 btif_hl_mdl_cb_t *p_dcb; local 3105 btif_hl_mdl_cb_t *p_dcb; local 4414 btif_hl_mdl_cb_t *p_dcb; local 4442 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 4466 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(app_idx, mcl_idx, mdl_idx); local 4506 btif_hl_mdl_cb_t *p_dcb = NULL; local 4593 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(p_scb->app_idx, local 4649 btif_hl_mdl_cb_t *p_dcb = BTIF_HL_GET_MDL_CB_PTR(p_scb->app_idx, local [all...] |