Lines Matching refs:conn
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()
168 if (res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY) { in hidh_sec_check_complete_term()
169 p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset in hidh_sec_check_complete_term()
173 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidh_sec_check_complete_term()
176 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidh_sec_check_complete_term()
180 L2CA_ConfigReq(p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_term()
185 p_dev->conn.disc_reason = in hidh_sec_check_complete_term()
187 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_sec_check_complete_term()
188 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidh_sec_check_complete_term()
221 p_hcon = &hh_cb.devices[i].conn; in hidh_l2cif_connect_ind()
337 if (res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY) { in hidh_sec_check_complete_orig()
339 p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset in hidh_sec_check_complete_orig()
344 p_dev->conn.conn_state = HID_CONN_STATE_CONFIG; in hidh_sec_check_complete_orig()
345 L2CA_ConfigReq(p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_orig()
347 p_dev->conn.ctrl_cid); in hidh_sec_check_complete_orig()
350 if (res != BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY) { in hidh_sec_check_complete_orig()
359 p_dev->conn.disc_reason = in hidh_sec_check_complete_orig()
387 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_connect_cfm()
465 p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_ind()
552 if (dhandle < HID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_config_cfm()
630 if (dhandle < HID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; in hidh_l2cif_disconnect_ind()
662 alarm_set_on_mloop(hh_cb.devices[dhandle].conn.process_repage_timer, in hidh_l2cif_disconnect_ind()
708 if (dhandle < HID_HOST_MAX_DEVICES) p_hcon = &hh_cb.devices[dhandle].conn; 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()
845 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
853 evt = (hh_cb.devices[dhandle].conn.intr_cid == l2cap_cid) in hidh_l2cif_data_ind()
878 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_snd_data()
1003 if (p_dev->conn.conn_state != HID_CONN_STATE_UNUSED) in hidh_conn_initiate()
1006 p_dev->conn.ctrl_cid = 0; in hidh_conn_initiate()
1007 p_dev->conn.intr_cid = 0; in hidh_conn_initiate()
1008 p_dev->conn.disc_reason = in hidh_conn_initiate()
1013 p_dev->conn.conn_flags = HID_CONN_FLAGS_IS_ORIG; in hidh_conn_initiate()
1022 p_dev->conn.ctrl_cid = L2CA_ConnectReq(HID_PSM_CONTROL, p_dev->addr); in hidh_conn_initiate()
1023 if (p_dev->conn.ctrl_cid == 0) { in hidh_conn_initiate()
1030 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_CTRL; in hidh_conn_initiate()
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()
1076 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_retry()
1079 alarm_set_on_mloop(p_dev->conn.process_repage_timer, interval_ms, in hidh_conn_retry()