Lines Matching defs:p_tbl
74 tMCA_TC_TBL *p_tbl = (tMCA_TC_TBL *)p_ref_data;
82 MCA_TRACE_DEBUG2 ("lcid:x%x id:x%x", p_tbl->lcid, p_tbl->id);
91 L2CA_ErtmConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK, &ertm_info);
94 p_tbl->state = MCA_TC_ST_CFG;
97 mca_set_cfg_by_tbl (&cfg, p_tbl);
98 L2CA_ConfigReq(p_tbl->lcid, &cfg);
102 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK, L2CAP_CONN_OK);
103 mca_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK);
119 tMCA_TC_TBL *p_tbl = (tMCA_TC_TBL *)p_ref_data;
127 p_tbl->state = MCA_TC_ST_CFG;
130 mca_set_cfg_by_tbl (&cfg, p_tbl);
131 L2CA_ConfigReq(p_tbl->lcid, &cfg);
135 L2CA_DisconnectReq (p_tbl->lcid);
136 mca_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK);
152 tMCA_TC_TBL *p_tbl = NULL;
168 p_tbl = mca_tc_tbl_calloc(p_ccb);
169 p_tbl->id = id;
170 p_tbl->cfg_flags= MCA_L2C_CFG_CONN_ACP;
174 &mca_sec_check_complete_term, p_tbl);
195 if (!p_tbl || (p_tbl->state != MCA_TC_ST_CFG))
205 p_tbl->state = MCA_TC_ST_CFG;
208 mca_set_cfg_by_tbl (&cfg, p_tbl);
209 L2CA_ConfigReq(p_tbl->lcid, &cfg);
229 tMCA_TC_TBL *p_tbl = NULL;
244 p_tbl = mca_tc_tbl_dalloc(p_dcb);
245 p_tbl->id = id;
246 p_tbl->cfg_flags= MCA_L2C_CFG_CONN_ACP;
273 p_tbl->state = MCA_TC_ST_CFG;
276 mca_set_cfg_by_tbl (&cfg, p_tbl);
293 tMCA_TC_TBL *p_tbl;
300 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
302 MCA_TRACE_DEBUG2("p_tbl state: %d, tcid: %d", p_tbl->state, p_tbl->tcid);
304 if (p_tbl->state == MCA_TC_ST_CONN)
309 if (p_tbl->tcid != 0)
312 p_tbl->state = MCA_TC_ST_CFG;
315 mca_set_cfg_by_tbl (&cfg, p_tbl);
320 p_ccb = mca_ccb_by_hdl((tMCA_CL)p_tbl->cb_idx);
328 p_tbl->state = MCA_TC_ST_SEC_INT;
329 p_tbl->lcid = lcid;
330 p_tbl->cfg_flags= MCA_L2C_CFG_CONN_INT;
335 p_tbl->tcid,
336 &mca_sec_check_complete_orig, p_tbl);
344 p_tbl->cfg_flags |= MCA_L2C_CFG_DISCN_INT;
345 mca_tc_close_ind(p_tbl, result);
363 tMCA_TC_TBL *p_tbl;
366 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
369 if (p_tbl->state == MCA_TC_ST_CFG)
375 p_tbl->cfg_flags |= MCA_L2C_CFG_CFM_DONE;
378 if (p_tbl->cfg_flags & MCA_L2C_CFG_IND_DONE)
380 mca_tc_open_ind(p_tbl);
405 tMCA_TC_TBL *p_tbl;
409 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
414 p_tbl->peer_mtu = p_cfg->mtu;
415 if (p_tbl->peer_mtu < MCA_MIN_MTU)
422 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU;
424 MCA_TRACE_DEBUG3("peer_mtu: %d, lcid: x%x mtu_present:%d",p_tbl->peer_mtu, lcid, p_cfg->mtu_present);
432 if ((p_tbl->cfg_flags & MCA_L2C_CFG_IND_DONE) == 0)
435 p_tbl->cfg_flags |= MCA_L2C_CFG_IND_DONE;
438 if (p_tbl->cfg_flags & MCA_L2C_CFG_CFM_DONE)
440 mca_tc_open_ind(p_tbl);
458 tMCA_TC_TBL *p_tbl;
464 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
472 p_tbl->cfg_flags = MCA_L2C_CFG_DISCN_ACP;
475 mca_tc_close_ind(p_tbl, reason);
491 tMCA_TC_TBL *p_tbl;
496 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
498 p_tbl->cfg_flags = MCA_L2C_CFG_DISCN_INT;
499 mca_tc_close_ind(p_tbl, result);
516 tMCA_TC_TBL *p_tbl;
519 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
521 mca_tc_cong_ind(p_tbl, is_congested);
537 tMCA_TC_TBL *p_tbl;
540 if ((p_tbl = mca_tc_tbl_by_lcid(lcid)) != NULL)
542 mca_tc_data_ind(p_tbl, p_buf);