Lines Matching refs:l2cap_cid

55                                    uint16_t l2cap_cid, uint16_t psm,
57 static void hidh_l2cif_connect_cfm(uint16_t l2cap_cid, uint16_t result);
58 static void hidh_l2cif_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg);
59 static void hidh_l2cif_config_cfm(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg);
60 static void hidh_l2cif_disconnect_ind(uint16_t l2cap_cid, bool ack_needed);
61 static void hidh_l2cif_data_ind(uint16_t l2cap_cid, BT_HDR* p_msg);
62 static void hidh_l2cif_disconnect_cfm(uint16_t l2cap_cid, uint16_t result);
63 static void hidh_l2cif_cong_ind(uint16_t l2cap_cid, bool congested);
205 uint16_t l2cap_cid, uint16_t psm, in hidh_l2cif_connect_ind() argument
213 l2cap_cid); in hidh_l2cif_connect_ind()
217 L2CA_ConnectRsp(bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_SECURITY_BLOCK, 0); in hidh_l2cif_connect_ind()
251 L2CA_ConnectRsp(bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_NO_RESOURCES, 0); in hidh_l2cif_connect_ind()
257 p_hcon->ctrl_cid = l2cap_cid; in hidh_l2cif_connect_ind()
269 L2CA_ConnectRsp(bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_PENDING, in hidh_l2cif_connect_ind()
278 p_hcon->intr_cid = l2cap_cid; in hidh_l2cif_connect_ind()
281 L2CA_ConnectRsp(bd_addr, l2cap_id, l2cap_cid, L2CAP_CONN_OK, L2CAP_CONN_OK); in hidh_l2cif_connect_ind()
284 L2CA_ConfigReq(l2cap_cid, &hh_cb.l2cap_cfg); in hidh_l2cif_connect_ind()
288 psm, l2cap_cid); in hidh_l2cif_connect_ind()
376 static void hidh_l2cif_connect_cfm(uint16_t l2cap_cid, uint16_t result) { in hidh_l2cif_connect_cfm() argument
384 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_connect_cfm()
391 ((l2cap_cid == p_hcon->ctrl_cid) && in hidh_l2cif_connect_cfm()
393 ((l2cap_cid == p_hcon->intr_cid) && in hidh_l2cif_connect_cfm()
397 l2cap_cid); in hidh_l2cif_connect_cfm()
402 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_connect_cfm()
424 if (l2cap_cid == p_hcon->ctrl_cid) { in hidh_l2cif_connect_cfm()
439 L2CA_ConfigReq(l2cap_cid, &hh_cb.l2cap_cfg); in hidh_l2cif_connect_cfm()
441 l2cap_cid); in hidh_l2cif_connect_cfm()
457 static void hidh_l2cif_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) { in hidh_l2cif_config_ind() argument
463 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_config_ind()
470 l2cap_cid); in hidh_l2cif_config_ind()
474 HIDH_TRACE_EVENT("HID-Host Rcvd cfg ind, sent cfg cfm, CID: 0x%x", l2cap_cid); in hidh_l2cif_config_ind()
487 L2CA_ConfigRsp(l2cap_cid, p_cfg); in hidh_l2cif_config_ind()
489 if (l2cap_cid == p_hcon->ctrl_cid) { in hidh_l2cif_config_ind()
542 static void hidh_l2cif_config_cfm(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) { in hidh_l2cif_config_cfm() argument
547 HIDH_TRACE_EVENT("HID-Host Rcvd cfg cfm, CID: 0x%x Result: %d", l2cap_cid, in hidh_l2cif_config_cfm()
551 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_config_cfm()
556 l2cap_cid); in hidh_l2cif_config_cfm()
569 if (l2cap_cid == p_hcon->ctrl_cid) { in hidh_l2cif_config_cfm()
622 static void hidh_l2cif_disconnect_ind(uint16_t l2cap_cid, bool ack_needed) { in hidh_l2cif_disconnect_ind() argument
629 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_disconnect_ind()
634 l2cap_cid); in hidh_l2cif_disconnect_ind()
638 if (ack_needed) L2CA_DisconnectRsp(l2cap_cid); in hidh_l2cif_disconnect_ind()
640 HIDH_TRACE_EVENT("HID-Host Rcvd L2CAP disc, CID: 0x%x", l2cap_cid); in hidh_l2cif_disconnect_ind()
644 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_disconnect_ind()
701 static void hidh_l2cif_disconnect_cfm(uint16_t l2cap_cid, in hidh_l2cif_disconnect_cfm() argument
707 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_disconnect_cfm()
712 l2cap_cid); in hidh_l2cif_disconnect_cfm()
716 HIDH_TRACE_EVENT("HID-Host Rcvd L2CAP disc cfm, CID: 0x%x", l2cap_cid); in hidh_l2cif_disconnect_cfm()
718 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_disconnect_cfm()
745 static void hidh_l2cif_cong_ind(uint16_t l2cap_cid, bool congested) { in hidh_l2cif_cong_ind() argument
750 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_cong_ind()
755 "HID-Host Rcvd L2CAP congestion status, unknown CID: 0x%x", l2cap_cid); in hidh_l2cif_cong_ind()
760 l2cap_cid, congested); in hidh_l2cif_cong_ind()
785 static void hidh_l2cif_data_ind(uint16_t l2cap_cid, BT_HDR* p_msg) { in hidh_l2cif_data_ind() argument
792 l2cap_cid); in hidh_l2cif_data_ind()
795 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_data_ind()
800 l2cap_cid); in hidh_l2cif_data_ind()
845 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
853 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()