• Home
  • Raw
  • Download

Lines Matching refs:p_lcb

68   tAVCT_LCB* p_lcb;  in avct_l2c_br_connect_ind_cback()  local
73 p_lcb = avct_lcb_by_bd(bd_addr); in avct_l2c_br_connect_ind_cback()
74 if (p_lcb != NULL) { in avct_l2c_br_connect_ind_cback()
76 p_bcb = avct_bcb_by_lcb(p_lcb); in avct_l2c_br_connect_ind_cback()
83 p_bcb->allocated = p_lcb->allocated; /* copy the index from lcb */ in avct_l2c_br_connect_ind_cback()
109 tAVCT_BCB* p_lcb = avct_bcb_by_lcid(lcid); in avct_br_on_l2cap_error() local
110 if (p_lcb == nullptr) return; in avct_br_on_l2cap_error()
113 p_lcb->ch_result = result; in avct_br_on_l2cap_error()
130 tAVCT_BCB* p_lcb; in avct_l2c_br_connect_cfm_cback() local
133 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_connect_cfm_cback()
134 if ((p_lcb == NULL) || (p_lcb->ch_state != AVCT_CH_CONN)) return; in avct_l2c_br_connect_cfm_cback()
143 p_lcb->ch_state = AVCT_CH_CFG; in avct_l2c_br_connect_cfm_cback()
160 tAVCT_BCB* p_lcb; in avct_l2c_br_config_cfm_cback() local
163 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_config_cfm_cback()
164 if ((p_lcb == NULL) || (p_lcb->ch_state != AVCT_CH_CFG)) return; in avct_l2c_br_config_cfm_cback()
166 p_lcb->ch_state = AVCT_CH_OPEN; in avct_l2c_br_config_cfm_cback()
167 avct_bcb_event(p_lcb, AVCT_LCB_LL_OPEN_EVT, NULL); in avct_l2c_br_config_cfm_cback()
181 tAVCT_BCB* p_lcb; in avct_l2c_br_config_ind_cback() local
185 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_config_ind_cback()
186 if (p_lcb == NULL) return; in avct_l2c_br_config_ind_cback()
189 p_lcb->peer_mtu = L2CAP_DEFAULT_MTU; in avct_l2c_br_config_ind_cback()
191 p_lcb->peer_mtu = p_cfg->mtu; in avct_l2c_br_config_ind_cback()
194 if (p_lcb->peer_mtu > max_mtu) { in avct_l2c_br_config_ind_cback()
195 p_lcb->peer_mtu = max_mtu; in avct_l2c_br_config_ind_cback()
198 AVCT_TRACE_DEBUG("%s peer_mtu:%d use:%d", __func__, p_lcb->peer_mtu, max_mtu); in avct_l2c_br_config_ind_cback()
212 tAVCT_BCB* p_lcb; in avct_l2c_br_disconnect_ind_cback() local
216 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_disconnect_ind_cback()
217 if (p_lcb == NULL) return; in avct_l2c_br_disconnect_ind_cback()
221 avct_bcb_event(p_lcb, AVCT_LCB_LL_CLOSE_EVT, &avct_lcb_evt); in avct_l2c_br_disconnect_ind_cback()
227 tAVCT_BCB* p_lcb; in avct_l2c_br_disconnect() local
231 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_disconnect()
232 if (p_lcb == NULL) return; in avct_l2c_br_disconnect()
235 res = (p_lcb->ch_result != 0) ? p_lcb->ch_result : result; in avct_l2c_br_disconnect()
236 p_lcb->ch_result = 0; in avct_l2c_br_disconnect()
240 avct_bcb_event(p_lcb, AVCT_LCB_LL_CLOSE_EVT, &avct_lcb_evt); in avct_l2c_br_disconnect()
254 tAVCT_BCB* p_lcb; in avct_l2c_br_congestion_ind_cback() local
257 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_congestion_ind_cback()
258 if (p_lcb == NULL) return; in avct_l2c_br_congestion_ind_cback()
262 avct_bcb_event(p_lcb, AVCT_LCB_LL_CONG_EVT, &avct_lcb_evt); in avct_l2c_br_congestion_ind_cback()
276 tAVCT_BCB* p_lcb; in avct_l2c_br_data_ind_cback() local
280 p_lcb = avct_bcb_by_lcid(lcid); in avct_l2c_br_data_ind_cback()
281 if (p_lcb == NULL) { in avct_l2c_br_data_ind_cback()
288 avct_bcb_event(p_lcb, AVCT_LCB_LL_MSG_EVT, &evt_data); in avct_l2c_br_data_ind_cback()