Lines Matching refs:p_tbl

78     tAVDT_TC_TBL    *p_tbl;  in avdt_sec_check_complete_term()  local
90 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_ACP); in avdt_sec_check_complete_term()
91 if (p_tbl == NULL) in avdt_sec_check_complete_term()
97 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_OK, L2CAP_CONN_OK); in avdt_sec_check_complete_term()
100 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()
101 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = p_tbl->lcid; in avdt_sec_check_complete_term()
104 p_tbl->state = AVDT_AD_ST_CFG; in avdt_sec_check_complete_term()
109 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_term()
111 cfg.flush_to = p_tbl->my_flush_to; in avdt_sec_check_complete_term()
112 L2CA_ConfigReq(p_tbl->lcid, &cfg); in avdt_sec_check_complete_term()
116 L2CA_ConnectRsp (bd_addr, p_tbl->id, p_tbl->lcid, L2CAP_CONN_SECURITY_BLOCK, L2CAP_CONN_OK); in avdt_sec_check_complete_term()
117 avdt_ad_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK); in avdt_sec_check_complete_term()
136 tAVDT_TC_TBL *p_tbl; in avdt_sec_check_complete_orig() local
142 p_tbl = avdt_ad_tc_tbl_by_st(AVDT_CHAN_SIG, p_ccb, AVDT_AD_ST_SEC_INT); in avdt_sec_check_complete_orig()
143 if(p_tbl == NULL) in avdt_sec_check_complete_orig()
149 p_tbl->state = AVDT_AD_ST_CFG; in avdt_sec_check_complete_orig()
154 cfg.mtu = p_tbl->my_mtu; in avdt_sec_check_complete_orig()
156 cfg.flush_to = p_tbl->my_flush_to; in avdt_sec_check_complete_orig()
157 L2CA_ConfigReq(p_tbl->lcid, &cfg); in avdt_sec_check_complete_orig()
161 L2CA_DisconnectReq (p_tbl->lcid); in avdt_sec_check_complete_orig()
162 avdt_ad_tc_close_ind(p_tbl, L2CAP_CONN_SECURITY_BLOCK); in avdt_sec_check_complete_orig()
178 tAVDT_TC_TBL *p_tbl = NULL; in avdt_l2c_connect_ind_cback() local
196 p_tbl = avdt_ad_tc_tbl_alloc(p_ccb); in avdt_l2c_connect_ind_cback()
197 p_tbl->my_mtu = avdt_cb.rcb.ctrl_mtu; in avdt_l2c_connect_ind_cback()
198 p_tbl->my_flush_to = L2CAP_DEFAULT_FLUSH_TO; in avdt_l2c_connect_ind_cback()
199 p_tbl->tcid = AVDT_CHAN_SIG; in avdt_l2c_connect_ind_cback()
200 p_tbl->lcid = lcid; in avdt_l2c_connect_ind_cback()
201 p_tbl->id = id; in avdt_l2c_connect_ind_cback()
202 p_tbl->state = AVDT_AD_ST_SEC_ACP; in avdt_l2c_connect_ind_cback()
203 p_tbl->cfg_flags = AVDT_L2C_CFG_CONN_ACP; in avdt_l2c_connect_ind_cback()
221 … L2CA_ConnectRsp (p_ccb->peer_addr, p_tbl->id, lcid, L2CAP_CONN_PENDING, L2CAP_CONN_OK); in avdt_l2c_connect_ind_cback()
227 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()
235 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()
244 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()
263 avdt_cb.ad.lcid_tbl[lcid - L2CAP_BASE_APPL_CID] = avdt_ad_tc_tbl_to_idx(p_tbl); in avdt_l2c_connect_ind_cback()
264 avdt_cb.ad.rt_tbl[avdt_ccb_to_idx(p_ccb)][p_tbl->tcid].lcid = lcid; in avdt_l2c_connect_ind_cback()
267 p_tbl->state = AVDT_AD_ST_CFG; in avdt_l2c_connect_ind_cback()
272 cfg.mtu = p_tbl->my_mtu; in avdt_l2c_connect_ind_cback()
274 cfg.flush_to = p_tbl->my_flush_to; in avdt_l2c_connect_ind_cback()
291 tAVDT_TC_TBL *p_tbl; in avdt_l2c_connect_cfm_cback() local
298 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_connect_cfm_cback()
301 if (p_tbl->state == AVDT_AD_ST_CONN) in avdt_l2c_connect_cfm_cback()
306 if(p_tbl->tcid != AVDT_CHAN_SIG) in avdt_l2c_connect_cfm_cback()
309 p_tbl->state = AVDT_AD_ST_CFG; in avdt_l2c_connect_cfm_cback()
314 cfg.mtu = p_tbl->my_mtu; in avdt_l2c_connect_cfm_cback()
316 cfg.flush_to = p_tbl->my_flush_to; in avdt_l2c_connect_cfm_cback()
321 p_ccb = avdt_ccb_by_idx(p_tbl->ccb_idx); in avdt_l2c_connect_cfm_cback()
329 p_tbl->state = AVDT_AD_ST_SEC_INT; in avdt_l2c_connect_cfm_cback()
330 p_tbl->lcid = lcid; in avdt_l2c_connect_cfm_cback()
331 p_tbl->cfg_flags = AVDT_L2C_CFG_CONN_INT; in avdt_l2c_connect_cfm_cback()
354 avdt_ad_tc_close_ind(p_tbl, result); in avdt_l2c_connect_cfm_cback()
372 tAVDT_TC_TBL *p_tbl; in avdt_l2c_config_cfm_cback() local
375 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_config_cfm_cback()
377 p_tbl->lcid = lcid; in avdt_l2c_config_cfm_cback()
380 if (p_tbl->state == AVDT_AD_ST_CFG) in avdt_l2c_config_cfm_cback()
386 p_tbl->cfg_flags |= AVDT_L2C_CFG_CFM_DONE; in avdt_l2c_config_cfm_cback()
389 if (p_tbl->cfg_flags & AVDT_L2C_CFG_IND_DONE) in avdt_l2c_config_cfm_cback()
391 avdt_ad_tc_open_ind(p_tbl); in avdt_l2c_config_cfm_cback()
416 tAVDT_TC_TBL *p_tbl; in avdt_l2c_config_ind_cback() local
419 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_config_ind_cback()
424 p_tbl->peer_mtu = p_cfg->mtu; in avdt_l2c_config_ind_cback()
428 p_tbl->peer_mtu = L2CAP_DEFAULT_MTU; in avdt_l2c_config_ind_cback()
430 AVDT_TRACE_DEBUG("peer_mtu: %d, lcid: x%x",p_tbl->peer_mtu, lcid); in avdt_l2c_config_ind_cback()
438 if ((p_tbl->cfg_flags & AVDT_L2C_CFG_IND_DONE) == 0) in avdt_l2c_config_ind_cback()
441 p_tbl->cfg_flags |= AVDT_L2C_CFG_IND_DONE; in avdt_l2c_config_ind_cback()
444 if (p_tbl->cfg_flags & AVDT_L2C_CFG_CFM_DONE) in avdt_l2c_config_ind_cback()
446 avdt_ad_tc_open_ind(p_tbl); in avdt_l2c_config_ind_cback()
464 tAVDT_TC_TBL *p_tbl; in avdt_l2c_disconnect_ind_cback() local
469 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_disconnect_ind_cback()
477 avdt_ad_tc_close_ind(p_tbl, 0); in avdt_l2c_disconnect_ind_cback()
493 tAVDT_TC_TBL *p_tbl; in avdt_l2c_disconnect_cfm_cback() local
498 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_disconnect_cfm_cback()
500 avdt_ad_tc_close_ind(p_tbl, result); in avdt_l2c_disconnect_cfm_cback()
516 tAVDT_TC_TBL *p_tbl; in avdt_l2c_congestion_ind_cback() local
519 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_congestion_ind_cback()
521 avdt_ad_tc_cong_ind(p_tbl, is_congested); in avdt_l2c_congestion_ind_cback()
537 tAVDT_TC_TBL *p_tbl; in avdt_l2c_data_ind_cback() local
540 if ((p_tbl = avdt_ad_tc_tbl_by_lcid(lcid)) != NULL) in avdt_l2c_data_ind_cback()
542 avdt_ad_tc_data_ind(p_tbl, p_buf); in avdt_l2c_data_ind_cback()