Lines Matching refs:conn

114         hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED;  in hidh_conn_reg()
131 tHID_CONN *p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect()
172 if( res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY ) in hidh_sec_check_complete_term()
174 …p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset disc_reason (from HID_ERR_… in hidh_sec_check_complete_term()
176 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidh_sec_check_complete_term()
179 …L2CA_ConnectRsp (p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, L2CAP_CONN_OK, L2CAP_CONN… in hidh_sec_check_complete_term()
182 L2CA_ConfigReq (p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_term()
188 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; /* Save reason for disconnecting */ in hidh_sec_check_complete_term()
189 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_sec_check_complete_term()
190 …L2CA_ConnectRsp (p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, L2CAP_CONN_SECURITY_BLOCK… in hidh_sec_check_complete_term()
221 p_hcon = &hh_cb.devices[i].conn; in hidh_l2cif_connect_ind()
329 if( res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY ) in hidh_sec_check_complete_orig()
332 …p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset disc_reason (from HID_ERR_… in hidh_sec_check_complete_orig()
335 p_dev->conn.conn_state = HID_CONN_STATE_CONFIG; in hidh_sec_check_complete_orig()
336 L2CA_ConfigReq (p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_orig()
337 … HIDH_TRACE_EVENT ("HID-Host Got Control conn cnf, sent cfg req, CID: 0x%x", p_dev->conn.ctrl_cid); in hidh_sec_check_complete_orig()
341 if( res != BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY ) in hidh_sec_check_complete_orig()
353 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; /* Save reason for disconnecting */ in hidh_sec_check_complete_orig()
381 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_connect_cfm()
460 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_ind()
545 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_cfm()
622 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_ind()
656 hh_cb.devices[dhandle].conn.timer_entry.param = (UINT32) dhandle; in hidh_l2cif_disconnect_ind()
657 …btu_start_timer (&(hh_cb.devices[dhandle].conn.timer_entry), BTU_TTYPE_HID_HOST_REPAGE_TO, HID_HOS… in hidh_l2cif_disconnect_ind()
702 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_cfm()
749 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_cong_ind()
795 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_data_ind()
838 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) ? in hidh_l2cif_data_ind()
844 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) ? in hidh_l2cif_data_ind()
868 tHID_CONN *p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_snd_data()
1012 if( p_dev->conn.conn_state != HID_CONN_STATE_UNUSED ) in hidh_conn_initiate()
1015 p_dev->conn.ctrl_cid = 0; in hidh_conn_initiate()
1016 p_dev->conn.intr_cid = 0; in hidh_conn_initiate()
1017 …p_dev->conn.disc_reason = HID_L2CAP_CONN_FAIL; /* Reset initial reason for CLOSE_EVT: Connection … in hidh_conn_initiate()
1020 p_dev->conn.conn_flags = HID_CONN_FLAGS_IS_ORIG; in hidh_conn_initiate()
1030 if ((p_dev->conn.ctrl_cid = L2CA_ConnectReq (HID_PSM_CONTROL, p_dev->addr)) == 0) in hidh_conn_initiate()
1039 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_CTRL; in hidh_conn_initiate()
1061 … if ((hh_cb.devices[xx].in_use) && (hh_cb.devices[xx].conn.conn_state != HID_CONN_STATE_UNUSED) in find_conn_by_cid()
1062 … && ((hh_cb.devices[xx].conn.ctrl_cid == cid) || (hh_cb.devices[xx].conn.intr_cid == cid))) in find_conn_by_cid()
1088 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_retry()
1089 p_dev->conn.timer_entry.param = (UINT32) dhandle; in hidh_conn_retry()
1091 btu_start_timer (&(p_dev->conn.timer_entry), BTU_TTYPE_HID_HOST_REPAGE_TO, HID_HOST_REPAGE_WIN); in hidh_conn_retry()
1093 hidh_proc_repage_timeout( &(p_dev->conn.timer_entry) ); in hidh_conn_retry()