Lines Matching refs:l2cap_cid
59 static void bnep_connect_ind(const RawAddress& bd_addr, uint16_t l2cap_cid,
61 static void bnep_connect_cfm(uint16_t l2cap_cid, uint16_t result);
62 static void bnep_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg);
63 static void bnep_config_cfm(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg);
64 static void bnep_disconnect_ind(uint16_t l2cap_cid, bool ack_needed);
65 static void bnep_disconnect_cfm(uint16_t l2cap_cid, uint16_t result);
66 static void bnep_data_ind(uint16_t l2cap_cid, BT_HDR* p_msg);
117 static void bnep_connect_ind(const RawAddress& bd_addr, uint16_t l2cap_cid, in bnep_connect_ind() argument
125 L2CA_ConnectRsp(bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_NO_PSM, 0); in bnep_connect_ind()
133 p_bcb->l2cap_cid = l2cap_cid; in bnep_connect_ind()
136 L2CA_ConnectRsp(bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_OK, L2CAP_CONN_OK); in bnep_connect_ind()
139 L2CA_ConfigReq(l2cap_cid, &bnep_cb.l2cap_my_cfg); in bnep_connect_ind()
145 BNEP_TRACE_EVENT("BNEP - Rcvd L2CAP conn ind, CID: 0x%x", p_bcb->l2cap_cid); in bnep_connect_ind()
159 static void bnep_connect_cfm(uint16_t l2cap_cid, uint16_t result) { in bnep_connect_cfm() argument
163 p_bcb = bnepu_find_bcb_by_cid(l2cap_cid); in bnep_connect_cfm()
165 BNEP_TRACE_WARNING("BNEP - Rcvd conn cnf for unknown CID 0x%x", l2cap_cid); in bnep_connect_cfm()
176 L2CA_ConfigReq(l2cap_cid, &bnep_cb.l2cap_my_cfg); in bnep_connect_cfm()
183 p_bcb->l2cap_cid); in bnep_connect_cfm()
186 result, p_bcb->l2cap_cid); in bnep_connect_cfm()
208 static void bnep_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) { in bnep_config_ind() argument
213 p_bcb = bnepu_find_bcb_by_cid(l2cap_cid); in bnep_config_ind()
216 l2cap_cid); in bnep_config_ind()
220 BNEP_TRACE_EVENT("BNEP - Rcvd cfg ind, CID: 0x%x", l2cap_cid); in bnep_config_ind()
241 L2CA_ConfigRsp(l2cap_cid, p_cfg); in bnep_config_ind()
245 l2cap_cid); in bnep_config_ind()
276 static void bnep_config_cfm(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) { in bnep_config_cfm() argument
279 BNEP_TRACE_EVENT("BNEP - Rcvd cfg cfm, CID: 0x%x Result: %d", l2cap_cid, in bnep_config_cfm()
283 p_bcb = bnepu_find_bcb_by_cid(l2cap_cid); in bnep_config_cfm()
286 l2cap_cid); in bnep_config_cfm()
314 L2CA_DisconnectReq(p_bcb->l2cap_cid); in bnep_config_cfm()
330 static void bnep_disconnect_ind(uint16_t l2cap_cid, bool ack_needed) { in bnep_disconnect_ind() argument
333 if (ack_needed) L2CA_DisconnectRsp(l2cap_cid); in bnep_disconnect_ind()
336 p_bcb = bnepu_find_bcb_by_cid(l2cap_cid); in bnep_disconnect_ind()
338 BNEP_TRACE_WARNING("BNEP - Rcvd L2CAP disc, unknown CID: 0x%x", l2cap_cid); in bnep_disconnect_ind()
342 BNEP_TRACE_EVENT("BNEP - Rcvd L2CAP disc, CID: 0x%x", l2cap_cid); in bnep_disconnect_ind()
369 static void bnep_disconnect_cfm(uint16_t l2cap_cid, uint16_t result) { in bnep_disconnect_cfm() argument
371 l2cap_cid, result); in bnep_disconnect_cfm()
382 static void bnep_congestion_ind(uint16_t l2cap_cid, bool is_congested) { in bnep_congestion_ind() argument
386 p_bcb = bnepu_find_bcb_by_cid(l2cap_cid); in bnep_congestion_ind()
388 BNEP_TRACE_WARNING("BNEP - Rcvd L2CAP cong, unknown CID: 0x%x", l2cap_cid); in bnep_congestion_ind()
410 L2CA_DataWrite(l2cap_cid, p_buf); in bnep_congestion_ind()
430 static void bnep_data_ind(uint16_t l2cap_cid, BT_HDR* p_buf) { in bnep_data_ind() argument
444 p_bcb = bnepu_find_bcb_by_cid(l2cap_cid); in bnep_data_ind()
446 BNEP_TRACE_WARNING("BNEP - Rcvd L2CAP data, unknown CID: 0x%x", l2cap_cid); in bnep_data_ind()
475 p_bcb->con_state, l2cap_cid); in bnep_data_ind()
649 p_bcb->con_state, p_bcb->l2cap_cid, p_bcb->con_flags, in bnep_conn_timer_timeout()
654 p_bcb->con_state, p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
657 L2CA_DisconnectReq(p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
668 L2CA_DisconnectReq(p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
679 p_bcb->con_state, p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
681 L2CA_DisconnectReq(p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
695 L2CA_DisconnectReq(p_bcb->l2cap_cid); in bnep_conn_timer_timeout()
711 L2CA_DisconnectReq(p_bcb->l2cap_cid); in bnep_conn_timer_timeout()