Home | History | Annotate | Download | only in hid

Lines Matching refs:hh_cb

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