Lines Matching refs:btm_cb
173 tBTM_DEVCB* p_devcb = &btm_cb.devcb; in BTM_BleLoadLocalKeys()
195 return btm_cb.devcb.ble_encryption_key_value; in BTM_GetDeviceEncRoot()
199 const Octet16& BTM_GetDeviceIDRoot() { return btm_cb.devcb.id_keys.irk; } in BTM_GetDeviceIDRoot()
202 const Octet16& BTM_GetDeviceDHK() { return btm_cb.devcb.id_keys.dhk; } in BTM_GetDeviceDHK()
249 p = &btm_cb.acl_db[xx]; in BTM_IsBleConnection()
456 tBTM_BLE_CB* p_ble_cb = &btm_cb.ble_ctr_cb; in BTM_BleSetConnScanParams()
658 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleReceiverTest()
679 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleTransmitterTest()
694 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleTestEnd()
703 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_le_test_cmd_cmpl_cb; in btm_ble_test_command_complete()
705 btm_cb.devcb.p_le_test_cmd_cmpl_cb = NULL; in btm_ble_test_command_complete()
1371 if (pass_to_application && btm_cb.api.p_le_callback) { in btm_sec_save_le_key()
1375 (*btm_cb.api.p_le_callback)(BTM_LE_KEY_EVT, bd_addr, &cb_data); in btm_sec_save_le_key()
1582 tBTM_CB* p_cb = &btm_cb; in btm_ble_ltk_request()
1603 tBTM_CB* p_cb = &btm_cb; in btm_ble_start_encrypt()
1694 tBTM_CB* p_cb = &btm_cb; in btm_ble_ltk_request_reply()
1707 btsnd_hcic_ble_ltk_req_reply(btm_cb.enc_handle, stk); in btm_ble_ltk_request_reply()
1711 btsnd_hcic_ble_ltk_req_reply(btm_cb.enc_handle, p_rec->ble.keys.lltk); in btm_ble_ltk_request_reply()
1713 btsnd_hcic_ble_ltk_req_neg_reply(btm_cb.enc_handle); in btm_ble_ltk_request_reply()
1731 if (btm_cb.api.p_le_callback) { in btm_ble_io_capabilities_req()
1733 callback_rc = (*btm_cb.api.p_le_callback)( in btm_ble_io_capabilities_req()
1738 if (btm_cb.devcb.keep_rfu_in_auth_req) { in btm_ble_io_capabilities_req()
1740 btm_cb.devcb.keep_rfu_in_auth_req); in btm_ble_io_capabilities_req()
1742 btm_cb.devcb.keep_rfu_in_auth_req = false; in btm_ble_io_capabilities_req()
1815 if (btm_cb.api.p_le_callback) { in btm_ble_br_keys_req()
1817 callback_rc = (*btm_cb.api.p_le_callback)( in btm_ble_br_keys_req()
1838 tBTM_BLE_CB* p_cb = &btm_cb.ble_ctr_cb; in btm_ble_connected()
1863 p_dev_rec->timestamp = btm_cb.dev_rec_count++; in btm_ble_connected()
1922 btm_cb.pairing_state != BTM_PAIR_STATE_IDLE) { in btm_proc_smp_cback()
1926 btm_cb.pairing_bda = bd_addr; in btm_proc_smp_cback()
1928 btm_cb.pairing_flags |= BTM_PAIR_FLAGS_LE_ACTIVE; in btm_proc_smp_cback()
1932 if (btm_cb.api.p_le_callback) { in btm_proc_smp_cback()
1936 btm_cb.api.p_le_callback); in btm_proc_smp_cback()
1937 (*btm_cb.api.p_le_callback)(event, bd_addr, in btm_proc_smp_cback()
1960 btm_cb.api.p_bond_cancel_cmpl_callback) { in btm_proc_smp_cback()
1962 (*btm_cb.api.p_bond_cancel_cmpl_callback)(BTM_SUCCESS); in btm_proc_smp_cback()
1966 if (!btm_cb.devcb.no_disc_if_pair_fail && in btm_proc_smp_cback()
1984 btm_cb.pairing_state, btm_cb.pairing_flags, btm_cb.pin_code_len); in btm_proc_smp_cback()
1985 VLOG(1) << "btm_cb.pairing_bda: " << btm_cb.pairing_bda; in btm_proc_smp_cback()
1989 if (bd_addr == btm_cb.pairing_bda) { in btm_proc_smp_cback()
1990 btm_cb.pairing_bda = RawAddress::kAny; in btm_proc_smp_cback()
1991 btm_cb.pairing_state = BTM_PAIR_STATE_IDLE; in btm_proc_smp_cback()
1992 btm_cb.pairing_flags = 0; in btm_proc_smp_cback()
2222 if (btm_cb.api.p_le_callback == NULL) { in BTM_BleGetSupportedKeySize()
2227 callback_rc = (*btm_cb.api.p_le_callback)( in BTM_BleGetSupportedKeySize()
2252 if (btm_cb.api.p_le_key_callback) { in btm_notify_new_key()
2256 p_local_keys = (tBTM_BLE_LOCAL_KEYS*)&btm_cb.devcb.id_keys; in btm_notify_new_key()
2262 (tBTM_BLE_LOCAL_KEYS*)&btm_cb.devcb.ble_encryption_key_value; in btm_notify_new_key()
2270 (*btm_cb.api.p_le_key_callback)(key_type, p_local_keys); in btm_notify_new_key()
2277 btm_cb.devcb.id_keys.ir = rand1; in btm_ble_reset_id_impl()
2281 btm_cb.devcb.id_keys.dhk = in btm_ble_reset_id_impl()
2282 crypto_toolbox::aes_128(btm_cb.devcb.id_keys.ir, &btm_ble_dhk_pt, 1); in btm_ble_reset_id_impl()
2286 btm_cb.devcb.id_keys.irk = in btm_ble_reset_id_impl()
2287 crypto_toolbox::aes_128(btm_cb.devcb.id_keys.ir, &btm_ble_irk_pt, 1); in btm_ble_reset_id_impl()
2293 if (btm_cb.ble_ctr_cb.privacy_mode != BTM_PRIVACY_NONE) { in btm_ble_reset_id_impl()
2299 btm_cb.devcb.ble_encryption_key_value = rand2; in btm_ble_reset_id_impl()
2341 tBTM_LE_RANDOM_CB* p_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; in btm_ble_set_random_address()
2342 tBTM_BLE_CB* p_ble_cb = &btm_cb.ble_ctr_cb; in btm_ble_set_random_address()
2343 bool adv_mode = btm_cb.ble_ctr_cb.inq_var.adv_mode; in btm_ble_set_random_address()
2375 btm_cb.devcb.no_disc_if_pair_fail = disable_disc; in btm_ble_set_no_disc_if_pair_fail()
2389 btm_cb.devcb.enable_test_mac_val = enable; in btm_ble_set_test_mac_value()
2390 memcpy(btm_cb.devcb.test_mac, p_test_mac_val, BT_OCTET8_LEN); in btm_ble_set_test_mac_value()
2407 btm_cb.devcb.enable_test_local_sign_cntr = enable; in btm_ble_set_test_local_sign_cntr_value()
2408 btm_cb.devcb.test_local_sign_cntr = test_local_sign_cntr; in btm_ble_set_test_local_sign_cntr_value()
2423 btm_cb.devcb.keep_rfu_in_auth_req = keep_rfu; in btm_ble_set_keep_rfu_in_auth_req()