Lines Matching refs:p_tbl

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()
149 MCA_TRACE_DEBUG("%s() - cb_idx: %d", __func__, p_tbl->cb_idx); in mca_tc_tbl_calloc()
150 return p_tbl; in mca_tc_tbl_calloc()
165 tMCA_TC_TBL *p_tbl = mca_cb.tc.tc_tbl; in mca_tc_tbl_dalloc() local
169 for (i = 0; i < MCA_NUM_TC_TBL; i++, p_tbl++) in mca_tc_tbl_dalloc()
171 if (p_tbl->state == MCA_TC_ST_UNUSED) in mca_tc_tbl_dalloc()
181 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in mca_tc_tbl_dalloc()
182 p_tbl->cfg_flags= 0; in mca_tc_tbl_dalloc()
183 p_tbl->cb_idx = mca_dcb_to_hdl(p_dcb); in mca_tc_tbl_dalloc()
184 p_tbl->tcid = p_dcb->p_cs->type + 1; in mca_tc_tbl_dalloc()
185 p_tbl->my_mtu = p_dcb->p_chnl_cfg->data_mtu; in mca_tc_tbl_dalloc()
186 p_tbl->state = MCA_TC_ST_IDLE; in mca_tc_tbl_dalloc()
187 p_tbl->lcid = p_dcb->lcid; in mca_tc_tbl_dalloc()
190 MCA_TRACE_DEBUG("%s() - tcid: %d, cb_idx: %d", __func__, p_tbl->tcid, p_tbl->cb_idx); in mca_tc_tbl_dalloc()
191 return p_tbl; in mca_tc_tbl_dalloc()
255 void mca_set_cfg_by_tbl(tL2CAP_CFG_INFO *p_cfg, tMCA_TC_TBL *p_tbl) in mca_set_cfg_by_tbl() argument
261 if (p_tbl->tcid == MCA_CTRL_TCID) in mca_set_cfg_by_tbl()
267 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx); in mca_set_cfg_by_tbl()
276 p_cfg->mtu = p_tbl->my_mtu; in mca_set_cfg_by_tbl()
299 void mca_tc_close_ind(tMCA_TC_TBL *p_tbl, UINT16 reason) in mca_tc_close_ind() argument
307 close.lcid = p_tbl->lcid; in mca_tc_close_ind()
310 p_tbl->tcid, p_tbl->cb_idx, p_tbl->state); in mca_tc_close_ind()
313 if (p_tbl->state == MCA_TC_ST_UNUSED) in mca_tc_close_ind()
317 if (p_tbl->cfg_flags&MCA_L2C_CFG_DISCN_INT) in mca_tc_close_ind()
319 p_tbl->cfg_flags = 0; in mca_tc_close_ind()
320 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in mca_tc_close_ind()
323 if (p_tbl->tcid == MCA_CTRL_TCID) in mca_tc_close_ind()
325 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx); in mca_tc_close_ind()
332 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx); in mca_tc_close_ind()
338 p_tbl->state = MCA_TC_ST_UNUSED; in mca_tc_close_ind()
352 void mca_tc_open_ind(tMCA_TC_TBL *p_tbl) in mca_tc_open_ind() argument
358 MCA_TRACE_DEBUG("mca_tc_open_ind tcid: %d, cb_idx: %d", p_tbl->tcid, p_tbl->cb_idx); in mca_tc_open_ind()
359 p_tbl->state = MCA_TC_ST_OPEN; in mca_tc_open_ind()
361 open.peer_mtu = p_tbl->peer_mtu; in mca_tc_open_ind()
362 open.lcid = p_tbl->lcid; in mca_tc_open_ind()
366 if (p_tbl->cfg_flags & MCA_L2C_CFG_CONN_ACP) in mca_tc_open_ind()
372 if (p_tbl->tcid == MCA_CTRL_TCID) in mca_tc_open_ind()
374 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx); in mca_tc_open_ind()
382 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx); in mca_tc_open_ind()
407 void mca_tc_cong_ind(tMCA_TC_TBL *p_tbl, BOOLEAN is_congested) in mca_tc_cong_ind() argument
412 MCA_TRACE_DEBUG("%s() - tcid: %d, cb_idx: %d", __func__, p_tbl->tcid, p_tbl->cb_idx); in mca_tc_cong_ind()
415 if (p_tbl->tcid == MCA_CTRL_TCID) in mca_tc_cong_ind()
417 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx); in mca_tc_cong_ind()
424 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx); in mca_tc_cong_ind()
444 void mca_tc_data_ind(tMCA_TC_TBL *p_tbl, BT_HDR *p_buf) in mca_tc_data_ind() argument
452 MCA_TRACE_DEBUG("%s() - tcid: %d, cb_idx: %d", __func__, p_tbl->tcid, p_tbl->cb_idx); in mca_tc_data_ind()
455 if (p_tbl->tcid == MCA_CTRL_TCID) in mca_tc_data_ind()
457 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx); in mca_tc_data_ind()
498 p_dcb = mca_dcb_by_hdl(p_tbl->cb_idx); in mca_tc_data_ind()