Lines Matching refs:btm_cb
188 tBTM_DEVCB* p_devcb = &btm_cb.devcb; in BTM_BleLoadLocalKeys()
213 return btm_cb.devcb.ble_encryption_key_value; in BTM_GetDeviceEncRoot()
221 return btm_cb.devcb.id_keys.irk; in BTM_GetDeviceIDRoot()
229 return btm_cb.devcb.id_keys.dhk; in BTM_GetDeviceDHK()
284 p = &btm_cb.acl_db[xx]; in BTM_IsBleConnection()
686 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleReceiverTest()
711 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleTransmitterTest()
729 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleTestEnd()
738 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_le_test_cmd_cmpl_cb; in btm_ble_test_command_complete()
740 btm_cb.devcb.p_le_test_cmd_cmpl_cb = NULL; in btm_ble_test_command_complete()
1383 if (pass_to_application && btm_cb.api.p_le_callback) { in btm_sec_save_le_key()
1387 (*btm_cb.api.p_le_callback)(BTM_LE_KEY_EVT, bd_addr, &cb_data); in btm_sec_save_le_key()
1594 tBTM_CB* p_cb = &btm_cb; in btm_ble_ltk_request()
1615 tBTM_CB* p_cb = &btm_cb; in btm_ble_start_encrypt()
1708 tBTM_CB* p_cb = &btm_cb; in btm_ble_ltk_request_reply()
1721 btsnd_hcic_ble_ltk_req_reply(btm_cb.enc_handle, stk); in btm_ble_ltk_request_reply()
1725 btsnd_hcic_ble_ltk_req_reply(btm_cb.enc_handle, p_rec->ble.keys.lltk); in btm_ble_ltk_request_reply()
1727 btsnd_hcic_ble_ltk_req_neg_reply(btm_cb.enc_handle); in btm_ble_ltk_request_reply()
1745 if (btm_cb.api.p_le_callback) { in btm_ble_io_capabilities_req()
1747 callback_rc = (*btm_cb.api.p_le_callback)( in btm_ble_io_capabilities_req()
1752 if (btm_cb.devcb.keep_rfu_in_auth_req) { in btm_ble_io_capabilities_req()
1754 btm_cb.devcb.keep_rfu_in_auth_req); in btm_ble_io_capabilities_req()
1756 btm_cb.devcb.keep_rfu_in_auth_req = false; in btm_ble_io_capabilities_req()
1829 if (btm_cb.api.p_le_callback) { in btm_ble_br_keys_req()
1831 callback_rc = (*btm_cb.api.p_le_callback)( in btm_ble_br_keys_req()
1852 tBTM_BLE_CB* p_cb = &btm_cb.ble_ctr_cb; in btm_ble_connected()
1877 p_dev_rec->timestamp = btm_cb.dev_rec_count++; in btm_ble_connected()
1936 btm_cb.pairing_state != BTM_PAIR_STATE_IDLE) { in btm_proc_smp_cback()
1940 btm_cb.pairing_bda = bd_addr; in btm_proc_smp_cback()
1942 btm_cb.pairing_flags |= BTM_PAIR_FLAGS_LE_ACTIVE; in btm_proc_smp_cback()
1946 if (btm_cb.api.p_le_callback) { in btm_proc_smp_cback()
1950 btm_cb.api.p_le_callback); in btm_proc_smp_cback()
1951 (*btm_cb.api.p_le_callback)(event, bd_addr, in btm_proc_smp_cback()
1974 btm_cb.api.p_bond_cancel_cmpl_callback) { in btm_proc_smp_cback()
1976 (*btm_cb.api.p_bond_cancel_cmpl_callback)(BTM_SUCCESS); in btm_proc_smp_cback()
1980 if (!btm_cb.devcb.no_disc_if_pair_fail && in btm_proc_smp_cback()
1998 btm_cb.pairing_state, btm_cb.pairing_flags, btm_cb.pin_code_len); in btm_proc_smp_cback()
1999 VLOG(1) << "btm_cb.pairing_bda: " << btm_cb.pairing_bda; in btm_proc_smp_cback()
2003 if (bd_addr == btm_cb.pairing_bda) { in btm_proc_smp_cback()
2004 btm_cb.pairing_bda = RawAddress::kAny; in btm_proc_smp_cback()
2005 btm_cb.pairing_state = BTM_PAIR_STATE_IDLE; in btm_proc_smp_cback()
2006 btm_cb.pairing_flags = 0; in btm_proc_smp_cback()
2149 if (btm_cb.api.p_le_key_callback) { in btm_notify_new_key()
2153 p_local_keys = (tBTM_BLE_LOCAL_KEYS*)&btm_cb.devcb.id_keys; in btm_notify_new_key()
2159 (tBTM_BLE_LOCAL_KEYS*)&btm_cb.devcb.ble_encryption_key_value; in btm_notify_new_key()
2167 (*btm_cb.api.p_le_key_callback)(key_type, p_local_keys); in btm_notify_new_key()
2174 btm_cb.devcb.id_keys.ir = rand1; in btm_ble_reset_id_impl()
2178 btm_cb.devcb.id_keys.dhk = in btm_ble_reset_id_impl()
2179 crypto_toolbox::aes_128(btm_cb.devcb.id_keys.ir, &btm_ble_dhk_pt, 1); in btm_ble_reset_id_impl()
2183 btm_cb.devcb.id_keys.irk = in btm_ble_reset_id_impl()
2184 crypto_toolbox::aes_128(btm_cb.devcb.id_keys.ir, &btm_ble_irk_pt, 1); in btm_ble_reset_id_impl()
2190 if (btm_cb.ble_ctr_cb.privacy_mode != BTM_PRIVACY_NONE) { in btm_ble_reset_id_impl()
2196 btm_cb.devcb.ble_encryption_key_value = rand2; in btm_ble_reset_id_impl()
2238 tBTM_LE_RANDOM_CB* p_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; in btm_ble_set_random_address()
2239 tBTM_BLE_CB* p_ble_cb = &btm_cb.ble_ctr_cb; in btm_ble_set_random_address()
2240 bool adv_mode = btm_cb.ble_ctr_cb.inq_var.adv_mode; in btm_ble_set_random_address()
2272 btm_cb.devcb.no_disc_if_pair_fail = disable_disc; in btm_ble_set_no_disc_if_pair_fail()
2286 btm_cb.devcb.enable_test_mac_val = enable; in btm_ble_set_test_mac_value()
2287 memcpy(btm_cb.devcb.test_mac, p_test_mac_val, BT_OCTET8_LEN); in btm_ble_set_test_mac_value()
2304 btm_cb.devcb.enable_test_local_sign_cntr = enable; in btm_ble_set_test_local_sign_cntr_value()
2305 btm_cb.devcb.test_local_sign_cntr = test_local_sign_cntr; in btm_ble_set_test_local_sign_cntr_value()
2320 btm_cb.devcb.keep_rfu_in_auth_req = keep_rfu; in btm_ble_set_keep_rfu_in_auth_req()