Lines Matching full:p_tbl
78 tAVDT_TC_TBL *p_tbl;
90 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP);
91 if (p_tbl == NULL)
97 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK);
100 avdt_cb.ad.lcid_tbl[p_tbl->lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl);
101 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid;
104 p_tbl->state = AVDT_AD_ST_CFG;
109 cfg.mtu = p_tbl->my_mtu;
111 cfg.flush_to = p_tbl->my_flush_to;
112 L2CA_ConfigReq(p_tbl->lcid, &cfg);
116 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK, L2CAP_CONN_OK);
117 avdt_ad_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK);
136 tAVDT_TC_TBL *p_tbl;
142 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_INT);
143 if(p_tbl == NULL)
149 p_tbl->state = AVDT_AD_ST_CFG;
154 cfg.mtu = p_tbl->my_mtu;
156 cfg.flush_to = p_tbl->my_flush_to;
157 L2CA_ConfigReq(p_tbl->lcid, &cfg);
161 L2CA_DisconnectReq (p_tbl->lcid);
162 avdt_ad_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK);
178 tAVDT_TC_TBL *p_tbl = NULL;
196 p_tbl = avdt_ad_tc_tbl_alloc(p_ccb);
197 p_tbl->my_mtu = avdt_cb.rcb.ctrl_mtu;
198 p_tbl->my_flush_to = L2CAP_DEFAULT_FLUSH_TO;
199 p_tbl->tcid = AVDT_CHAN_SIG;
200 p_tbl->lcid = lcid;
201 p_tbl->id = id;
202 p_tbl->state = AVDT_AD_ST_SEC_ACP;
203 p_tbl->cfg_flags = AVDT_L2C_CFG_CONN_ACP;
212 L2CA_ConnectRsp (p_ccb->peer_addr, p_tbl->id, lcid, L2CAP_CONN_PENDING, L2CAP_CONN_OK);
218 else if ((p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_CONN)) != NULL)
226 else if ((p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_MEDIA, p_ccb, AVDT_AD_ST_ACP)) != NULL)
235 else if ((p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_REPORT, p_ccb, AVDT_AD_ST_ACP)) != NULL)
254 avdt_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl);
255 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = lcid;
258 p_tbl->state = AVDT_AD_ST_CFG;
263 cfg.mtu = p_tbl->my_mtu;
265 cfg.flush_to = p_tbl->my_flush_to;
282 tAVDT_TC_TBL *p_tbl;
289 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
292 if (p_tbl->state == AVDT_AD_ST_CONN)
297 if(p_tbl->tcid != AVDT_CHAN_SIG)
300 p_tbl->state = AVDT_AD_ST_CFG;
305 cfg.mtu = p_tbl->my_mtu;
307 cfg.flush_to = p_tbl->my_flush_to;
312 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx);
320 p_tbl->state = AVDT_AD_ST_SEC_INT;
321 p_tbl->lcid = lcid;
322 p_tbl->cfg_flags = AVDT_L2C_CFG_CONN_INT;
336 avdt_ad_tc_close_ind(p_tbl, result);
354 tAVDT_TC_TBL *p_tbl;
357 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
360 if (p_tbl->state == AVDT_AD_ST_CFG)
366 p_tbl->cfg_flags |= AVDT_L2C_CFG_CFM_DONE;
369 if (p_tbl->cfg_flags & AVDT_L2C_CFG_IND_DONE)
371 avdt_ad_tc_open_ind(p_tbl);
396 tAVDT_TC_TBL *p_tbl;
399 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
404 p_tbl->peer_mtu = p_cfg->mtu;
408 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;
410 AVDT_TRACE_DEBUG("peer_mtu: %d, lcid: x%x",p_tbl->peer_mtu, lcid);
418 if ((p_tbl->cfg_flags & AVDT_L2C_CFG_IND_DONE) == 0)
421 p_tbl->cfg_flags |= AVDT_L2C_CFG_IND_DONE;
424 if (p_tbl->cfg_flags & AVDT_L2C_CFG_CFM_DONE)
426 avdt_ad_tc_open_ind(p_tbl);
444 tAVDT_TC_TBL *p_tbl;
449 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
457 avdt_ad_tc_close_ind(p_tbl, 0);
473 tAVDT_TC_TBL *p_tbl;
478 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
480 avdt_ad_tc_close_ind(p_tbl, result);
496 tAVDT_TC_TBL *p_tbl;
499 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
501 avdt_ad_tc_cong_ind(p_tbl, is_congested);
517 tAVDT_TC_TBL *p_tbl;
520 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
522 avdt_ad_tc_data_ind(p_tbl, p_buf);