Lines Matching refs:p_dev_rec

145     tBTM_SEC_DEV_REC *p_dev_rec;
198 p_dev_rec = btm_find_dev_by_handle (hci_handle);
201 if (p_dev_rec )
203 BTM_TRACE_DEBUG1 ("device_type=0x%x", p_dev_rec->device_type);
208 if (p_dev_rec
210 && p_dev_rec->device_type != BT_DEVICE_TYPE_BLE
221 if (p_dev_rec->features[yy])
223 memcpy (p->features, p_dev_rec->features, BD_FEATURES_LEN);
230 if (btsnd_hcic_rmt_ext_features (p_dev_rec->hci_handle, 1))
234 p_dev_rec->sm4 |= BTM_SM4_KNOWN;
243 if (p_dev_rec && p_dev_rec->device_type == BT_DEVICE_TYPE_BLE)
311 tBTM_SEC_DEV_REC *p_dev_rec=NULL;
371 p_dev_rec = btm_find_dev(bda);
372 if ( p_dev_rec)
374 BTM_TRACE_DEBUG1("before update p_dev_rec->sec_flags=0x%x", p_dev_rec->sec_flags);
378 p_dev_rec->sec_flags &= ~(BTM_SEC_ENCRYPTED | BTM_SEC_ROLE_SWITCHED);
379 if ( (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN) == 0)
382 p_dev_rec->sec_flags &= ~(BTM_SEC_AUTHENTICATED | BTM_SEC_LINK_KEY_AUTHED);
392 p_dev_rec->sec_flags &= ~(BTM_SEC_AUTHORIZED | BTM_SEC_AUTHENTICATED | BTM_SEC_ENCRYPTED | BTM_SEC_ROLE_SWITCHED);
394 BTM_TRACE_DEBUG1("after update p_dev_rec->sec_flags=0x%x", p_dev_rec->sec_flags);
556 tBTM_SEC_DEV_REC *p_dev_rec = NULL;
649 if (((p_dev_rec = btm_find_dev (remote_bd_addr)) != NULL)
650 && ((p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED) != 0)
672 if (p_dev_rec)
673 p_dev_rec->rs_disc_pending = BTM_SEC_RS_PENDING;
707 tBTM_SEC_DEV_REC *p_dev_rec = NULL;
757 else if (((p_dev_rec = btm_find_dev (remote_bd_addr)) != NULL)
758 && ((p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED) != 0) && !BTM_EPR_AVAILABLE(p))
870 tBTM_SEC_DEV_REC *p_dev_rec;
904 if ((p_dev_rec = btm_find_dev (p->remote_addr)) != NULL)
905 p_dev_rec->rs_disc_pending = BTM_SEC_RS_PENDING;
934 if ((p_dev_rec = btm_find_dev (p->remote_addr)) != NULL)
936 if (p_dev_rec->rs_disc_pending == BTM_SEC_DISC_PENDING)
939 btsnd_hcic_disconnect(p_dev_rec->hci_handle, HCI_ERR_PEER_USER);
942 (UINT32)p_dev_rec, p_dev_rec->rs_disc_pending);
943 p_dev_rec->rs_disc_pending = BTM_SEC_RS_NOT_PENDING; /* reset flag */
1203 tBTM_SEC_DEV_REC *p_dev_rec;
1218 p_dev_rec = btm_find_dev_by_handle (handle);
1219 if (!p_dev_rec)
1222 p_dev_rec = btm_find_or_alloc_dev (p_acl_cb->remote_addr);
1225 memcpy (p_dev_rec->features, p_acl_cb->features, BD_FEATURES_LEN);
1238 req_pend = (p_dev_rec->sm4 & BTM_SM4_REQ_PEND);
1239 p_dev_rec->sm4 = BTM_SM4_KNOWN;
1242 l2cu_resubmit_pending_sec_req (p_dev_rec->bd_addr);
1266 tBTM_SEC_DEV_REC *p_dev_rec;
1285 p_dev_rec = btm_find_dev_by_handle (handle);
1286 if (!p_dev_rec)
1287 p_dev_rec = btm_find_or_alloc_dev (p_acl_cb->remote_addr);
1289 req_pend = (p_dev_rec->sm4 & BTM_SM4_REQ_PEND);
1298 p_dev_rec->sm4 = BTM_SM4_TRUE;
1303 page_num, max_page, *p, p_dev_rec->sm4, req_pend);
1305 if (!BTM_SEC_IS_SM4(p_dev_rec->sm4))
1307 p_dev_rec->sm4 = BTM_SM4_KNOWN;
1311 l2cu_resubmit_pending_sec_req (p_dev_rec->bd_addr);
1974 tBTM_SEC_DEV_REC *p_dev_rec;
2060 if ((p_dev_rec = btm_find_dev (p_bda)) != NULL)
2062 if (p_dev_rec->rs_disc_pending == BTM_SEC_DISC_PENDING)
2065 btsnd_hcic_disconnect(p_dev_rec->hci_handle, HCI_ERR_PEER_USER);
2067 BTM_TRACE_ERROR2("tBTM_SEC_DEV:0x%x rs_disc_pending=%d", (UINT32)p_dev_rec, p_dev_rec->rs_disc_pending);
2068 p_dev_rec->rs_disc_pending = BTM_SEC_RS_NOT_PENDING; /* reset flag */
2824 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr);
2827 if (p_dev_rec && (p_dev_rec->rs_disc_pending == BTM_SEC_RS_PENDING))
2829 p_dev_rec->rs_disc_pending = BTM_SEC_DISC_PENDING;
2876 void btm_cont_rswitch_or_chglinkkey (tACL_CONN *p, tBTM_SEC_DEV_REC *p_dev_rec,
2889 if (p_dev_rec != NULL && ((p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED) != 0)
2918 if (p_dev_rec)
2919 p_dev_rec->rs_disc_pending = BTM_SEC_RS_PENDING;
2959 tBTM_SEC_DEV_REC *p_dev_rec;
2973 p_dev_rec = btm_find_or_alloc_dev (bda);
2975 memcpy (btm_cb.connecting_bda, p_dev_rec->bd_addr, BD_ADDR_LEN);
2976 memcpy (btm_cb.connecting_dc, p_dev_rec->dev_class, DEV_CLASS_LEN);
3024 tBTM_SEC_DEV_REC *p_dev_rec;
3048 p_dev_rec = btm_find_or_alloc_dev (bda);
3049 memcpy (btm_cb.connecting_bda, p_dev_rec->bd_addr, BD_ADDR_LEN);
3050 memcpy (btm_cb.connecting_dc, p_dev_rec->dev_class, DEV_CLASS_LEN);