• Home
  • Raw
  • Download

Lines Matching refs:l2cap_cid

58                                    uint16_t l2cap_cid, uint16_t psm,
60 static void hidh_l2cif_connect_cfm(uint16_t l2cap_cid, uint16_t result);
61 static void hidh_l2cif_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg);
62 static void hidh_l2cif_config_cfm(uint16_t l2cap_cid, uint16_t result,
64 static void hidh_l2cif_disconnect_ind(uint16_t l2cap_cid, bool ack_needed);
65 static void hidh_l2cif_data_ind(uint16_t l2cap_cid, BT_HDR* p_msg);
66 static void hidh_l2cif_disconnect(uint16_t l2cap_cid);
67 static void hidh_l2cif_cong_ind(uint16_t l2cap_cid, bool congested);
68 static void hidh_on_l2cap_error(uint16_t l2cap_cid, uint16_t result);
172 uint16_t l2cap_cid, uint16_t psm, in hidh_l2cif_connect_ind() argument
178 l2cap_cid); in hidh_l2cif_connect_ind()
182 L2CA_DisconnectReq(l2cap_cid); in hidh_l2cif_connect_ind()
221 L2CA_DisconnectReq(l2cap_cid); in hidh_l2cif_connect_ind()
227 p_hcon->ctrl_cid = l2cap_cid; in hidh_l2cif_connect_ind()
239 p_hcon->intr_cid = l2cap_cid; in hidh_l2cif_connect_ind()
243 psm, l2cap_cid); in hidh_l2cif_connect_ind()
272 static void hidh_on_l2cap_error(uint16_t l2cap_cid, uint16_t result) { in hidh_on_l2cap_error() argument
273 auto dhandle = find_conn_by_cid(l2cap_cid); in hidh_on_l2cap_error()
276 l2cap_cid, in hidh_on_l2cap_error()
314 static void hidh_l2cif_connect_cfm(uint16_t l2cap_cid, uint16_t result) { in hidh_l2cif_connect_cfm() argument
321 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_connect_cfm()
328 ((l2cap_cid == p_hcon->ctrl_cid) && in hidh_l2cif_connect_cfm()
330 ((l2cap_cid == p_hcon->intr_cid) && in hidh_l2cif_connect_cfm()
334 l2cap_cid); in hidh_l2cif_connect_cfm()
344 if (l2cap_cid == p_hcon->ctrl_cid) { in hidh_l2cif_connect_cfm()
373 static void hidh_l2cif_config_ind(uint16_t l2cap_cid, tL2CAP_CFG_INFO* p_cfg) { in hidh_l2cif_config_ind() argument
378 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_config_ind()
385 l2cap_cid); in hidh_l2cif_config_ind()
389 HIDH_TRACE_EVENT("HID-Host Rcvd cfg ind, sent cfg cfm, CID: 0x%x", l2cap_cid); in hidh_l2cif_config_ind()
408 static void hidh_l2cif_config_cfm(uint16_t l2cap_cid, uint16_t initiator, in hidh_l2cif_config_cfm() argument
410 hidh_l2cif_config_ind(l2cap_cid, p_cfg); in hidh_l2cif_config_cfm()
416 HIDH_TRACE_EVENT("HID-Host Rcvd cfg cfm, CID: 0x%x", l2cap_cid); in hidh_l2cif_config_cfm()
419 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_config_cfm()
424 l2cap_cid); in hidh_l2cif_config_cfm()
428 if (l2cap_cid == p_hcon->ctrl_cid) { in hidh_l2cif_config_cfm()
485 static void hidh_l2cif_disconnect_ind(uint16_t l2cap_cid, bool ack_needed) { in hidh_l2cif_disconnect_ind() argument
492 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_disconnect_ind()
497 l2cap_cid); in hidh_l2cif_disconnect_ind()
501 HIDH_TRACE_EVENT("HID-Host Rcvd L2CAP disc, CID: 0x%x", l2cap_cid); in hidh_l2cif_disconnect_ind()
506 base::StringPrintf("%s channel", (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_disconnect_ind()
510 if (l2cap_cid == p_hcon->ctrl_cid) in hidh_l2cif_disconnect_ind()
558 static void hidh_l2cif_disconnect(uint16_t l2cap_cid) { in hidh_l2cif_disconnect() argument
559 L2CA_DisconnectReq(l2cap_cid); in hidh_l2cif_disconnect()
562 const uint8_t dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_disconnect()
564 LOG_WARN("HID-Host Rcvd L2CAP disc cfm, unknown CID: 0x%x", l2cap_cid); in hidh_l2cif_disconnect()
569 if (l2cap_cid == p_hcon->ctrl_cid) { in hidh_l2cif_disconnect()
598 static void hidh_l2cif_cong_ind(uint16_t l2cap_cid, bool congested) { in hidh_l2cif_cong_ind() argument
603 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_cong_ind()
608 "HID-Host Rcvd L2CAP congestion status, unknown CID: 0x%x", l2cap_cid); in hidh_l2cif_cong_ind()
613 l2cap_cid, congested); in hidh_l2cif_cong_ind()
638 static void hidh_l2cif_data_ind(uint16_t l2cap_cid, BT_HDR* p_msg) { in hidh_l2cif_data_ind() argument
645 l2cap_cid); in hidh_l2cif_data_ind()
648 dhandle = find_conn_by_cid(l2cap_cid); in hidh_l2cif_data_ind()
653 l2cap_cid); in hidh_l2cif_data_ind()
698 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
706 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()