Lines Matching refs:p_dev

115   tHID_DEV_DEV_CTB* p_dev = (tHID_DEV_DEV_CTB*)p_ref_data;  in hidd_sec_check_complete()  local
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()
148 tHID_DEV_DEV_CTB* p_dev = (tHID_DEV_DEV_CTB*)p_ref_data; in hidd_sec_check_complete_orig() local
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()
181 tHID_DEV_DEV_CTB* p_dev; in hidd_l2cif_connect_ind() local
186 p_dev = &hd_cb.device; in hidd_l2cif_connect_ind()
237 p_dev->in_use = TRUE; in hidd_l2cif_connect_ind()
238 p_dev->addr = bd_addr; in hidd_l2cif_connect_ind()
239 p_dev->state = HIDD_DEV_NO_CONN; in hidd_l2cif_connect_ind()
247 if (btm_sec_mx_access_request(p_dev->addr, HID_PSM_CONTROL, FALSE, in hidd_l2cif_connect_ind()
250 p_dev) == BTM_CMD_STARTED) { in hidd_l2cif_connect_ind()
275 tHID_DEV_DEV_CTB* p_dev = &hd_cb.device; in hidd_l2cif_connect_cfm() local
315 btm_sec_mx_access_request(p_dev->addr, HID_PSM_CONTROL, TRUE, in hidd_l2cif_connect_cfm()
317 &hidd_sec_check_complete_orig, p_dev); in hidd_l2cif_connect_cfm()
808 tHID_DEV_DEV_CTB* p_dev = &hd_cb.device; in hidd_conn_initiate() local
812 if (!p_dev->in_use) { in hidd_conn_initiate()
817 if (p_dev->conn.conn_state != HID_CONN_STATE_UNUSED) { in hidd_conn_initiate()
822 p_dev->conn.ctrl_cid = 0; in hidd_conn_initiate()
823 p_dev->conn.intr_cid = 0; in hidd_conn_initiate()
824 p_dev->conn.disc_reason = HID_L2CAP_CONN_FAIL; in hidd_conn_initiate()
826 p_dev->conn.conn_flags = HID_CONN_FLAGS_IS_ORIG; in hidd_conn_initiate()
828 BTM_SetOutService(p_dev->addr, BTM_SEC_SERVICE_HIDD_SEC_CTRL, HIDD_SEC_CHN); in hidd_conn_initiate()
831 if ((p_dev->conn.ctrl_cid = L2CA_ConnectReq(HID_PSM_CONTROL, p_dev->addr)) == in hidd_conn_initiate()
837 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_CTRL; in hidd_conn_initiate()