Lines Matching refs:devices
120 hh_cb.devices[xx].in_use = false; in hidh_conn_reg()
121 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg()
137 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect()
144 L2CA_SetIdleTimeoutByBdAddr(hh_cb.devices[dhandle].addr, 0, in hidh_conn_disconnect()
152 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Disconnecting", in hidh_conn_disconnect()
186 tHID_CONN* p_hcon = &hh_cb.devices[i].conn; in hidh_l2cif_connect_ind()
189 kBtmLogTag, hh_cb.devices[i].addr, "Connect request", in hidh_l2cif_connect_ind()
232 BTM_LogHistory(kBtmLogTag, hh_cb.devices[i].addr, "Connecting", in hidh_l2cif_connect_ind()
265 device = &hh_cb.devices[dhandle]; in hidh_try_repage()
285 if ((hh_cb.devices[dhandle].conn_tries <= HID_HOST_MAX_CONN_RETRY) && in hidh_on_l2cap_error()
293 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_on_l2cap_error()
298 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_on_l2cap_error()
323 p_dev = &hh_cb.devices[dhandle]; in hidh_l2cif_connect_cfm()
324 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_connect_cfm()
356 kBtmLogTag, hh_cb.devices[dhandle].addr, "Configuring", in hidh_l2cif_connect_cfm()
380 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_ind()
420 if (dhandle < kHID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_cfm()
436 L2CA_ConnectReq2(HID_PSM_INTERRUPT, hh_cb.devices[dhandle].addr, in hidh_l2cif_config_cfm()
442 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Failed"); in hidh_l2cif_config_cfm()
444 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_config_cfm()
451 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Connecting", in hidh_l2cif_config_cfm()
464 hh_cb.devices[dhandle].state = HID_DEV_CONNECTED; in hidh_l2cif_config_cfm()
465 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, in hidh_l2cif_config_cfm()
468 kBtmLogTag, hh_cb.devices[dhandle].addr, "Connected", in hidh_l2cif_config_cfm()
493 if (dhandle < kHID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_ind()
505 kBtmLogTag, hh_cb.devices[dhandle].addr, "Disconnecting", in hidh_l2cif_disconnect_ind()
516 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect_ind()
524 (!(hh_cb.devices[dhandle].attr_mask & HID_RECONN_INIT)) && in hidh_l2cif_disconnect_ind()
525 (hh_cb.devices[dhandle].attr_mask & HID_NORMALLY_CONNECTABLE)) { in hidh_l2cif_disconnect_ind()
526 hh_cb.devices[dhandle].conn_tries = 0; in hidh_l2cif_disconnect_ind()
528 alarm_set_on_mloop(hh_cb.devices[dhandle].conn.process_repage_timer, in hidh_l2cif_disconnect_ind()
531 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_disconnect_ind()
552 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_disconnect_ind()
568 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect()
581 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect()
583 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Disconnected"); in hidh_l2cif_disconnect()
584 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_disconnect()
604 if (dhandle < kHID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_cong_ind()
649 if (dhandle < kHID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_data_ind()
677 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, in hidh_l2cif_data_ind()
687 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, in hidh_l2cif_data_ind()
698 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
701 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, in hidh_l2cif_data_ind()
706 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
709 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, in hidh_l2cif_data_ind()
731 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_snd_data()
742 if (!BTM_IsAclConnectionUp(hh_cb.devices[dhandle].addr, in hidh_conn_snd_data()
851 tHID_HOST_DEV_CTB* p_dev = &hh_cb.devices[dhandle]; in hidh_conn_initiate()
870 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_conn_initiate()
876 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Connecting", in hidh_conn_initiate()
897 if ((hh_cb.devices[xx].in_use) && in find_conn_by_cid()
898 (hh_cb.devices[xx].conn.conn_state != HID_CONN_STATE_UNUSED) && in find_conn_by_cid()
899 ((hh_cb.devices[xx].conn.ctrl_cid == cid) || in find_conn_by_cid()
900 (hh_cb.devices[xx].conn.intr_cid == cid))) in find_conn_by_cid()
922 tHID_HOST_DEV_CTB* p_dev = &hh_cb.devices[dhandle]; in hidh_conn_retry()