Lines Matching refs:p_tbl
76 tAVDT_TC_TBL *p_tbl; in avdt_sec_check_complete_term() local
87 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP); in avdt_sec_check_complete_term()
88 if (p_tbl == NULL) in avdt_sec_check_complete_term()
94 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK); in avdt_sec_check_complete_term()
97 avdt_cb.ad.lcid_tbl[p_tbl->lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_sec_check_complete_term()
98 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid; in avdt_sec_check_complete_term()
101 p_tbl->state = AVDT_AD_ST_CFG; in avdt_sec_check_complete_term()
106 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_term()
108 cfg.flush_to = p_tbl->my_flush_to; in avdt_sec_check_complete_term()
109 L2CA_ConfigReq(p_tbl->lcid, &cfg); in avdt_sec_check_complete_term()
113 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK, L2CAP_CONN_OK); in avdt_sec_check_complete_term()
114 avdt_ad_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK); in avdt_sec_check_complete_term()
132 tAVDT_TC_TBL *p_tbl; in avdt_sec_check_complete_orig() local
137 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_INT); in avdt_sec_check_complete_orig()
138 if(p_tbl == NULL) in avdt_sec_check_complete_orig()
144 p_tbl->state = AVDT_AD_ST_CFG; in avdt_sec_check_complete_orig()
149 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_orig()
151 cfg.flush_to = p_tbl->my_flush_to; in avdt_sec_check_complete_orig()
152 L2CA_ConfigReq(p_tbl->lcid, &cfg); in avdt_sec_check_complete_orig()
156 L2CA_DisconnectReq (p_tbl->lcid); in avdt_sec_check_complete_orig()
157 avdt_ad_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK); in avdt_sec_check_complete_orig()
173 tAVDT_TC_TBL *p_tbl = NULL; in avdt_l2c_connect_ind_cback() local
190 p_tbl = avdt_ad_tc_tbl_alloc(p_ccb); in avdt_l2c_connect_ind_cback()
191 p_tbl->my_mtu = avdt_cb.rcb.ctrl_mtu; in avdt_l2c_connect_ind_cback()
192 p_tbl->my_flush_to = L2CAP_DEFAULT_FLUSH_TO; in avdt_l2c_connect_ind_cback()
193 p_tbl->tcid = AVDT_CHAN_SIG; in avdt_l2c_connect_ind_cback()
194 p_tbl->lcid = lcid; in avdt_l2c_connect_ind_cback()
195 p_tbl->id = id; in avdt_l2c_connect_ind_cback()
196 p_tbl->state = AVDT_AD_ST_SEC_ACP; in avdt_l2c_connect_ind_cback()
197 p_tbl->cfg_flags = AVDT_L2C_CFG_CONN_ACP; in avdt_l2c_connect_ind_cback()
206 … L2CA_ConnectRsp (p_ccb->peer_addr, p_tbl->id, lcid, L2CAP_CONN_PENDING, L2CAP_CONN_OK); in avdt_l2c_connect_ind_cback()
212 else if ((p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_CONN)) != NULL) in avdt_l2c_connect_ind_cback()
220 else if ((p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_MEDIA, p_ccb, AVDT_AD_ST_ACP)) != NULL) in avdt_l2c_connect_ind_cback()
229 else if ((p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_REPORT, p_ccb, AVDT_AD_ST_ACP)) != NULL) in avdt_l2c_connect_ind_cback()
248 avdt_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_l2c_connect_ind_cback()
249 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = lcid; in avdt_l2c_connect_ind_cback()
252 p_tbl->state = AVDT_AD_ST_CFG; in avdt_l2c_connect_ind_cback()
257 cfg.mtu = p_tbl->my_mtu; in avdt_l2c_connect_ind_cback()
259 cfg.flush_to = p_tbl->my_flush_to; in avdt_l2c_connect_ind_cback()
276 tAVDT_TC_TBL *p_tbl; in avdt_l2c_connect_cfm_cback() local
283 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_connect_cfm_cback()
286 if (p_tbl->state == AVDT_AD_ST_CONN) in avdt_l2c_connect_cfm_cback()
291 if(p_tbl->tcid != AVDT_CHAN_SIG) in avdt_l2c_connect_cfm_cback()
294 p_tbl->state = AVDT_AD_ST_CFG; in avdt_l2c_connect_cfm_cback()
299 cfg.mtu = p_tbl->my_mtu; in avdt_l2c_connect_cfm_cback()
301 cfg.flush_to = p_tbl->my_flush_to; in avdt_l2c_connect_cfm_cback()
306 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_l2c_connect_cfm_cback()
314 p_tbl->state = AVDT_AD_ST_SEC_INT; in avdt_l2c_connect_cfm_cback()
315 p_tbl->lcid = lcid; in avdt_l2c_connect_cfm_cback()
316 p_tbl->cfg_flags = AVDT_L2C_CFG_CONN_INT; in avdt_l2c_connect_cfm_cback()
330 avdt_ad_tc_close_ind(p_tbl, result); in avdt_l2c_connect_cfm_cback()
348 tAVDT_TC_TBL *p_tbl; in avdt_l2c_config_cfm_cback() local
351 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_config_cfm_cback()
354 if (p_tbl->state == AVDT_AD_ST_CFG) in avdt_l2c_config_cfm_cback()
360 p_tbl->cfg_flags |= AVDT_L2C_CFG_CFM_DONE; in avdt_l2c_config_cfm_cback()
363 if (p_tbl->cfg_flags & AVDT_L2C_CFG_IND_DONE) in avdt_l2c_config_cfm_cback()
365 avdt_ad_tc_open_ind(p_tbl); in avdt_l2c_config_cfm_cback()
390 tAVDT_TC_TBL *p_tbl; in avdt_l2c_config_ind_cback() local
393 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_config_ind_cback()
398 p_tbl->peer_mtu = p_cfg->mtu; in avdt_l2c_config_ind_cback()
402 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_l2c_config_ind_cback()
404 AVDT_TRACE_DEBUG2("peer_mtu: %d, lcid: x%x",p_tbl->peer_mtu, lcid); in avdt_l2c_config_ind_cback()
412 if ((p_tbl->cfg_flags & AVDT_L2C_CFG_IND_DONE) == 0) in avdt_l2c_config_ind_cback()
415 p_tbl->cfg_flags |= AVDT_L2C_CFG_IND_DONE; in avdt_l2c_config_ind_cback()
418 if (p_tbl->cfg_flags & AVDT_L2C_CFG_CFM_DONE) in avdt_l2c_config_ind_cback()
420 avdt_ad_tc_open_ind(p_tbl); in avdt_l2c_config_ind_cback()
438 tAVDT_TC_TBL *p_tbl; in avdt_l2c_disconnect_ind_cback() local
443 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_disconnect_ind_cback()
451 avdt_ad_tc_close_ind(p_tbl, 0); in avdt_l2c_disconnect_ind_cback()
467 tAVDT_TC_TBL *p_tbl; in avdt_l2c_disconnect_cfm_cback() local
472 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_disconnect_cfm_cback()
474 avdt_ad_tc_close_ind(p_tbl, result); in avdt_l2c_disconnect_cfm_cback()
490 tAVDT_TC_TBL *p_tbl; in avdt_l2c_congestion_ind_cback() local
493 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_congestion_ind_cback()
495 avdt_ad_tc_cong_ind(p_tbl, is_congested); in avdt_l2c_congestion_ind_cback()
511 tAVDT_TC_TBL *p_tbl; in avdt_l2c_data_ind_cback() local
514 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_data_ind_cback()
516 avdt_ad_tc_data_ind(p_tbl, p_buf); in avdt_l2c_data_ind_cback()