Searched refs:p_dev_rec (Results 1 - 15 of 15) sorted by relevance

/external/bluetooth/bluedroid/stack/btm/
H A Dbtm_dev.c65 tBTM_SEC_DEV_REC *p_dev_rec; local
70 p_dev_rec = btm_find_dev (bd_addr);
71 if (!p_dev_rec)
79 p_dev_rec = &btm_cb.sec_dev_rec[i];
82 memset (p_dev_rec, 0, sizeof (tBTM_SEC_DEV_REC));
83 p_dev_rec->sec_flags = BTM_SEC_IN_USE;
84 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN);
85 p_dev_rec->hci_handle = BTM_GetHCIConnHandle (bd_addr, BT_TRANSPORT_BR_EDR);
90 memset(&p_dev_rec->conn_params, 0xff, sizeof(tBTM_LE_CONN_PRAMS));
96 if (!p_dev_rec)
176 tBTM_SEC_DEV_REC *p_dev_rec; local
231 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local
338 btm_sec_free_dev(tBTM_SEC_DEV_REC *p_dev_rec) argument
364 tBTM_SEC_DEV_REC *p_dev_rec; local
416 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local
444 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local
471 tBTM_SEC_DEV_REC *p_dev_rec; local
495 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local
[all...]
H A Dbtm_sec.c58 static tBTM_STATUS btm_sec_execute_procedure (tBTM_SEC_DEV_REC *p_dev_rec);
59 static BOOLEAN btm_sec_start_get_name (tBTM_SEC_DEV_REC *p_dev_rec);
60 static BOOLEAN btm_sec_start_authentication (tBTM_SEC_DEV_REC *p_dev_rec);
61 static BOOLEAN btm_sec_start_encryption (tBTM_SEC_DEV_REC *p_dev_rec);
65 static tBTM_STATUS btm_sec_dd_create_conn (tBTM_SEC_DEV_REC *p_dev_rec);
77 static void btm_send_link_key_notif (tBTM_SEC_DEV_REC *p_dev_rec);
78 static BOOLEAN btm_sec_check_prefetch_pin (tBTM_SEC_DEV_REC *p_dev_rec);
80 static UINT8 btm_sec_start_authorization (tBTM_SEC_DEV_REC *p_dev_rec);
83 static tBTM_STATUS btm_sec_send_hci_disconnect (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 reason, UINT16 conn_handle);
84 UINT8 btm_sec_start_role_switch (tBTM_SEC_DEV_REC *p_dev_rec);
119 btm_dev_authenticated(tBTM_SEC_DEV_REC *p_dev_rec) argument
137 btm_dev_encrypted(tBTM_SEC_DEV_REC *p_dev_rec) argument
155 btm_dev_authorized(tBTM_SEC_DEV_REC *p_dev_rec) argument
173 btm_serv_trusted(tBTM_SEC_DEV_REC *p_dev_rec, tBTM_SEC_SERV_REC *p_serv_rec) argument
348 tBTM_SEC_DEV_REC *p_dev_rec; local
371 tBTM_SEC_DEV_REC *p_dev_rec; local
907 tBTM_SEC_DEV_REC *p_dev_rec; local
980 tBTM_SEC_DEV_REC *p_dev_rec; local
1101 tBTM_SEC_DEV_REC *p_dev_rec; local
1164 tBTM_SEC_DEV_REC *p_dev_rec; local
1398 tBTM_SEC_DEV_REC *p_dev_rec; local
1519 tBTM_SEC_DEV_REC *p_dev_rec; local
1561 tBTM_SEC_DEV_REC *p_dev_rec; local
1645 btm_sec_send_hci_disconnect(tBTM_SEC_DEV_REC *p_dev_rec, UINT8 reason, UINT16 conn_handle) argument
1694 tBTM_SEC_DEV_REC *p_dev_rec; local
1742 tBTM_SEC_DEV_REC *p_dev_rec; local
2089 tBTM_SEC_DEV_REC *p_dev_rec; local
2125 btm_sec_is_upgrade_possible(tBTM_SEC_DEV_REC *p_dev_rec, BOOLEAN is_originator) argument
2172 btm_sec_check_upgrade(tBTM_SEC_DEV_REC *p_dev_rec, BOOLEAN is_originator) argument
2232 tBTM_SEC_DEV_REC *p_dev_rec; local
2558 tBTM_SEC_DEV_REC *p_dev_rec; local
2679 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bda); local
2771 tBTM_SEC_DEV_REC *p_dev_rec; local
2986 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
3012 btm_sec_dd_create_conn(tBTM_SEC_DEV_REC *p_dev_rec) argument
3064 tBTM_SEC_DEV_REC *p_dev_rec; local
3326 tBTM_SEC_DEV_REC *p_dev_rec; local
3362 tBTM_SEC_DEV_REC *p_dev_rec; local
3509 tBTM_SEC_DEV_REC *p_dev_rec; local
3578 tBTM_SEC_DEV_REC *p_dev_rec; local
3742 tBTM_SEC_DEV_REC *p_dev_rec; local
3824 tBTM_SEC_DEV_REC *p_dev_rec; local
3898 tBTM_SEC_DEV_REC *p_dev_rec; local
3941 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local
4118 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local
4147 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local
4248 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (bda); local
4278 tBTM_SEC_DEV_REC *p_dev_rec = btm_cb.p_collided_dev_rec; local
4309 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bda); local
4612 tBTM_SEC_DEV_REC *p_dev_rec = (tBTM_SEC_DEV_REC *)p_ref_data; local
4653 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local
4687 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local
4789 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (p_bda); local
4876 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (p_bda); local
4931 tBTM_SEC_DEV_REC *p_dev_rec; local
5057 tBTM_SEC_DEV_REC *p_dev_rec; local
5234 tBTM_SEC_DEV_REC *p_dev_rec; local
5268 btm_sec_execute_procedure(tBTM_SEC_DEV_REC *p_dev_rec) argument
5376 btm_sec_start_get_name(tBTM_SEC_DEV_REC *p_dev_rec) argument
5403 btm_sec_start_authentication(tBTM_SEC_DEV_REC *p_dev_rec) argument
5419 btm_sec_start_encryption(tBTM_SEC_DEV_REC *p_dev_rec) argument
5438 btm_sec_start_authorization(tBTM_SEC_DEV_REC *p_dev_rec) argument
5672 btm_send_link_key_notif(tBTM_SEC_DEV_REC *p_dev_rec) argument
5694 tBTM_SEC_DEV_REC *p_dev_rec; local
5746 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local
5770 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local
5884 btm_sec_dev_rec_cback_event(tBTM_SEC_DEV_REC *p_dev_rec, UINT8 res, BOOLEAN is_le_transport) argument
5936 btm_sec_check_prefetch_pin(tBTM_SEC_DEV_REC *p_dev_rec) argument
5995 btm_sec_clear_ble_keys(tBTM_SEC_DEV_REC *p_dev_rec) argument
6019 tBTM_SEC_DEV_REC *p_dev_rec= btm_find_dev (bda); local
6045 tBTM_SEC_DEV_REC *p_dev_rec= btm_find_dev (bda); local
6072 tBTM_SEC_DEV_REC *p_dev_rec; local
[all...]
H A Dbtm_ble_addr.c219 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local
225 p_dev_rec = &btm_cb.sec_dev_rec[p_mgnt_cb->index];
230 (* p_mgnt_cb->p_resolve_cback)(p_dev_rec, p_mgnt_cb->p);
278 tBTM_SEC_DEV_REC *p_dev_rec; local
292 p_dev_rec = &btm_cb.sec_dev_rec[rec_index];
294 BTM_TRACE_DEBUG("sec_flags = %02x device_type = %d", p_dev_rec->sec_flags, p_dev_rec->device_type);
296 if ((p_dev_rec->device_type & BT_DEVICE_TYPE_BLE) &&
297 (p_dev_rec->ble.key_type & BTM_LE_KEY_PID))
300 SMP_Encrypt(p_dev_rec
368 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local
393 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local
423 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_public_static_addr(bd_addr); local
459 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (random_pseudo); local
[all...]
H A Dbtm_ble.c71 tBTM_SEC_DEV_REC *p_dev_rec; local
76 p_dev_rec = btm_find_dev (bd_addr);
78 if (!p_dev_rec)
89 p_dev_rec = &btm_cb.sec_dev_rec[i];
92 memset (p_dev_rec, 0, sizeof (tBTM_SEC_DEV_REC));
93 p_dev_rec->sec_flags = BTM_SEC_IN_USE;
94 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN);
95 p_dev_rec->hci_handle = BTM_GetHCIConnHandle (bd_addr, BT_TRANSPORT_BR_EDR);
96 p_dev_rec->ble_hci_handle = BTM_GetHCIConnHandle (bd_addr, BT_TRANSPORT_LE);
99 p_dev_rec
161 tBTM_SEC_DEV_REC *p_dev_rec; local
366 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev(pseudo_addr); local
416 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
447 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
530 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
594 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (remote_bda); local
791 tBTM_SEC_DEV_REC *p_dev_rec; local
820 tBTM_SEC_DEV_REC *p_dev_rec; local
842 tBTM_SEC_DEV_REC *p_dev_rec; local
1052 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
1211 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local
1296 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
1355 tBTM_SEC_DEV_REC *p_dev_rec; local
1433 btm_ble_io_capabilities_req(tBTM_SEC_DEV_REC *p_dev_rec, tBTM_LE_IO_REQ *p_data) argument
1567 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bda); local
1731 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
[all...]
H A Dbtm_acl.c45 static void btm_process_remote_ext_features_page (tACL_CONN *p_acl_cb, tBTM_SEC_DEV_REC *p_dev_rec,
155 BOOLEAN btm_ble_get_acl_remote_addr(tBTM_SEC_DEV_REC *p_dev_rec, BD_ADDR conn_addr, argument
161 if (p_dev_rec == NULL)
167 switch (p_dev_rec->ble.active_addr_type)
170 memcpy(conn_addr, p_dev_rec->bd_addr, BD_ADDR_LEN);
171 * p_addr_type = p_dev_rec->ble.ble_addr_type;
175 memcpy(conn_addr, p_dev_rec->ble.cur_rand_addr, BD_ADDR_LEN);
180 memcpy(conn_addr, p_dev_rec->ble.static_addr, BD_ADDR_LEN);
181 * p_addr_type = p_dev_rec->ble.static_addr_type;
185 BTM_TRACE_ERROR("Unknown active address: %d", p_dev_rec
212 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local
395 tBTM_SEC_DEV_REC *p_dev_rec=NULL; local
634 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local
783 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local
940 tBTM_SEC_DEV_REC *p_dev_rec; local
1301 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local
1334 btm_process_remote_ext_features_page(tACL_CONN *p_acl_cb, tBTM_SEC_DEV_REC *p_dev_rec, UINT8 page_idx) argument
2303 tBTM_SEC_DEV_REC *p_dev_rec; local
3225 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
3279 btm_cont_rswitch_or_chglinkkey(tACL_CONN *p, tBTM_SEC_DEV_REC *p_dev_rec, UINT8 hci_status) argument
3362 tBTM_SEC_DEV_REC *p_dev_rec; local
3427 tBTM_SEC_DEV_REC *p_dev_rec; local
[all...]
H A Dbtm_ble_bgconn.c72 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
78 if (p_dev_rec != NULL &&
79 p_dev_rec->device_type & BT_DEVICE_TYPE_BLE)
84 if (p_dev_rec->ble.ble_addr_type == BLE_ADDR_PUBLIC || !BTM_BLE_IS_RESOLVE_BDA(bd_addr))
88 btm_ble_vendor_irk_list_load_dev(p_dev_rec);
90 started = btsnd_hcic_ble_add_white_list (p_dev_rec->ble.ble_addr_type, bd_addr);
92 if (memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) != 0 &&
93 memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0)
95 started = btsnd_hcic_ble_add_white_list (p_dev_rec->ble.static_addr_type,
96 p_dev_rec
[all...]
H A Dbtm_int.h1000 tBTM_SEC_DEV_REC *p_dev_rec,
1119 extern void btm_sec_free_dev (tBTM_SEC_DEV_REC *p_dev_rec);
1159 extern void btm_sec_dev_rec_cback_event (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 res, BOOLEAN is_le_trasnport);
1162 extern void btm_sec_clear_ble_keys (tBTM_SEC_DEV_REC *p_dev_rec);
/external/bluetooth/bluedroid/stack/l2cap/
H A Dl2c_ble.c289 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (bda); local
334 if ( (p_dev_rec->conn_params.min_conn_int >= BTM_BLE_CONN_INT_MIN ) &&
335 (p_dev_rec->conn_params.min_conn_int <= BTM_BLE_CONN_INT_MAX ) &&
336 (p_dev_rec->conn_params.max_conn_int >= BTM_BLE_CONN_INT_MIN ) &&
337 (p_dev_rec->conn_params.max_conn_int <= BTM_BLE_CONN_INT_MAX ) &&
338 (p_dev_rec->conn_params.slave_latency <= BTM_BLE_CONN_LATENCY_MAX ) &&
339 (p_dev_rec->conn_params.supervision_tout >= BTM_BLE_CONN_SUP_TOUT_MIN) &&
340 (p_dev_rec->conn_params.supervision_tout <= BTM_BLE_CONN_SUP_TOUT_MAX) &&
341 ((conn_interval < p_dev_rec->conn_params.min_conn_int &&
342 p_dev_rec
382 tBTM_SEC_DEV_REC *p_dev_rec; local
475 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev(p_lcb->remote_bd_addr); local
648 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (p_lcb->remote_bd_addr); local
[all...]
H A Dl2c_utils.c2332 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_lcb->remote_bd_addr); local
2374 clock_offset = (p_dev_rec) ? p_dev_rec->clock_offset : 0;
/external/bluetooth/bluedroid/vnd/ble/
H A Dvendor_ble.c385 tBTM_STATUS btm_ble_remove_irk_entry(tBTM_SEC_DEV_REC *p_dev_rec) argument
399 UINT8_TO_STREAM(p, p_dev_rec->ble.static_addr_type);
400 BDADDR_TO_STREAM(p, p_dev_rec->ble.static_addr);
408 btm_ble_vendor_enq_irk_pending(p_dev_rec->ble.static_addr, p_dev_rec->bd_addr, FALSE);
508 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local
514 for (i = 0; i < BTM_SEC_MAX_DEVICE_RECORDS; i ++, p_dev_rec ++)
516 if (p_dev_rec->sec_flags & BTM_SEC_IN_USE)
518 if (btm_ble_vendor_irk_list_load_dev(p_dev_rec))
539 BOOLEAN btm_ble_vendor_irk_list_load_dev(tBTM_SEC_DEV_REC *p_dev_rec) argument
608 btm_ble_vendor_irk_list_remove_dev(tBTM_SEC_DEV_REC *p_dev_rec) argument
[all...]
/external/bluetooth/bluedroid/vnd/include/
H A Dvendor_ble.h117 extern BOOLEAN btm_ble_vendor_irk_list_load_dev(tBTM_SEC_DEV_REC *p_dev_rec);
118 extern void btm_ble_vendor_irk_list_remove_dev(tBTM_SEC_DEV_REC *p_dev_rec);
/external/bluetooth/bluedroid/stack/smp/
H A Dsmp_api.c231 tBTM_SEC_DEV_REC *p_dev_rec; local
249 if ((p_dev_rec = btm_find_dev (bd_addr)) == NULL)
H A Dsmp_act.c153 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_cb->pairing_bda); local
171 if (p_dev_rec)
172 btm_sec_clear_ble_keys(p_dev_rec);
383 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_cb->pairing_bda); local
387 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE))
388 btm_sec_clear_ble_keys(p_dev_rec);
/external/bluetooth/bluedroid/stack/hid/
H A Dhidh_api.c580 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local
581 if ((p_dev_rec != NULL) &&
582 ((p_dev_rec->dev_class[1] & BTM_COD_MAJOR_CLASS_MASK) == BTM_COD_MAJOR_PERIPHERAL ))
/external/bluetooth/bluedroid/bta/hh/
H A Dbta_hh_le.c1379 tBTM_SEC_DEV_REC *p_dev_rec; local
1382 p_dev_rec = btm_find_dev(p_cb->addr);
1383 if (p_dev_rec)
1385 if (p_dev_rec->sec_state == BTM_SEC_STATE_ENCRYPTING ||
1386 p_dev_rec->sec_state == BTM_SEC_STATE_AUTHENTICATING)

Completed in 231 milliseconds