Lines Matching full:p_tbl
75 tMCA_TC_TBL *p_tbl = (tMCA_TC_TBL *)p_ref_data;
85 MCA_TRACE_DEBUG ("lcid:x%x id:x%x", p_tbl->lcid, p_tbl->id);
94 L2CA_ErtmConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK, &ertm_info);
97 p_tbl->state = MCA_TC_ST_CFG;
100 mca_set_cfg_by_tbl (&cfg, p_tbl);
101 L2CA_ConfigReq(p_tbl->lcid, &cfg);
105 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK, L2CAP_CONN_OK);
106 mca_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK);
122 tMCA_TC_TBL *p_tbl = (tMCA_TC_TBL *)p_ref_data;
132 p_tbl->state = MCA_TC_ST_CFG;
135 mca_set_cfg_by_tbl (&cfg, p_tbl);
136 L2CA_ConfigReq(p_tbl->lcid, &cfg);
140 L2CA_DisconnectReq (p_tbl->lcid);
141 mca_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK);
157 tMCA_TC_TBL *p_tbl = NULL;
173 p_tbl = mca_tc_tbl_calloc(p_ccb);
174 p_tbl->id = id;
175 p_tbl->cfg_flags= MCA_L2C_CFG_CONN_ACP;
179 &mca_sec_check_complete_term, p_tbl);
200 if (!p_tbl || (p_tbl->state != MCA_TC_ST_CFG))
210 p_tbl->state = MCA_TC_ST_CFG;
213 mca_set_cfg_by_tbl (&cfg, p_tbl);
214 L2CA_ConfigReq(p_tbl->lcid, &cfg);
234 tMCA_TC_TBL *p_tbl = NULL;
249 p_tbl = mca_tc_tbl_dalloc(p_dcb);
250 p_tbl->id = id;
251 p_tbl->cfg_flags= MCA_L2C_CFG_CONN_ACP;
278 p_tbl->state = MCA_TC_ST_CFG;
281 mca_set_cfg_by_tbl (&cfg, p_tbl);
298 tMCA_TC_TBL *p_tbl;
305 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
307 MCA_TRACE_DEBUG("p_tbl state: %d, tcid: %d", p_tbl->state, p_tbl->tcid);
309 if (p_tbl->state == MCA_TC_ST_CONN)
314 if (p_tbl->tcid != 0)
317 p_tbl->state = MCA_TC_ST_CFG;
320 mca_set_cfg_by_tbl (&cfg, p_tbl);
325 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx);
333 p_tbl->state = MCA_TC_ST_SEC_INT;
334 p_tbl->lcid = lcid;
335 p_tbl->cfg_flags= MCA_L2C_CFG_CONN_INT;
340 p_tbl->tcid,
341 &mca_sec_check_complete_orig, p_tbl);
349 p_tbl->cfg_flags |= MCA_L2C_CFG_DISCN_INT;
350 mca_tc_close_ind(p_tbl, result);
368 tMCA_TC_TBL *p_tbl;
371 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
374 if (p_tbl->state == MCA_TC_ST_CFG)
380 p_tbl->cfg_flags |= MCA_L2C_CFG_CFM_DONE;
383 if (p_tbl->cfg_flags & MCA_L2C_CFG_IND_DONE)
385 mca_tc_open_ind(p_tbl);
410 tMCA_TC_TBL *p_tbl;
414 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
419 p_tbl->peer_mtu = p_cfg->mtu;
420 if (p_tbl->peer_mtu < MCA_MIN_MTU)
427 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;
429 MCA_TRACE_DEBUG("peer_mtu: %d, lcid: x%x mtu_present:%d",p_tbl->peer_mtu, lcid, p_cfg->mtu_present);
437 if ((p_tbl->cfg_flags & MCA_L2C_CFG_IND_DONE) == 0)
440 p_tbl->cfg_flags |= MCA_L2C_CFG_IND_DONE;
443 if (p_tbl->cfg_flags & MCA_L2C_CFG_CFM_DONE)
445 mca_tc_open_ind(p_tbl);
463 tMCA_TC_TBL *p_tbl;
469 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
477 p_tbl->cfg_flags = MCA_L2C_CFG_DISCN_ACP;
480 mca_tc_close_ind(p_tbl, reason);
496 tMCA_TC_TBL *p_tbl;
501 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
503 p_tbl->cfg_flags = MCA_L2C_CFG_DISCN_INT;
504 mca_tc_close_ind(p_tbl, result);
521 tMCA_TC_TBL *p_tbl;
524 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
526 mca_tc_cong_ind(p_tbl, is_congested);
542 tMCA_TC_TBL *p_tbl;
545 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
547 mca_tc_data_ind(p_tbl, p_buf);