Lines Matching refs:devices

130     hh_cb.devices[xx].in_use = false;  in hidh_conn_reg()
131 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg()
147 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect()
154 if (!L2CA_SetIdleTimeoutByBdAddr(hh_cb.devices[dhandle].addr, 0, in hidh_conn_disconnect()
157 hh_cb.devices[dhandle].addr); in hidh_conn_disconnect()
165 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Disconnecting", in hidh_conn_disconnect()
202 tHID_CONN* p_hcon = &hh_cb.devices[i].conn; in hidh_l2cif_connect_ind()
205 kBtmLogTag, hh_cb.devices[i].addr, "Connect request", in hidh_l2cif_connect_ind()
250 BTM_LogHistory(kBtmLogTag, hh_cb.devices[i].addr, "Connecting", in hidh_l2cif_connect_ind()
284 device = &hh_cb.devices[dhandle]; in hidh_try_repage()
303 if ((hh_cb.devices[dhandle].conn_tries <= HID_HOST_MAX_CONN_RETRY) && in hidh_on_l2cap_error()
311 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_on_l2cap_error()
316 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_on_l2cap_error()
340 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_connect_cfm()
371 kBtmLogTag, hh_cb.devices[dhandle].addr, "Configuring", in hidh_l2cif_connect_cfm()
395 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_ind()
434 if (dhandle < kHID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_cfm()
449 HID_PSM_INTERRUPT, hh_cb.devices[dhandle].addr, in hidh_l2cif_config_cfm()
455 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Failed"); in hidh_l2cif_config_cfm()
457 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_config_cfm()
464 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Connecting", in hidh_l2cif_config_cfm()
477 hh_cb.devices[dhandle].state = HID_DEV_CONNECTED; in hidh_l2cif_config_cfm()
478 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, in hidh_l2cif_config_cfm()
481 kBtmLogTag, hh_cb.devices[dhandle].addr, "Connected", in hidh_l2cif_config_cfm()
506 if (dhandle < kHID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_ind()
517 kBtmLogTag, hh_cb.devices[dhandle].addr, "Disconnecting", in hidh_l2cif_disconnect_ind()
528 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect_ind()
536 (!(hh_cb.devices[dhandle].attr_mask & HID_RECONN_INIT)) && in hidh_l2cif_disconnect_ind()
537 (hh_cb.devices[dhandle].attr_mask & HID_NORMALLY_CONNECTABLE)) { in hidh_l2cif_disconnect_ind()
538 hh_cb.devices[dhandle].conn_tries = 0; in hidh_l2cif_disconnect_ind()
540 alarm_set_on_mloop(hh_cb.devices[dhandle].conn.process_repage_timer, in hidh_l2cif_disconnect_ind()
543 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_disconnect_ind()
567 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_disconnect_ind()
585 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect()
601 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect()
603 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Disconnected"); in hidh_l2cif_disconnect()
604 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_disconnect()
624 if (dhandle < kHID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_cong_ind()
668 if (dhandle < kHID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_data_ind()
693 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, in hidh_l2cif_data_ind()
703 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, in hidh_l2cif_data_ind()
714 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
717 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, in hidh_l2cif_data_ind()
722 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
725 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, in hidh_l2cif_data_ind()
747 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_snd_data()
758 if (!BTM_IsAclConnectionUp(hh_cb.devices[dhandle].addr, in hidh_conn_snd_data()
880 tHID_HOST_DEV_CTB* p_dev = &hh_cb.devices[dhandle]; in hidh_conn_initiate()
903 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_conn_initiate()
912 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Connecting", in hidh_conn_initiate()
933 if ((hh_cb.devices[xx].in_use) && in find_conn_by_cid()
934 (hh_cb.devices[xx].conn.conn_state != HID_CONN_STATE_UNUSED) && in find_conn_by_cid()
935 ((hh_cb.devices[xx].conn.ctrl_cid == cid) || in find_conn_by_cid()
936 (hh_cb.devices[xx].conn.intr_cid == cid))) in find_conn_by_cid()
958 tHID_HOST_DEV_CTB* p_dev = &hh_cb.devices[dhandle]; in hidh_conn_retry()