Home
last modified time | relevance | path

Searched refs:p_hcon (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Bluetooth/system/stack/hid/
Dhidd_conn.cc80 tHID_CONN* p_hcon = &hd_cb.device.conn; in hidd_check_config_done() local
82 if (p_hcon->conn_state == HID_CONN_STATE_CONFIG) { in hidd_check_config_done()
83 p_hcon->conn_state = HID_CONN_STATE_CONNECTED; in hidd_check_config_done()
91 if (L2CA_DataWrite(p_hcon->intr_cid, hd_cb.pending_data) != in hidd_check_config_done()
93 log::warn("Unable to write L2CAP data cid:{} len:{}", p_hcon->intr_cid, in hidd_check_config_done()
128 tHID_CONN* p_hcon = &hd_cb.device.conn; in hidd_l2cif_connect_ind() local
132 if (p_hcon->ctrl_cid == 0) { in hidd_l2cif_connect_ind()
137 if (p_hcon->conn_state != HID_CONN_STATE_CONNECTING_INTR) { in hidd_l2cif_connect_ind()
140 p_hcon->conn_state); in hidd_l2cif_connect_ind()
146 if (p_hcon->conn_state != HID_CONN_STATE_UNUSED) { in hidd_l2cif_connect_ind()
[all …]
Dhidh_conn.cc147 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect() local
149 if ((p_hcon->ctrl_cid != 0) || (p_hcon->intr_cid != 0)) { in hidh_conn_disconnect()
150 p_hcon->conn_state = HID_CONN_STATE_DISCONNECTING; in hidh_conn_disconnect()
160 if (p_hcon->intr_cid) in hidh_conn_disconnect()
161 hidh_l2cif_disconnect(p_hcon->intr_cid); in hidh_conn_disconnect()
162 else if (p_hcon->ctrl_cid) in hidh_conn_disconnect()
163 hidh_l2cif_disconnect(p_hcon->ctrl_cid); in hidh_conn_disconnect()
168 p_hcon->conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_disconnect()
202 tHID_CONN* p_hcon = &hh_cb.devices[i].conn; in hidh_l2cif_connect_ind() local
208 hid_conn::state_text(p_hcon->conn_state).c_str())); in hidh_l2cif_connect_ind()
[all …]