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