Lines Matching refs:hh_cb

96     memset(&hh_cb.l2cap_cfg, 0, sizeof(tL2CAP_CFG_INFO));  in hidh_conn_reg()
98 hh_cb.l2cap_cfg.mtu_present = TRUE; in hidh_conn_reg()
99 hh_cb.l2cap_cfg.mtu = HID_HOST_MTU; in hidh_conn_reg()
100 hh_cb.l2cap_cfg.flush_to_present = TRUE; in hidh_conn_reg()
101 hh_cb.l2cap_cfg.flush_to = HID_HOST_FLUSH_TO; in hidh_conn_reg()
118 hh_cb.devices[xx].in_use = FALSE ; in hidh_conn_reg()
119 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg()
136 tHID_CONN *p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect()
146 L2CA_SetIdleTimeoutByBdAddr(hh_cb.devices[dhandle].addr, 0, BT_TRANSPORT_BR_EDR); in hidh_conn_disconnect()
187 L2CA_ConfigReq (p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_term()
226 p_hcon = &hh_cb.devices[i].conn; in hidh_l2cif_connect_ind()
227 p_dev = &hh_cb.devices[i]; in hidh_l2cif_connect_ind()
292 L2CA_ConfigReq (l2cap_cid, &hh_cb.l2cap_cfg); in hidh_l2cif_connect_ind()
319 device = &hh_cb.devices[dhandle]; in hidh_try_repage()
322 hh_cb.callback(dhandle, device->addr, HID_HDEV_EVT_RETRYING, in hidh_try_repage()
345 dhandle = (PTR_TO_UINT(p_dev) - PTR_TO_UINT(&(hh_cb.devices[0])))/ sizeof(tHID_HOST_DEV_CTB); in hidh_sec_check_complete_orig()
353 L2CA_ConfigReq (p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_orig()
397 p_dev = &hh_cb.devices[dhandle]; in hidh_l2cif_connect_cfm()
398 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_connect_cfm()
421 if( (hh_cb.devices[dhandle].conn_tries <= HID_HOST_MAX_CONN_RETRY) && in hidh_l2cif_connect_cfm()
431hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_connect_cfm()
451 L2CA_ConfigReq (l2cap_cid, &hh_cb.l2cap_cfg); in hidh_l2cif_connect_cfm()
477 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_ind()
509 … if ((p_hcon->intr_cid = L2CA_ConnectReq (HID_PSM_INTERRUPT, hh_cb.devices[dhandle].addr)) == 0) in hidh_l2cif_config_ind()
515hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_ind()
536 hh_cb.devices[dhandle].state = HID_DEV_CONNECTED; in hidh_l2cif_config_ind()
537 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_ind()
562 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_cfm()
575 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
587 … if ((p_hcon->intr_cid = L2CA_ConnectReq (HID_PSM_INTERRUPT, hh_cb.devices[dhandle].addr)) == 0) in hidh_l2cif_config_cfm()
593hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
614 hh_cb.devices[dhandle].state = HID_DEV_CONNECTED; in hidh_l2cif_config_cfm()
615 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_cfm()
639 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_ind()
661 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect_ind()
669 (!(hh_cb.devices[dhandle].attr_mask & HID_RECONN_INIT)) && in hidh_l2cif_disconnect_ind()
670 (hh_cb.devices[dhandle].attr_mask & HID_NORMALLY_CONNECTABLE)) in hidh_l2cif_disconnect_ind()
672 hh_cb.devices[dhandle].conn_tries = 0; in hidh_l2cif_disconnect_ind()
674 alarm_set_on_queue(hh_cb.devices[dhandle].conn.process_repage_timer, in hidh_l2cif_disconnect_ind()
677hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, disc_res, NULL); in hidh_l2cif_disconnect_ind()
698hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, hid_close_evt_reason, N… in hidh_l2cif_disconnect_ind()
721 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_cfm()
745 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect_cfm()
747hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, p_hcon->disc_reason, NUL… in hidh_l2cif_disconnect_cfm()
768 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_cong_ind()
814 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_data_ind()
836 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_HANDSHAKE, param, NULL); in hidh_l2cif_data_ind()
846 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_VC_UNPLUG, 0, NULL); in hidh_l2cif_data_ind()
857 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) ? in hidh_l2cif_data_ind()
859 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, p_msg); in hidh_l2cif_data_ind()
863 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) ? in hidh_l2cif_data_ind()
865 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, p_msg); in hidh_l2cif_data_ind()
886 tHID_CONN *p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_snd_data()
897 if (!BTM_IsAclConnectionUp(hh_cb.devices[dhandle].addr, BT_TRANSPORT_BR_EDR)) in hidh_conn_snd_data()
1024 tHID_HOST_DEV_CTB *p_dev = &hh_cb.devices[dhandle]; in hidh_conn_initiate()
1047 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_conn_initiate()
1075 … if ((hh_cb.devices[xx].in_use) && (hh_cb.devices[xx].conn.conn_state != HID_CONN_STATE_UNUSED) in find_conn_by_cid()
1076 … && ((hh_cb.devices[xx].conn.ctrl_cid == cid) || (hh_cb.devices[xx].conn.intr_cid == cid))) in find_conn_by_cid()
1100 tHID_HOST_DEV_CTB *p_dev = &hh_cb.devices[dhandle]; in hidh_conn_retry()