Lines Matching full:p_tbl
124 tMCA_TC_TBL *p_tbl = mca_cb.tc.tc_tbl;
128 for (i = 0; i < MCA_NUM_TC_TBL; i++, p_tbl++)
130 if (p_tbl->state == MCA_TC_ST_UNUSED)
140 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;
141 p_tbl->cfg_flags= 0;
142 p_tbl->cb_idx = mca_ccb_to_hdl(p_ccb);
143 p_tbl->tcid = MCA_CTRL_TCID;
144 p_tbl->my_mtu = MCA_CTRL_MTU;
145 p_tbl->state = MCA_TC_ST_IDLE;
146 p_tbl->lcid = p_ccb->lcid;
148 MCA_TRACE_DEBUG1("mca_tc_tbl_calloc cb_idx: %d", p_tbl->cb_idx);
150 return p_tbl;
165 tMCA_TC_TBL *p_tbl = mca_cb.tc.tc_tbl;
169 for (i = 0; i < MCA_NUM_TC_TBL; i++, p_tbl++)
171 if (p_tbl->state == MCA_TC_ST_UNUSED)
181 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;
182 p_tbl->cfg_flags= 0;
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;
186 p_tbl->state = MCA_TC_ST_IDLE;
187 p_tbl->lcid = p_dcb->lcid;
189 MCA_TRACE_DEBUG2("mca_tc_tbl_dalloc tcid: %d, cb_idx: %d", p_tbl->tcid, p_tbl->cb_idx);
191 return p_tbl;
255 void mca_set_cfg_by_tbl(tL2CAP_CFG_INFO *p_cfg, tMCA_TC_TBL *p_tbl)
261 if (p_tbl->tcid == MCA_CTRL_TCID)
267 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx);
273 p_cfg->mtu = p_tbl->my_mtu;
296 void mca_tc_close_ind(tMCA_TC_TBL *p_tbl, UINT16 reason)
304 close.lcid = p_tbl->lcid;
307 p_tbl->tcid, p_tbl->cb_idx, p_tbl->state);
310 if (p_tbl->state == MCA_TC_ST_UNUSED)
314 if (p_tbl->cfg_flags&MCA_L2C_CFG_DISCN_INT)
316 p_tbl->cfg_flags = 0;
317 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;
320 if (p_tbl->tcid == MCA_CTRL_TCID)
322 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx);
329 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx);
335 p_tbl->state = MCA_TC_ST_UNUSED;
349 void mca_tc_open_ind(tMCA_TC_TBL *p_tbl)
355 MCA_TRACE_DEBUG2("mca_tc_open_ind tcid: %d, cb_idx: %d", p_tbl->tcid, p_tbl->cb_idx);
356 p_tbl->state = MCA_TC_ST_OPEN;
358 open.peer_mtu = p_tbl->peer_mtu;
359 open.lcid = p_tbl->lcid;
363 if (p_tbl->cfg_flags & MCA_L2C_CFG_CONN_ACP)
369 if (p_tbl->tcid == MCA_CTRL_TCID)
371 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx);
379 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx);
404 void mca_tc_cong_ind(tMCA_TC_TBL *p_tbl, BOOLEAN is_congested)
409 MCA_TRACE_DEBUG2("mca_tc_cong_ind tcid: %d, cb_idx: %d", p_tbl->tcid, p_tbl->cb_idx);
411 if (p_tbl->tcid == MCA_CTRL_TCID)
413 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx);
420 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx);
440 void mca_tc_data_ind(tMCA_TC_TBL *p_tbl, BT_HDR *p_buf)
448 MCA_TRACE_DEBUG2("mca_tc_data_ind tcid: %d, cb_idx: %d", p_tbl->tcid, p_tbl->cb_idx);
452 if (p_tbl->tcid == MCA_CTRL_TCID)
454 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx);
493 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx);