Lines Matching refs:devices

113     hh_cb.devices[xx].in_use = false;  in hidh_conn_reg()
114 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg()
130 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect()
139 L2CA_SetIdleTimeoutByBdAddr(hh_cb.devices[dhandle].addr, 0, in hidh_conn_disconnect()
221 p_hcon = &hh_cb.devices[i].conn; in hidh_l2cif_connect_ind()
222 p_dev = &hh_cb.devices[i]; in hidh_l2cif_connect_ind()
310 device = &hh_cb.devices[dhandle]; in hidh_try_repage()
335 dhandle = (PTR_TO_UINT(p_dev) - PTR_TO_UINT(&(hh_cb.devices[0]))) / in hidh_sec_check_complete_orig()
386 p_dev = &hh_cb.devices[dhandle]; in hidh_l2cif_connect_cfm()
387 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_connect_cfm()
410 if ((hh_cb.devices[dhandle].conn_tries <= HID_HOST_MAX_CONN_RETRY) && in hidh_l2cif_connect_cfm()
418 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_connect_cfm()
465 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_ind()
499 L2CA_ConnectReq(HID_PSM_INTERRUPT, hh_cb.devices[dhandle].addr); in hidh_l2cif_config_ind()
505 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_config_ind()
526 hh_cb.devices[dhandle].state = HID_DEV_CONNECTED; in hidh_l2cif_config_ind()
527 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, in hidh_l2cif_config_ind()
552 if (dhandle < HID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_cfm()
564 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_config_cfm()
579 L2CA_ConnectReq(HID_PSM_INTERRUPT, hh_cb.devices[dhandle].addr); in hidh_l2cif_config_cfm()
585 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_config_cfm()
606 hh_cb.devices[dhandle].state = HID_DEV_CONNECTED; in hidh_l2cif_config_cfm()
607 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, in hidh_l2cif_config_cfm()
630 if (dhandle < HID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_ind()
650 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect_ind()
658 (!(hh_cb.devices[dhandle].attr_mask & HID_RECONN_INIT)) && in hidh_l2cif_disconnect_ind()
659 (hh_cb.devices[dhandle].attr_mask & HID_NORMALLY_CONNECTABLE)) { in hidh_l2cif_disconnect_ind()
660 hh_cb.devices[dhandle].conn_tries = 0; in hidh_l2cif_disconnect_ind()
662 alarm_set_on_mloop(hh_cb.devices[dhandle].conn.process_repage_timer, in hidh_l2cif_disconnect_ind()
665 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_disconnect_ind()
686 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_disconnect_ind()
708 if (dhandle < HID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_cfm()
729 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect_cfm()
731 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_l2cif_disconnect_cfm()
751 if (dhandle < HID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_cong_ind()
796 if (dhandle < HID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_data_ind()
824 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, in hidh_l2cif_data_ind()
834 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, in hidh_l2cif_data_ind()
845 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
848 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, in hidh_l2cif_data_ind()
853 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
856 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, in hidh_l2cif_data_ind()
878 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_snd_data()
889 if (!BTM_IsAclConnectionUp(hh_cb.devices[dhandle].addr, in hidh_conn_snd_data()
1001 tHID_HOST_DEV_CTB* p_dev = &hh_cb.devices[dhandle]; in hidh_conn_initiate()
1025 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_conn_initiate()
1049 if ((hh_cb.devices[xx].in_use) && in find_conn_by_cid()
1050 (hh_cb.devices[xx].conn.conn_state != HID_CONN_STATE_UNUSED) && in find_conn_by_cid()
1051 ((hh_cb.devices[xx].conn.ctrl_cid == cid) || in find_conn_by_cid()
1052 (hh_cb.devices[xx].conn.intr_cid == cid))) in find_conn_by_cid()
1074 tHID_HOST_DEV_CTB* p_dev = &hh_cb.devices[dhandle]; in hidh_conn_retry()