• Home
  • Raw
  • Download

Lines Matching refs:dhandle

47 static void hidh_conn_retry (UINT8 dhandle);
129 tHID_STATUS hidh_conn_disconnect (UINT8 dhandle) in hidh_conn_disconnect() argument
131 tHID_CONN *p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect()
141 L2CA_SetIdleTimeoutByBdAddr(hh_cb.devices[dhandle].addr, 0); in hidh_conn_disconnect()
323 UINT8 dhandle; in hidh_sec_check_complete_orig() local
331 dhandle = ((UINT32)p_dev - (UINT32)&(hh_cb.devices[0]))/ sizeof(tHID_HOST_DEV_CTB); in hidh_sec_check_complete_orig()
351 hidh_conn_retry (dhandle); in hidh_sec_check_complete_orig()
359 hidh_conn_disconnect(dhandle); in hidh_sec_check_complete_orig()
377 UINT8 dhandle; in hidh_l2cif_connect_cfm() local
383 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_connect_cfm()
385 p_dev = &hh_cb.devices[dhandle]; in hidh_l2cif_connect_cfm()
386 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_connect_cfm()
406 hidh_conn_disconnect(dhandle); in hidh_l2cif_connect_cfm()
409 if( (hh_cb.devices[dhandle].conn_tries <= HID_HOST_MAX_CONN_RETRY) && in hidh_l2cif_connect_cfm()
413 hidh_conn_retry(dhandle); in hidh_l2cif_connect_cfm()
419 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_connect_cfm()
458 UINT8 dhandle; in hidh_l2cif_config_ind() local
464 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_config_ind()
466 p_dev = &hh_cb.devices[dhandle]; in hidh_l2cif_config_ind()
467 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_ind()
499 … if ((p_hcon->intr_cid = L2CA_ConnectReq (HID_PSM_INTERRUPT, hh_cb.devices[dhandle].addr)) == 0) in hidh_l2cif_config_ind()
504 hidh_conn_disconnect (dhandle); in hidh_l2cif_config_ind()
505 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; 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, NULL ) ; in hidh_l2cif_config_ind()
544 UINT8 dhandle; in hidh_l2cif_config_cfm() local
551 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_config_cfm()
552 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_cfm()
563 hidh_conn_disconnect (dhandle); in hidh_l2cif_config_cfm()
565 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
577 … if ((p_hcon->intr_cid = L2CA_ConnectReq (HID_PSM_INTERRUPT, hh_cb.devices[dhandle].addr)) == 0) in hidh_l2cif_config_cfm()
582 hidh_conn_disconnect (dhandle); in hidh_l2cif_config_cfm()
583 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, reason, NULL ) ; in hidh_l2cif_config_cfm()
604 hh_cb.devices[dhandle].state = HID_DEV_CONNECTED; in hidh_l2cif_config_cfm()
605 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_OPEN, 0, NULL ) ; in hidh_l2cif_config_cfm()
622 UINT8 dhandle; in hidh_l2cif_disconnect_ind() local
628 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_disconnect_ind()
629 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_ind()
651 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect_ind()
659 (!(hh_cb.devices[dhandle].attr_mask & HID_RECONN_INIT)) && in hidh_l2cif_disconnect_ind()
660 (hh_cb.devices[dhandle].attr_mask & HID_NORMALLY_CONNECTABLE)) in hidh_l2cif_disconnect_ind()
662 hh_cb.devices[dhandle].conn_tries = 0; in hidh_l2cif_disconnect_ind()
663 hh_cb.devices[dhandle].conn.timer_entry.param = (UINT32) dhandle; in hidh_l2cif_disconnect_ind()
664 …btu_start_timer (&(hh_cb.devices[dhandle].conn.timer_entry), BTU_TTYPE_HID_HOST_REPAGE_TO, HID_HOS… in hidh_l2cif_disconnect_ind()
665 … hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, disc_res, NULL); in hidh_l2cif_disconnect_ind()
686 …hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, hid_close_evt_reason, N… in hidh_l2cif_disconnect_ind()
703 UINT8 dhandle; in hidh_l2cif_disconnect_cfm() local
708 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_disconnect_cfm()
709 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_cfm()
733 hh_cb.devices[dhandle].state = HID_DEV_NO_CONN; in hidh_l2cif_disconnect_cfm()
735 …hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, p_hcon->disc_reason, NUL… in hidh_l2cif_disconnect_cfm()
751 UINT8 dhandle; in hidh_l2cif_cong_ind() local
755 if( (dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES ) in hidh_l2cif_cong_ind()
756 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_cong_ind()
795 UINT8 dhandle; in hidh_l2cif_data_ind() local
801 if ((dhandle = find_conn_by_cid(l2cap_cid)) < HID_HOST_MAX_DEVICES) in hidh_l2cif_data_ind()
802 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_data_ind()
824 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_HANDSHAKE, param, NULL); in hidh_l2cif_data_ind()
832 hidh_conn_disconnect( dhandle ) ; in hidh_l2cif_data_ind()
834 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_VC_UNPLUG, 0, NULL); in hidh_l2cif_data_ind()
845 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) ? in hidh_l2cif_data_ind()
847 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, p_msg); in hidh_l2cif_data_ind()
851 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) ? in hidh_l2cif_data_ind()
853 hh_cb.callback(dhandle, hh_cb.devices[dhandle].addr, evt, rep_type, p_msg); in hidh_l2cif_data_ind()
872 tHID_STATUS hidh_conn_snd_data (UINT8 dhandle, UINT8 trans_type, UINT8 param, in hidh_conn_snd_data() argument
875 tHID_CONN *p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_snd_data()
886 if (!BTM_IsAclConnectionUp(hh_cb.devices[dhandle].addr, BT_TRANSPORT_BR_EDR)) in hidh_conn_snd_data()
1012 tHID_STATUS hidh_conn_initiate (UINT8 dhandle) in hidh_conn_initiate() argument
1017 tHID_HOST_DEV_CTB *p_dev = &hh_cb.devices[dhandle]; in hidh_conn_initiate()
1040 hh_cb.callback( dhandle, hh_cb.devices[dhandle].addr, HID_HDEV_EVT_CLOSE, in hidh_conn_initiate()
1091 static void hidh_conn_retry( UINT8 dhandle ) in hidh_conn_retry() argument
1093 tHID_HOST_DEV_CTB *p_dev = &hh_cb.devices[dhandle]; in hidh_conn_retry()
1096 p_dev->conn.timer_entry.param = (UINT32) dhandle; in hidh_conn_retry()