Home | History | Annotate | Download | only in avdt

Lines Matching refs:p_tbl

76     tAVDT_TC_TBL    *p_tbl;
87 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP);
88 if (p_tbl == NULL)
94 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK);
97 avdt_cb.ad.lcid_tbl[p_tbl->lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl);
98 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid;
101 p_tbl->state = AVDT_AD_ST_CFG;
106 cfg.mtu = p_tbl->my_mtu;
108 cfg.flush_to = p_tbl->my_flush_to;
109 L2CA_ConfigReq(p_tbl->lcid, &cfg);
113 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK, L2CAP_CONN_OK);
114 avdt_ad_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK);
132 tAVDT_TC_TBL *p_tbl;
137 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_INT);
138 if(p_tbl == NULL)
144 p_tbl->state = AVDT_AD_ST_CFG;
149 cfg.mtu = p_tbl->my_mtu;
151 cfg.flush_to = p_tbl->my_flush_to;
152 L2CA_ConfigReq(p_tbl->lcid, &cfg);
156 L2CA_DisconnectReq (p_tbl->lcid);
157 avdt_ad_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK);
173 tAVDT_TC_TBL *p_tbl = NULL;
190 p_tbl = avdt_ad_tc_tbl_alloc(p_ccb);
191 p_tbl->my_mtu = avdt_cb.rcb.ctrl_mtu;
192 p_tbl->my_flush_to = L2CAP_DEFAULT_FLUSH_TO;
193 p_tbl->tcid = AVDT_CHAN_SIG;
194 p_tbl->lcid = lcid;
195 p_tbl->id = id;
196 p_tbl->state = AVDT_AD_ST_SEC_ACP;
197 p_tbl->cfg_flags = AVDT_L2C_CFG_CONN_ACP;
206 L2CA_ConnectRsp (p_ccb->peer_addr, p_tbl->id, lcid, L2CAP_CONN_PENDING, L2CAP_CONN_OK);
212 else if ((p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_CONN)) != NULL)
220 else if ((p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_MEDIA, p_ccb, AVDT_AD_ST_ACP)) != NULL)
229 else if ((p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_REPORT, p_ccb, AVDT_AD_ST_ACP)) != NULL)
248 avdt_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl);
249 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = lcid;
252 p_tbl->state = AVDT_AD_ST_CFG;
257 cfg.mtu = p_tbl->my_mtu;
259 cfg.flush_to = p_tbl->my_flush_to;
276 tAVDT_TC_TBL *p_tbl;
283 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
286 if (p_tbl->state == AVDT_AD_ST_CONN)
291 if(p_tbl->tcid != AVDT_CHAN_SIG)
294 p_tbl->state = AVDT_AD_ST_CFG;
299 cfg.mtu = p_tbl->my_mtu;
301 cfg.flush_to = p_tbl->my_flush_to;
306 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx);
314 p_tbl->state = AVDT_AD_ST_SEC_INT;
315 p_tbl->lcid = lcid;
316 p_tbl->cfg_flags = AVDT_L2C_CFG_CONN_INT;
330 avdt_ad_tc_close_ind(p_tbl, result);
348 tAVDT_TC_TBL *p_tbl;
351 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
354 if (p_tbl->state == AVDT_AD_ST_CFG)
360 p_tbl->cfg_flags |= AVDT_L2C_CFG_CFM_DONE;
363 if (p_tbl->cfg_flags & AVDT_L2C_CFG_IND_DONE)
365 avdt_ad_tc_open_ind(p_tbl);
390 tAVDT_TC_TBL *p_tbl;
393 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
398 p_tbl->peer_mtu = p_cfg->mtu;
402 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;
404 AVDT_TRACE_DEBUG2("peer_mtu: %d, lcid: x%x",p_tbl->peer_mtu, lcid);
412 if ((p_tbl->cfg_flags & AVDT_L2C_CFG_IND_DONE) == 0)
415 p_tbl->cfg_flags |= AVDT_L2C_CFG_IND_DONE;
418 if (p_tbl->cfg_flags & AVDT_L2C_CFG_CFM_DONE)
420 avdt_ad_tc_open_ind(p_tbl);
438 tAVDT_TC_TBL *p_tbl;
443 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
451 avdt_ad_tc_close_ind(p_tbl, 0);
467 tAVDT_TC_TBL *p_tbl;
472 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
474 avdt_ad_tc_close_ind(p_tbl, result);
490 tAVDT_TC_TBL *p_tbl;
493 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
495 avdt_ad_tc_cong_ind(p_tbl, is_congested);
511 tAVDT_TC_TBL *p_tbl;
514 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL)
516 avdt_ad_tc_data_ind(p_tbl, p_buf);