• Home
  • Raw
  • Download

Lines Matching refs:lcid

44 static void RFCOMM_ConnectInd(const RawAddress& bd_addr, uint16_t lcid,
46 static void RFCOMM_ConnectCnf(uint16_t lcid, uint16_t err);
47 static void RFCOMM_ConfigInd(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg);
48 static void RFCOMM_ConfigCnf(uint16_t lcid, uint16_t result,
50 static void RFCOMM_DisconnectInd(uint16_t lcid, bool is_clear);
51 static void RFCOMM_BufDataInd(uint16_t lcid, BT_HDR* p_buf);
52 static void RFCOMM_CongestionStatusInd(uint16_t lcid, bool is_congested);
88 void RFCOMM_ConnectInd(const RawAddress& bd_addr, uint16_t lcid, in RFCOMM_ConnectInd() argument
95 p_mcb->pending_lcid = lcid; in RFCOMM_ConnectInd()
105 p_mcb->lcid, p_mcb->pending_lcid); in RFCOMM_ConnectInd()
118 rfc_save_lcid_mcb(p_mcb, lcid); in RFCOMM_ConnectInd()
122 L2CA_DisconnectReq(lcid); in RFCOMM_ConnectInd()
125 p_mcb->lcid = lcid; in RFCOMM_ConnectInd()
139 void RFCOMM_ConnectCnf(uint16_t lcid, uint16_t result) { in RFCOMM_ConnectCnf() argument
140 tRFC_MCB* p_mcb = rfc_find_lcid_mcb(lcid); in RFCOMM_ConnectCnf()
143 RFCOMM_TRACE_ERROR("RFCOMM_ConnectCnf LCID:0x%x", lcid); in RFCOMM_ConnectCnf()
165 p_mcb->lcid = lcid; in RFCOMM_ConnectCnf()
179 void RFCOMM_ConfigInd(uint16_t lcid, tL2CAP_CFG_INFO* p_cfg) { in RFCOMM_ConfigInd() argument
180 tRFC_MCB* p_mcb = rfc_find_lcid_mcb(lcid); in RFCOMM_ConfigInd()
183 RFCOMM_TRACE_ERROR("RFCOMM_ConfigInd LCID:0x%x", lcid); in RFCOMM_ConfigInd()
185 if (mcb != nullptr && mcb->pending_lcid == lcid) { in RFCOMM_ConfigInd()
207 void RFCOMM_ConfigCnf(uint16_t lcid, uint16_t initiator, in RFCOMM_ConfigCnf() argument
209 RFCOMM_ConfigInd(lcid, p_cfg); in RFCOMM_ConfigCnf()
211 tRFC_MCB* p_mcb = rfc_find_lcid_mcb(lcid); in RFCOMM_ConfigCnf()
214 RFCOMM_TRACE_ERROR("RFCOMM_ConfigCnf no MCB LCID:0x%x", lcid); in RFCOMM_ConfigCnf()
229 void RFCOMM_DisconnectInd(uint16_t lcid, bool is_conf_needed) { in RFCOMM_DisconnectInd() argument
230 VLOG(1) << __func__ << ": lcid=" << loghex(lcid) in RFCOMM_DisconnectInd()
232 tRFC_MCB* p_mcb = rfc_find_lcid_mcb(lcid); in RFCOMM_DisconnectInd()
234 LOG(WARNING) << __func__ << ": no mcb for lcid " << loghex(lcid); in RFCOMM_DisconnectInd()
250 void RFCOMM_BufDataInd(uint16_t lcid, BT_HDR* p_buf) { in RFCOMM_BufDataInd() argument
251 tRFC_MCB* p_mcb = rfc_find_lcid_mcb(lcid); in RFCOMM_BufDataInd()
255 << loghex(lcid); in RFCOMM_BufDataInd()
264 LOG(WARNING) << __func__ << ": Bad RFCOMM frame from lcid=" << loghex(lcid) in RFCOMM_BufDataInd()
291 << ": no for none-SABME event, lcid=" << loghex(lcid) in RFCOMM_BufDataInd()
296 << ": Disconnecting RFCOMM, lcid=" << loghex(lcid) in RFCOMM_BufDataInd()
307 << +rfc_cb.rfc.rx_frame.dlci << ", lcid=" << loghex(lcid) in RFCOMM_BufDataInd()
348 void RFCOMM_CongestionStatusInd(uint16_t lcid, bool is_congested) { in RFCOMM_CongestionStatusInd() argument
349 tRFC_MCB* p_mcb = rfc_find_lcid_mcb(lcid); in RFCOMM_CongestionStatusInd()
352 RFCOMM_TRACE_ERROR("RFCOMM_CongestionStatusInd dropped LCID:0x%x", lcid); in RFCOMM_CongestionStatusInd()
355 RFCOMM_TRACE_EVENT("RFCOMM_CongestionStatusInd LCID:0x%x", lcid); in RFCOMM_CongestionStatusInd()
367 tRFC_MCB* rfc_find_lcid_mcb(uint16_t lcid) { in rfc_find_lcid_mcb() argument
368 tRFC_MCB* p_mcb = rfc_lcid_mcb[lcid]; in rfc_find_lcid_mcb()
370 if (p_mcb->lcid != lcid) { in rfc_find_lcid_mcb()
371 LOG(WARNING) << __func__ << "LCID reused lcid=:" << loghex(lcid) in rfc_find_lcid_mcb()
372 << ", current_lcid=" << loghex(p_mcb->lcid); in rfc_find_lcid_mcb()
386 void rfc_save_lcid_mcb(tRFC_MCB* p_mcb, uint16_t lcid) { in rfc_save_lcid_mcb() argument
387 auto mcb_index = static_cast<size_t>(lcid); in rfc_save_lcid_mcb()