/system/bt/stack/avdt/ |
D | avdt_ad.c | 111 tAVDT_TC_TBL *p_tbl = avdt_cb.ad.tc_tbl; in avdt_ad_init() local 115 for (i = 0; i < AVDT_NUM_TC_TBL; i++, p_tbl++) in avdt_ad_init() 117 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_ad_init() 138 tAVDT_TC_TBL *p_tbl = avdt_cb.ad.tc_tbl; in avdt_ad_tc_tbl_by_st() local 144 for (i = 0; i < AVDT_NUM_TC_TBL; i++, p_tbl++) in avdt_ad_tc_tbl_by_st() 147 if ((p_tbl->tcid == 0) && in avdt_ad_tc_tbl_by_st() 148 (p_tbl->state == state)) in avdt_ad_tc_tbl_by_st() 158 for (i = 0; i < AVDT_NUM_TC_TBL; i++, p_tbl++) in avdt_ad_tc_tbl_by_st() 163 if ((p_tbl->tcid == 0) && in avdt_ad_tc_tbl_by_st() 164 (p_tbl->ccb_idx == ccb_idx) && in avdt_ad_tc_tbl_by_st() [all …]
|
D | avdt_l2c.c | 78 tAVDT_TC_TBL *p_tbl; in avdt_sec_check_complete_term() local 90 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP); in avdt_sec_check_complete_term() 91 if (p_tbl == NULL) in avdt_sec_check_complete_term() 97 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK); in avdt_sec_check_complete_term() 100 avdt_cb.ad.lcid_tbl[p_tbl->lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_sec_check_complete_term() 101 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid; in avdt_sec_check_complete_term() 104 p_tbl->state = AVDT_AD_ST_CFG; in avdt_sec_check_complete_term() 109 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_term() 111 cfg.flush_to = p_tbl->my_flush_to; in avdt_sec_check_complete_term() 112 L2CA_ConfigReq(p_tbl->lcid, &cfg); in avdt_sec_check_complete_term() [all …]
|
D | avdt_int.h | 695 extern UINT8 avdt_ad_tc_tbl_to_idx(tAVDT_TC_TBL *p_tbl); 696 extern void avdt_ad_tc_close_ind(tAVDT_TC_TBL *p_tbl, UINT16 reason); 697 extern void avdt_ad_tc_open_ind(tAVDT_TC_TBL *p_tbl); 698 extern void avdt_ad_tc_cong_ind(tAVDT_TC_TBL *p_tbl, BOOLEAN is_congested); 699 extern void avdt_ad_tc_data_ind(tAVDT_TC_TBL *p_tbl, BT_HDR *p_buf);
|
D | avdt_msg.c | 1203 tAVDT_TC_TBL *p_tbl; in avdt_msg_send() local 1212 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_SIG, p_ccb, NULL); in avdt_msg_send() 1232 (p_ccb->p_curr_msg->len <= p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) in avdt_msg_send() 1240 (p_ccb->p_curr_msg->len > p_tbl->peer_mtu - AVDT_LEN_TYPE_SINGLE)) in avdt_msg_send() 1244 nosp = (p_ccb->p_curr_msg->len + AVDT_LEN_TYPE_START - p_tbl->peer_mtu) / in avdt_msg_send() 1245 (p_tbl->peer_mtu - 1) + 2; in avdt_msg_send() 1252 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send() 1258 (p_ccb->p_curr_msg->len > (p_tbl->peer_mtu - AVDT_LEN_TYPE_CONT))) in avdt_msg_send() 1268 p_buf->len = p_tbl->peer_mtu - hdr_len; in avdt_msg_send()
|
D | avdt_api.c | 1191 tAVDT_TC_TBL *p_tbl; in AVDT_SendReport() local 1209 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_REPORT, p_scb->p_ccb, p_scb); in AVDT_SendReport() 1210 if (p_tbl->state == AVDT_AD_ST_OPEN) { in AVDT_SendReport() 1211 BT_HDR *p_pkt = (BT_HDR *)osi_malloc(p_tbl->peer_mtu); in AVDT_SendReport()
|
D | avdt_scb_act.c | 2082 tAVDT_TC_TBL *p_tbl; in avdt_scb_queue_frags() local 2114 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_MEDIA, p_scb->p_ccb, p_scb); in avdt_scb_queue_frags() 2115 buf_size = p_tbl->peer_mtu + BT_HDR_SIZE; in avdt_scb_queue_frags() 2117 p_tbl->peer_mtu, buf_size, num_frag); in avdt_scb_queue_frags()
|
/system/bt/stack/mcap/ |
D | mca_l2c.c | 75 tMCA_TC_TBL *p_tbl = (tMCA_TC_TBL *)p_ref_data; in mca_sec_check_complete_term() local 85 MCA_TRACE_DEBUG ("lcid:x%x id:x%x", p_tbl->lcid, p_tbl->id); in mca_sec_check_complete_term() 94 … L2CA_ErtmConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK, &ertm_info); in mca_sec_check_complete_term() 97 p_tbl->state = MCA_TC_ST_CFG; in mca_sec_check_complete_term() 100 mca_set_cfg_by_tbl (&cfg, p_tbl); in mca_sec_check_complete_term() 101 L2CA_ConfigReq(p_tbl->lcid, &cfg); in mca_sec_check_complete_term() 105 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK, L2CAP_CONN_OK); in mca_sec_check_complete_term() 106 mca_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK); in mca_sec_check_complete_term() 122 tMCA_TC_TBL *p_tbl = (tMCA_TC_TBL *)p_ref_data; in mca_sec_check_complete_orig() local 132 p_tbl->state = MCA_TC_ST_CFG; in mca_sec_check_complete_orig() [all …]
|
D | mca_main.c | 124 tMCA_TC_TBL *p_tbl = mca_cb.tc.tc_tbl; in mca_tc_tbl_calloc() local 128 for (i = 0; i < MCA_NUM_TC_TBL; i++, p_tbl++) in mca_tc_tbl_calloc() 130 if (p_tbl->state == MCA_TC_ST_UNUSED) in mca_tc_tbl_calloc() 140 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in mca_tc_tbl_calloc() 141 p_tbl->cfg_flags= 0; in mca_tc_tbl_calloc() 142 p_tbl->cb_idx = mca_ccb_to_hdl(p_ccb); in mca_tc_tbl_calloc() 143 p_tbl->tcid = MCA_CTRL_TCID; in mca_tc_tbl_calloc() 144 p_tbl->my_mtu = MCA_CTRL_MTU; in mca_tc_tbl_calloc() 145 p_tbl->state = MCA_TC_ST_IDLE; in mca_tc_tbl_calloc() 146 p_tbl->lcid = p_ccb->lcid; in mca_tc_tbl_calloc() [all …]
|
D | mca_int.h | 311 extern void mca_set_cfg_by_tbl(tL2CAP_CFG_INFO *p_cfg, tMCA_TC_TBL *p_tbl); 312 extern void mca_tc_close_ind(tMCA_TC_TBL *p_tbl, UINT16 reason); 313 extern void mca_tc_open_ind(tMCA_TC_TBL *p_tbl); 314 extern void mca_tc_cong_ind(tMCA_TC_TBL *p_tbl, BOOLEAN is_congested); 315 extern void mca_tc_data_ind(tMCA_TC_TBL *p_tbl, BT_HDR *p_buf);
|
D | mca_api.c | 338 tMCA_TC_TBL *p_tbl; in MCA_ConnectReq() local 360 p_tbl = mca_tc_tbl_calloc(p_ccb); in MCA_ConnectReq() 361 if (p_tbl) in MCA_ConnectReq() 363 p_tbl->state = MCA_TC_ST_CONN; in MCA_ConnectReq() 730 tMCA_TC_TBL *p_tbl; in MCA_DataChnlCfg() local 750 p_tbl = mca_tc_tbl_dalloc(p_dcb); in MCA_DataChnlCfg() 751 if (p_tbl) in MCA_DataChnlCfg() 753 p_tbl->state = MCA_TC_ST_CONN; in MCA_DataChnlCfg()
|
D | mca_cact.c | 460 tMCA_TC_TBL *p_tbl; in mca_ccb_hdl_rsp() local 506 p_tbl = mca_tc_tbl_dalloc(p_dcb); in mca_ccb_hdl_rsp() 507 if (p_tbl) in mca_ccb_hdl_rsp() 509 p_tbl->state = MCA_TC_ST_CONN; in mca_ccb_hdl_rsp()
|