/external/bluetooth/bluedroid/stack/btm/ |
btm_dev.c | 63 tBTM_SEC_DEV_REC *p_dev_rec; local 67 p_dev_rec = btm_find_dev (bd_addr); 68 if (!p_dev_rec) 76 p_dev_rec = &btm_cb.sec_dev_rec[i]; 79 memset (p_dev_rec, 0, sizeof (tBTM_SEC_DEV_REC)); 80 p_dev_rec->sec_flags = BTM_SEC_IN_USE; 81 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN); 82 p_dev_rec->hci_handle = BTM_GetHCIConnHandle (bd_addr); 87 memset(&p_dev_rec->conn_params, 0xff, sizeof(tBTM_LE_CONN_PRAMS)); 93 if (!p_dev_rec) 173 tBTM_SEC_DEV_REC *p_dev_rec; local 225 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local 321 tBTM_SEC_DEV_REC *p_dev_rec; local 373 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local 397 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local 424 tBTM_SEC_DEV_REC *p_dev_rec; local 448 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local [all...] |
btm_sec.c | 56 static tBTM_STATUS btm_sec_execute_procedure (tBTM_SEC_DEV_REC *p_dev_rec); 57 static BOOLEAN btm_sec_start_get_name (tBTM_SEC_DEV_REC *p_dev_rec); 58 static BOOLEAN btm_sec_start_authentication (tBTM_SEC_DEV_REC *p_dev_rec); 59 static BOOLEAN btm_sec_start_encryption (tBTM_SEC_DEV_REC *p_dev_rec); 63 static tBTM_STATUS btm_sec_dd_create_conn (tBTM_SEC_DEV_REC *p_dev_rec); 75 static void btm_send_link_key_notif (tBTM_SEC_DEV_REC *p_dev_rec); 76 static BOOLEAN btm_sec_check_prefetch_pin (tBTM_SEC_DEV_REC *p_dev_rec); 78 static UINT8 btm_sec_start_authorization (tBTM_SEC_DEV_REC *p_dev_rec); 81 static tBTM_STATUS btm_sec_send_hci_disconnect (tBTM_SEC_DEV_REC *p_dev_rec, UINT8 reason); 267 tBTM_SEC_DEV_REC *p_dev_rec; local 792 tBTM_SEC_DEV_REC *p_dev_rec; local 864 tBTM_SEC_DEV_REC *p_dev_rec; local 984 tBTM_SEC_DEV_REC *p_dev_rec; local 1050 tBTM_SEC_DEV_REC *p_dev_rec; local 1265 tBTM_SEC_DEV_REC *p_dev_rec; local 1391 tBTM_SEC_DEV_REC *p_dev_rec; local 1431 tBTM_SEC_DEV_REC *p_dev_rec; local 1557 tBTM_SEC_DEV_REC *p_dev_rec; local 1605 tBTM_SEC_DEV_REC *p_dev_rec; local 1952 tBTM_SEC_DEV_REC *p_dev_rec; local 2087 tBTM_SEC_DEV_REC *p_dev_rec; local 2409 tBTM_SEC_DEV_REC *p_dev_rec; local 2526 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bda); local 2618 tBTM_SEC_DEV_REC *p_dev_rec; local 2829 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local 2907 tBTM_SEC_DEV_REC *p_dev_rec; local 3162 tBTM_SEC_DEV_REC *p_dev_rec; local 3198 tBTM_SEC_DEV_REC *p_dev_rec; local 3345 tBTM_SEC_DEV_REC *p_dev_rec; local 3414 tBTM_SEC_DEV_REC *p_dev_rec; local 3578 tBTM_SEC_DEV_REC *p_dev_rec; local 3656 tBTM_SEC_DEV_REC *p_dev_rec; local 3730 tBTM_SEC_DEV_REC *p_dev_rec; local 3773 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local 3947 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local 3976 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local 4062 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (bda); local 4092 tBTM_SEC_DEV_REC *p_dev_rec = btm_cb.p_collided_dev_rec; local 4121 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bda); local 4402 tBTM_SEC_DEV_REC *p_dev_rec = (tBTM_SEC_DEV_REC *)p_ref_data; local 4443 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local 4477 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local 4568 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (p_bda); local 4655 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (p_bda); local 4700 tBTM_SEC_DEV_REC *p_dev_rec; local 4825 tBTM_SEC_DEV_REC *p_dev_rec; local 4997 tBTM_SEC_DEV_REC *p_dev_rec; local 5456 tBTM_SEC_DEV_REC *p_dev_rec; local 5508 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0]; local 5532 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local 5780 tBTM_SEC_DEV_REC *p_dev_rec= btm_find_dev (bda); local 5804 tBTM_SEC_DEV_REC *p_dev_rec= btm_find_dev (bda); local 5831 tBTM_SEC_DEV_REC *p_dev_rec; local [all...] |
btm_ble.c | 67 tBTM_SEC_DEV_REC *p_dev_rec; local 72 p_dev_rec = btm_find_dev (bd_addr); 74 if (!p_dev_rec) 85 p_dev_rec = &btm_cb.sec_dev_rec[i]; 88 memset (p_dev_rec, 0, sizeof (tBTM_SEC_DEV_REC)); 89 p_dev_rec->sec_flags = BTM_SEC_IN_USE; 90 memcpy (p_dev_rec->bd_addr, bd_addr, BD_ADDR_LEN); 91 p_dev_rec->hci_handle = BTM_GetHCIConnHandle (bd_addr); 94 p_dev_rec->conn_params.min_conn_int = 95 p_dev_rec->conn_params.max_conn_int 157 tBTM_SEC_DEV_REC *p_dev_rec; local 327 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev(pseudo_addr); local 373 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local 404 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local 488 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local 554 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (remote_bda); local 746 tBTM_SEC_DEV_REC *p_dev_rec; local 775 tBTM_SEC_DEV_REC *p_dev_rec; local 797 tBTM_SEC_DEV_REC *p_dev_rec; local 1006 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local 1159 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local 1230 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local 1289 tBTM_SEC_DEV_REC *p_dev_rec; local 1432 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bda); local 1531 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local [all...] |
btm_ble_addr.c | 215 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local 221 p_dev_rec = &btm_cb.sec_dev_rec[p_mgnt_cb->index]; 226 (* p_mgnt_cb->p_resolve_cback)(p_dev_rec, p_mgnt_cb->p); 274 tBTM_SEC_DEV_REC *p_dev_rec; local 288 p_dev_rec = &btm_cb.sec_dev_rec[rec_index]; 290 BTM_TRACE_ERROR2("sec_flags = %02x device_type = %d", p_dev_rec->sec_flags, p_dev_rec->device_type); 292 if ((p_dev_rec->device_type == BT_DEVICE_TYPE_BLE) && 293 (p_dev_rec->ble.key_type & BTM_LE_KEY_PID)) 296 SMP_Encrypt(p_dev_rec->ble.keys.irk, BT_OCTET16_LEN 364 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local [all...] |
btm_ble_bgconn.c | 73 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local 89 if (p_dev_rec != NULL && 90 p_dev_rec->device_type == BT_DEVICE_TYPE_BLE) 97 started = btsnd_hcic_ble_add_white_list (p_dev_rec->ble.ble_addr_type, bd_addr); 99 if (memcmp(p_dev_rec->ble.static_addr, bd_addr, BD_ADDR_LEN) != 0 && 100 memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0) 102 started = btsnd_hcic_ble_add_white_list (p_dev_rec->ble.static_addr_type, p_dev_rec->ble.static_addr); 109 started = btsnd_hcic_ble_remove_from_white_list (p_dev_rec->ble.ble_addr_type, bd_addr); 111 if (memcmp(p_dev_rec->ble.static_addr, dummy_bda, BD_ADDR_LEN) != 0 [all...] |
btm_acl.c | 44 static void btm_process_remote_ext_features_page (tACL_CONN *p_acl_cb, tBTM_SEC_DEV_REC *p_dev_rec, 148 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local 213 p_dev_rec = btm_find_dev_by_handle (hci_handle); 216 if (p_dev_rec ) 218 BTM_TRACE_DEBUG1 ("device_type=0x%x", p_dev_rec->device_type); 222 if (p_dev_rec && !is_le_link) 225 if ((p_dev_rec->num_read_pages) && 226 (p_dev_rec->num_read_pages <= (HCI_EXT_FEATURES_PAGE_MAX + 1)) /* sanity check */) 228 memcpy (p->peer_lmp_features, p_dev_rec->features, 229 (HCI_FEATURE_BYTES_PER_PAGE * p_dev_rec->num_read_pages)) 315 tBTM_SEC_DEV_REC *p_dev_rec=NULL; local 546 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local 695 tBTM_SEC_DEV_REC *p_dev_rec = NULL; local 852 tBTM_SEC_DEV_REC *p_dev_rec; local 1214 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev_by_handle (handle); local 2173 tBTM_SEC_DEV_REC *p_dev_rec; local 3085 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bd_addr); local 3221 tBTM_SEC_DEV_REC *p_dev_rec; local 3286 tBTM_SEC_DEV_REC *p_dev_rec; local [all...] |
btm_int.h | [all...] |
/external/bluetooth/bluedroid/stack/l2cap/ |
l2c_ble.c | 184 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (rem_bda); local 187 (UINT16)((p_dev_rec->conn_params.min_conn_int != BTM_BLE_CONN_PARAM_UNDEF) ? p_dev_rec->conn_params.min_conn_int : BTM_BLE_CONN_INT_MIN_DEF), 188 (UINT16)((p_dev_rec->conn_params.max_conn_int != BTM_BLE_CONN_PARAM_UNDEF) ? p_dev_rec->conn_params.max_conn_int : BTM_BLE_CONN_INT_MAX_DEF), 189 (UINT16)((p_dev_rec->conn_params.slave_latency != BTM_BLE_CONN_PARAM_UNDEF) ? p_dev_rec->conn_params.slave_latency : BTM_BLE_CONN_SLAVE_LATENCY_DEF), 190 (UINT16) ((p_dev_rec->conn_params.supervision_tout != BTM_BLE_CONN_PARAM_UNDEF) ? p_dev_rec->conn_params.supervision_tout : BTM_BLE_CONN_TIMEOUT_DEF), 255 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (bda) local 355 tBTM_SEC_DEV_REC *p_dev_rec; local 531 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_or_alloc_dev (p_lcb->remote_bd_addr); local [all...] |
l2c_utils.c | 2213 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_lcb->remote_bd_addr); local [all...] |
/external/bluetooth/bluedroid/stack/smp/ |
smp_api.c | 227 tBTM_SEC_DEV_REC *p_dev_rec; local 245 if ((p_dev_rec = btm_find_dev (bd_addr)) == NULL)
|
smp_act.c | 149 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_cb->pairing_bda); local 161 if (p_dev_rec) 162 btm_sec_clear_ble_keys(p_dev_rec); 359 tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (p_cb->pairing_bda); local 363 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) 364 btm_sec_clear_ble_keys(p_dev_rec); [all...] |