Lines Matching refs:p_dev
166 tHID_HOST_DEV_CTB* p_dev = (tHID_HOST_DEV_CTB*)p_ref_data; in hidh_sec_check_complete_term() local
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()
210 tHID_HOST_DEV_CTB* p_dev; in hidh_l2cif_connect_ind() local
222 p_dev = &hh_cb.devices[i]; in hidh_l2cif_connect_ind()
266 p_dev->addr, HID_PSM_CONTROL, false, BTM_SEC_PROTO_HID, in hidh_l2cif_connect_ind()
267 (p_dev->attr_mask & HID_SEC_REQUIRED) ? HID_SEC_CHN : HID_NOSEC_CHN, in hidh_l2cif_connect_ind()
268 &hidh_sec_check_complete_term, p_dev) == BTM_CMD_STARTED) { in hidh_l2cif_connect_ind()
330 tHID_HOST_DEV_CTB* p_dev = (tHID_HOST_DEV_CTB*)p_ref_data; in hidh_sec_check_complete_orig() local
335 dhandle = (PTR_TO_UINT(p_dev) - PTR_TO_UINT(&(hh_cb.devices[0]))) / in hidh_sec_check_complete_orig()
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()
353 if (p_dev->conn_tries <= HID_HOST_MAX_CONN_RETRY) { in hidh_sec_check_complete_orig()
359 p_dev->conn.disc_reason = in hidh_sec_check_complete_orig()
380 tHID_HOST_DEV_CTB* p_dev = NULL; in hidh_l2cif_connect_cfm() local
386 p_dev = &hh_cb.devices[dhandle]; in hidh_l2cif_connect_cfm()
433 p_dev->addr, HID_PSM_CONTROL, true, BTM_SEC_PROTO_HID, in hidh_l2cif_connect_cfm()
434 (p_dev->attr_mask & HID_SEC_REQUIRED) ? HID_SEC_CHN : HID_NOSEC_CHN, in hidh_l2cif_connect_cfm()
435 &hidh_sec_check_complete_orig, p_dev); in hidh_l2cif_connect_cfm()
1001 tHID_HOST_DEV_CTB* p_dev = &hh_cb.devices[dhandle]; in hidh_conn_initiate() local
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()
1015 if (p_dev->attr_mask & HID_SEC_REQUIRED) { in hidh_conn_initiate()
1019 BTM_SetOutService(p_dev->addr, service_id, mx_chan_id); 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()
1074 tHID_HOST_DEV_CTB* p_dev = &hh_cb.devices[dhandle]; in hidh_conn_retry() local
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()