• Home
  • Raw
  • Download

Lines Matching refs:p_lcb

121   tAVCT_LCB* p_lcb;  in avct_l2c_br_connect_ind_cback()  local
130 p_lcb = avct_lcb_by_bd(bd_addr); in avct_l2c_br_connect_ind_cback()
131 if (p_lcb != NULL) { in avct_l2c_br_connect_ind_cback()
133 p_bcb = avct_bcb_by_lcb(p_lcb); in avct_l2c_br_connect_ind_cback()
140 p_bcb->allocated = p_lcb->allocated; /* copy the index from lcb */ in avct_l2c_br_connect_ind_cback()
186 tAVCT_BCB* p_lcb; in avct_l2c_br_connect_cfm_cback() local
190 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_connect_cfm_cback()
191 if ((p_lcb == NULL) || (p_lcb->ch_state != AVCT_CH_CONN)) return; in avct_l2c_br_connect_cfm_cback()
197 avct_bcb_event(p_lcb, AVCT_LCB_LL_CLOSE_EVT, &avct_lcb_evt); in avct_l2c_br_connect_cfm_cback()
203 p_lcb->ch_state = AVCT_CH_CFG; in avct_l2c_br_connect_cfm_cback()
228 tAVCT_BCB* p_lcb; in avct_l2c_br_config_cfm_cback() local
231 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_config_cfm_cback()
232 if ((p_lcb == NULL) || (p_lcb->ch_state != AVCT_CH_CFG)) return; in avct_l2c_br_config_cfm_cback()
237 p_lcb->ch_flags |= AVCT_L2C_CFG_CFM_DONE; in avct_l2c_br_config_cfm_cback()
240 if (p_lcb->ch_flags & AVCT_L2C_CFG_IND_DONE) { in avct_l2c_br_config_cfm_cback()
241 p_lcb->ch_state = AVCT_CH_OPEN; in avct_l2c_br_config_cfm_cback()
242 avct_bcb_event(p_lcb, AVCT_LCB_LL_OPEN_EVT, NULL); in avct_l2c_br_config_cfm_cback()
248 p_lcb->ch_result = p_cfg->result; in avct_l2c_br_config_cfm_cback()
266 tAVCT_BCB* p_lcb; in avct_l2c_br_config_ind_cback() local
277 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_config_ind_cback()
278 if (p_lcb == NULL) return; in avct_l2c_br_config_ind_cback()
281 p_lcb->peer_mtu = L2CAP_DEFAULT_MTU; in avct_l2c_br_config_ind_cback()
283 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_br_config_ind_cback()
286 if (p_lcb->peer_mtu > max_mtu) { in avct_l2c_br_config_ind_cback()
287 p_lcb->peer_mtu = p_cfg->mtu = max_mtu; in avct_l2c_br_config_ind_cback()
294 AVCT_TRACE_DEBUG("%s peer_mtu:%d use:%d", __func__, p_lcb->peer_mtu, max_mtu); in avct_l2c_br_config_ind_cback()
296 if (p_lcb->peer_mtu >= AVCT_MIN_BROWSE_MTU) in avct_l2c_br_config_ind_cback()
312 if ((p_lcb->ch_flags & AVCT_L2C_CFG_IND_DONE) == 0) { in avct_l2c_br_config_ind_cback()
314 p_lcb->ch_flags |= AVCT_L2C_CFG_IND_DONE; in avct_l2c_br_config_ind_cback()
317 if (p_lcb->ch_flags & AVCT_L2C_CFG_CFM_DONE) { in avct_l2c_br_config_ind_cback()
318 p_lcb->ch_state = AVCT_CH_OPEN; in avct_l2c_br_config_ind_cback()
319 avct_bcb_event(p_lcb, AVCT_LCB_LL_OPEN_EVT, NULL); in avct_l2c_br_config_ind_cback()
335 tAVCT_BCB* p_lcb; in avct_l2c_br_disconnect_ind_cback() local
339 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_disconnect_ind_cback()
340 if (p_lcb == NULL) return; in avct_l2c_br_disconnect_ind_cback()
349 avct_bcb_event(p_lcb, AVCT_LCB_LL_CLOSE_EVT, &avct_lcb_evt); in avct_l2c_br_disconnect_ind_cback()
363 tAVCT_BCB* p_lcb; in avct_l2c_br_disconnect_cfm_cback() local
367 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_disconnect_cfm_cback()
368 if (p_lcb == NULL) return; in avct_l2c_br_disconnect_cfm_cback()
371 res = (p_lcb->ch_result != 0) ? p_lcb->ch_result : result; in avct_l2c_br_disconnect_cfm_cback()
372 p_lcb->ch_result = 0; in avct_l2c_br_disconnect_cfm_cback()
376 avct_bcb_event(p_lcb, AVCT_LCB_LL_CLOSE_EVT, &avct_lcb_evt); in avct_l2c_br_disconnect_cfm_cback()
390 tAVCT_BCB* p_lcb; in avct_l2c_br_congestion_ind_cback() local
393 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_congestion_ind_cback()
394 if (p_lcb == NULL) return; in avct_l2c_br_congestion_ind_cback()
398 avct_bcb_event(p_lcb, AVCT_LCB_LL_CONG_EVT, &avct_lcb_evt); in avct_l2c_br_congestion_ind_cback()
412 tAVCT_BCB* p_lcb; in avct_l2c_br_data_ind_cback() local
416 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_data_ind_cback()
417 if (p_lcb == NULL) { in avct_l2c_br_data_ind_cback()
424 avct_bcb_event(p_lcb, AVCT_LCB_LL_MSG_EVT, &evt_data); in avct_l2c_br_data_ind_cback()