Lines Matching refs:l2cap_cid
57 static void hidh_l2cif_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid,
59 static void hidh_l2cif_connect_cfm (UINT16 l2cap_cid, UINT16 result);
60 static void hidh_l2cif_config_ind (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg);
61 static void hidh_l2cif_config_cfm (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg);
62 static void hidh_l2cif_disconnect_ind (UINT16 l2cap_cid, BOOLEAN ack_needed);
63 static void hidh_l2cif_data_ind (UINT16 l2cap_cid, BT_HDR *p_msg);
64 static void hidh_l2cif_disconnect_cfm (UINT16 l2cap_cid, UINT16 result);
65 static void hidh_l2cif_cong_ind (UINT16 l2cap_cid, BOOLEAN congested);
210 static void hidh_l2cif_connect_ind (BD_ADDR bd_addr, UINT16 l2cap_cid, UINT16 psm, UINT8 l2cap_id) in hidh_l2cif_connect_ind() argument
217 HIDH_TRACE_EVENT ("HID-Host Rcvd L2CAP conn ind, PSM: 0x%04x CID 0x%x", psm, l2cap_cid); in hidh_l2cif_connect_ind()
222 L2CA_ConnectRsp (bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_SECURITY_BLOCK, 0); in hidh_l2cif_connect_ind()
261 L2CA_ConnectRsp (bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_NO_RESOURCES, 0); in hidh_l2cif_connect_ind()
268 p_hcon->ctrl_cid = l2cap_cid; in hidh_l2cif_connect_ind()
278 L2CA_ConnectRsp (bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_PENDING, L2CAP_CONN_OK); in hidh_l2cif_connect_ind()
286 p_hcon->intr_cid = l2cap_cid; in hidh_l2cif_connect_ind()
289 L2CA_ConnectRsp (bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_OK, L2CAP_CONN_OK); in hidh_l2cif_connect_ind()
292 L2CA_ConfigReq (l2cap_cid, &hh_cb.l2cap_cfg); in hidh_l2cif_connect_ind()
295 psm, l2cap_cid); in hidh_l2cif_connect_ind()
387 static void hidh_l2cif_connect_cfm (UINT16 l2cap_cid, UINT16 result) in hidh_l2cif_connect_cfm() argument
395 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_connect_cfm()
403 || ((l2cap_cid == p_hcon->ctrl_cid) && (p_hcon->conn_state != HID_CONN_STATE_CONNECTING_CTRL)) in hidh_l2cif_connect_cfm()
404 || ((l2cap_cid == p_hcon->intr_cid) && (p_hcon->conn_state != HID_CONN_STATE_CONNECTING_INTR) in hidh_l2cif_connect_cfm()
407 HIDH_TRACE_WARNING ("HID-Host Rcvd unexpected conn cnf, CID 0x%x ", l2cap_cid); in hidh_l2cif_connect_cfm()
413 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_connect_cfm()
436 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_connect_cfm()
451 L2CA_ConfigReq (l2cap_cid, &hh_cb.l2cap_cfg); in hidh_l2cif_connect_cfm()
452 HIDH_TRACE_EVENT ("HID-Host got Interrupt conn cnf, sent cfg req, CID: 0x%x", l2cap_cid); in hidh_l2cif_connect_cfm()
468 static void hidh_l2cif_config_ind (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg) in hidh_l2cif_config_ind() argument
475 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_config_ind()
482 HIDH_TRACE_WARNING ("HID-Host Rcvd L2CAP cfg ind, unknown CID: 0x%x", l2cap_cid); in hidh_l2cif_config_ind()
486 HIDH_TRACE_EVENT ("HID-Host Rcvd cfg ind, sent cfg cfm, CID: 0x%x", l2cap_cid); in hidh_l2cif_config_ind()
499 L2CA_ConfigRsp (l2cap_cid, p_cfg); in hidh_l2cif_config_ind()
501 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_config_ind()
552 static void hidh_l2cif_config_cfm (UINT16 l2cap_cid, tL2CAP_CFG_INFO *p_cfg) in hidh_l2cif_config_cfm() argument
558 HIDH_TRACE_EVENT ("HID-Host Rcvd cfg cfm, CID: 0x%x Result: %d", l2cap_cid, p_cfg->result); in hidh_l2cif_config_cfm()
561 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_config_cfm()
566 HIDH_TRACE_WARNING ("HID-Host Rcvd L2CAP cfg ind, unknown CID: 0x%x", l2cap_cid); in hidh_l2cif_config_cfm()
579 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_config_cfm()
630 static void hidh_l2cif_disconnect_ind (UINT16 l2cap_cid, BOOLEAN ack_needed) in hidh_l2cif_disconnect_ind() argument
638 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_disconnect_ind()
643 HIDH_TRACE_WARNING ("HID-Host Rcvd L2CAP disc, unknown CID: 0x%x", l2cap_cid); in hidh_l2cif_disconnect_ind()
648 L2CA_DisconnectRsp (l2cap_cid); in hidh_l2cif_disconnect_ind()
650 HIDH_TRACE_EVENT ("HID-Host Rcvd L2CAP disc, CID: 0x%x", l2cap_cid); in hidh_l2cif_disconnect_ind()
654 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_disconnect_ind()
713 static void hidh_l2cif_disconnect_cfm (UINT16 l2cap_cid, UINT16 result) in hidh_l2cif_disconnect_cfm() argument
720 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_disconnect_cfm()
725 HIDH_TRACE_WARNING ("HID-Host Rcvd L2CAP disc cfm, unknown CID: 0x%x", l2cap_cid); in hidh_l2cif_disconnect_cfm()
729 HIDH_TRACE_EVENT ("HID-Host Rcvd L2CAP disc cfm, CID: 0x%x", l2cap_cid); in hidh_l2cif_disconnect_cfm()
731 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_disconnect_cfm()
761 static void hidh_l2cif_cong_ind (UINT16 l2cap_cid, BOOLEAN congested) in hidh_l2cif_cong_ind() argument
767 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_cong_ind()
772 HIDH_TRACE_WARNING ("HID-Host Rcvd L2CAP congestion status, unknown CID: 0x%x", l2cap_cid); in hidh_l2cif_cong_ind()
776 …HIDH_TRACE_EVENT ("HID-Host Rcvd L2CAP congestion status, CID: 0x%x Cong: %d", l2cap_cid, congest… in hidh_l2cif_cong_ind()
803 static void hidh_l2cif_data_ind (UINT16 l2cap_cid, BT_HDR *p_msg) in hidh_l2cif_data_ind() argument
810 HIDH_TRACE_DEBUG ("HID-Host hidh_l2cif_data_ind [l2cap_cid=0x%04x]", l2cap_cid); in hidh_l2cif_data_ind()
813 if ((dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES) in hidh_l2cif_data_ind()
818 HIDH_TRACE_WARNING ("HID-Host Rcvd L2CAP data, unknown CID: 0x%x", l2cap_cid); in hidh_l2cif_data_ind()
857 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) ? in hidh_l2cif_data_ind()
863 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) ? in hidh_l2cif_data_ind()