Lines Matching refs:l2cap_cid
48 static void sdp_connect_ind(const RawAddress& bd_addr, uint16_t l2cap_cid,
50 static void sdp_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg);
51 static void sdp_config_cfm(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg);
52 static void sdp_disconnect_ind(uint16_t l2cap_cid, bool ack_needed);
53 static void sdp_data_ind(uint16_t l2cap_cid, BT_HDR* p_msg);
55 static void sdp_connect_cfm(uint16_t l2cap_cid, uint16_t result);
56 static void sdp_disconnect_cfm(uint16_t l2cap_cid, uint16_t result);
143 static void sdp_connect_ind(const RawAddress& bd_addr, uint16_t l2cap_cid, in sdp_connect_ind() argument
157 p_ccb->connection_id = l2cap_cid; in sdp_connect_ind()
160 L2CA_ConnectRsp(bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_OK, L2CAP_CONN_OK); in sdp_connect_ind()
172 if ((!L2CA_ConfigReq(l2cap_cid, &cfg)) && cfg.fcr_present && in sdp_connect_ind()
177 L2CA_ConfigReq(l2cap_cid, &cfg); in sdp_connect_ind()
185 L2CA_ConnectRsp(bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_NO_PSM, 0); in sdp_connect_ind()
200 static void sdp_connect_cfm(uint16_t l2cap_cid, uint16_t result) { in sdp_connect_cfm() argument
205 p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_connect_cfm()
207 SDP_TRACE_WARNING("SDP - Rcvd conn cnf for unknown CID 0x%x", l2cap_cid); in sdp_connect_cfm()
226 if ((!L2CA_ConfigReq(l2cap_cid, &cfg)) && cfg.fcr_present && in sdp_connect_cfm()
231 L2CA_ConfigReq(l2cap_cid, &cfg); in sdp_connect_cfm()
272 static void sdp_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) { in sdp_config_ind() argument
276 p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_config_ind()
278 SDP_TRACE_WARNING("SDP - Rcvd L2CAP cfg ind, unknown CID: 0x%x", l2cap_cid); in sdp_config_ind()
326 l2cap_cid); in sdp_config_ind()
327 L2CA_ConfigRsp(l2cap_cid, p_cfg); in sdp_config_ind()
334 L2CA_ConfigRsp(l2cap_cid, p_cfg); in sdp_config_ind()
336 SDP_TRACE_EVENT("SDP - Rcvd cfg ind, sent cfg cfm, CID: 0x%x", l2cap_cid); in sdp_config_ind()
363 static void sdp_config_cfm(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) { in sdp_config_cfm() argument
366 SDP_TRACE_EVENT("SDP - Rcvd cfg cfm, CID: 0x%x Result: %d", l2cap_cid, in sdp_config_cfm()
370 p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_config_cfm()
372 SDP_TRACE_WARNING("SDP - Rcvd L2CAP cfg ind, unknown CID: 0x%x", l2cap_cid); in sdp_config_cfm()
396 L2CA_ConfigReq(l2cap_cid, &cfg); in sdp_config_cfm()
416 static void sdp_disconnect_ind(uint16_t l2cap_cid, bool ack_needed) { in sdp_disconnect_ind() argument
420 p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_disconnect_ind()
422 SDP_TRACE_WARNING("SDP - Rcvd L2CAP disc, unknown CID: 0x%x", l2cap_cid); in sdp_disconnect_ind()
426 if (ack_needed) L2CA_DisconnectRsp(l2cap_cid); in sdp_disconnect_ind()
428 SDP_TRACE_EVENT("SDP - Rcvd L2CAP disc, CID: 0x%x", l2cap_cid); in sdp_disconnect_ind()
458 static void sdp_data_ind(uint16_t l2cap_cid, BT_HDR* p_msg) { in sdp_data_ind() argument
462 p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_data_ind()
472 p_ccb->con_state, l2cap_cid); in sdp_data_ind()
475 SDP_TRACE_WARNING("SDP - Rcvd L2CAP data, unknown CID: 0x%x", l2cap_cid); in sdp_data_ind()
608 static void sdp_disconnect_cfm(uint16_t l2cap_cid, in sdp_disconnect_cfm() argument
613 p_ccb = sdpu_find_ccb_by_cid(l2cap_cid); in sdp_disconnect_cfm()
616 l2cap_cid); in sdp_disconnect_cfm()
620 SDP_TRACE_EVENT("SDP - Rcvd L2CAP disc cfm, CID: 0x%x", l2cap_cid); in sdp_disconnect_cfm()