Lines Matching refs:conn
83 p_hcon = &hd_cb.device.conn; in hidd_check_config_done()
117 if (res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY) { in hidd_sec_check_complete()
118 p_dev->conn.disc_reason = HID_SUCCESS; in hidd_sec_check_complete()
119 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidd_sec_check_complete()
121 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidd_sec_check_complete()
123 L2CA_ConfigReq(p_dev->conn.ctrl_cid, &hd_cb.l2cap_cfg); in hidd_sec_check_complete()
127 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; in hidd_sec_check_complete()
128 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidd_sec_check_complete()
129 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidd_sec_check_complete()
150 if (p_dev->conn.conn_state != HID_CONN_STATE_SECURITY) { in hidd_sec_check_complete_orig()
152 p_dev->conn.conn_state); in hidd_sec_check_complete_orig()
158 p_dev->conn.disc_reason = HID_SUCCESS; in hidd_sec_check_complete_orig()
160 p_dev->conn.conn_state = HID_CONN_STATE_CONFIG; in hidd_sec_check_complete_orig()
161 L2CA_ConfigReq(p_dev->conn.ctrl_cid, &hd_cb.l2cap_cfg); in hidd_sec_check_complete_orig()
164 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; in hidd_sec_check_complete_orig()
195 p_hcon = &hd_cb.device.conn; in hidd_l2cif_connect_ind()
276 tHID_CONN* p_hcon = &hd_cb.device.conn; in hidd_l2cif_connect_cfm()
340 p_hcon = &hd_cb.device.conn; in hidd_l2cif_config_ind()
408 p_hcon = &hd_cb.device.conn; in hidd_l2cif_config_cfm()
489 p_hcon = &hd_cb.device.conn; in hidd_l2cif_disconnect_ind()
537 p_hcon = &hd_cb.device.conn; in hidd_l2cif_disconnect_cfm()
585 p_hcon = &hd_cb.device.conn; in hidd_l2cif_cong_ind()
623 p_hcon = &hd_cb.device.conn; in hidd_l2cif_data_ind()
816 if (p_dev->conn.conn_state != HID_CONN_STATE_UNUSED) { in hidd_conn_initiate()
821 p_dev->conn.ctrl_cid = 0; in hidd_conn_initiate()
822 p_dev->conn.intr_cid = 0; in hidd_conn_initiate()
823 p_dev->conn.disc_reason = HID_L2CAP_CONN_FAIL; in hidd_conn_initiate()
825 p_dev->conn.conn_flags = HID_CONN_FLAGS_IS_ORIG; in hidd_conn_initiate()
830 if ((p_dev->conn.ctrl_cid = L2CA_ConnectReq(HID_PSM_CONTROL, p_dev->addr)) == in hidd_conn_initiate()
836 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_CTRL; in hidd_conn_initiate()
862 p_hcon = &hd_cb.device.conn; in hidd_conn_disconnect()
905 p_hcon = &hd_cb.device.conn; in hidd_conn_send_data()
965 if (hd_cb.device.conn.conn_state == HID_CONN_STATE_UNUSED) { in hidd_conn_send_data()