Home
last modified time | relevance | path

Searched refs:devcb (Results 1 – 17 of 17) sorted by relevance

/external/bluetooth/bluedroid/stack/btm/
Dbtm_devctl.c142 memset (&btm_cb.devcb, 0, sizeof (tBTM_DEVCB)); in btm_dev_init()
150 btm_cb.devcb.reset_timer.param = (TIMER_PARAM_TYPE)TT_DEV_RESET; in btm_dev_init()
151 btm_cb.devcb.rln_timer.param = (TIMER_PARAM_TYPE)TT_DEV_RLN; in btm_dev_init()
152 btm_cb.devcb.rlinkp_timer.param = (TIMER_PARAM_TYPE)TT_DEV_RLNKP; in btm_dev_init()
171 btm_cb.devcb.state = BTM_DEV_STATE_WAIT_RESET_CMPLT; in btm_dev_init()
172 btu_start_timer (&btm_cb.devcb.reset_timer, BTU_TTYPE_BTM_DEV_CTL, BTM_FIRST_RESET_DELAY); in btm_dev_init()
202 if (btm_cb.devcb.p_rln_cmpl_cb) in btm_db_reset()
204 p_cb = btm_cb.devcb.p_rln_cmpl_cb; in btm_db_reset()
205 btm_cb.devcb.p_rln_cmpl_cb = NULL; in btm_db_reset()
211 if (btm_cb.devcb.p_rlinkp_cmpl_cb) in btm_db_reset()
[all …]
Dbtm_acl.c329 if (HCI_LE_SLAVE_INIT_FEAT_EXC_SUPPORTED(btm_cb.devcb.local_le_features) in btm_acl_created()
366 if (btm_cb.devcb.p_switch_role_cb in btm_acl_report_role_change()
367 … && (bda && (0 == memcmp(btm_cb.devcb.switch_role_ref_data.remote_bd_addr, bda, BD_ADDR_LEN)))) in btm_acl_report_role_change()
369 memcpy (&ref_data, &btm_cb.devcb.switch_role_ref_data, sizeof(tBTM_ROLE_SWITCH_CMPL)); in btm_acl_report_role_change()
371 (*btm_cb.devcb.p_switch_role_cb)(&ref_data); in btm_acl_report_role_change()
372 memset (&btm_cb.devcb.switch_role_ref_data, 0, sizeof(tBTM_ROLE_SWITCH_CMPL)); in btm_acl_report_role_change()
373 btm_cb.devcb.p_switch_role_cb = NULL; in btm_acl_report_role_change()
651 if (!(HCI_SWITCH_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0]))) in BTM_SwitchRole()
654 if (btm_cb.devcb.p_switch_role_cb && p_cb) in BTM_SwitchRole()
657 p_bda = btm_cb.devcb.switch_role_ref_data.remote_bd_addr; in BTM_SwitchRole()
[all …]
Dbtm_ble.c207 tBTM_DEVCB *p_devcb = &btm_cb.devcb; in BTM_BleLoadLocalKeys()
243 memcpy (er, btm_cb.devcb.er, BT_OCTET16_LEN); in BTM_GetDeviceEncRoot()
261 memcpy (irk, btm_cb.devcb.id_keys.irk, BT_OCTET16_LEN); in BTM_GetDeviceIDRoot()
277 memcpy (dhk, btm_cb.devcb.id_keys.dhk, BT_OCTET16_LEN); in BTM_GetDeviceDHK()
640 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleReceiverTest()
663 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleTransmitterTest()
681 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; in BTM_BleTestEnd()
694 tBTM_CMPL_CB *p_cb = btm_cb.devcb.p_le_test_cmd_cmpl_cb; in btm_ble_test_command_complete()
697 btm_cb.devcb.p_le_test_cmd_cmpl_cb = NULL; in btm_ble_test_command_complete()
1370 SMP_Encrypt(p_cb->devcb.er, BT_OCTET16_LEN, (UINT8 *)&div, 2, &output); in btm_enc_proc_slave_y()
[all …]
Dbtm_inq.c188 if (HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_SetDiscoverability()
205 if (btm_cb.devcb.state < BTM_DEV_STATE_READY) in BTM_SetDiscoverability()
319 …if (!HCI_LMP_INTERLACED_INQ_SCAN_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0… in BTM_SetInquiryScanType()
356 …if (!HCI_LMP_INTERLACED_PAGE_SCAN_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_… in BTM_SetPageScanType()
399 if (!HCI_LMP_INQ_RSSI_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0])) in BTM_SetInquiryMode()
405 if (!HCI_EXT_INQ_RSP_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0])) in BTM_SetInquiryMode()
625 if (HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_SetConnectability()
642 if (btm_cb.devcb.state < BTM_DEV_STATE_READY) in BTM_SetConnectability()
949 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_StartInquiry()
1419 if (btm_cb.devcb.p_txpwer_cmpl_cb) in BTM_ReadInquiryRspTxPower()
[all …]
Dbtm_ble_gap.c257 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleUpdateAdvFilterPolicy()
308 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleObserve()
382 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleBroadcast()
702 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleSetBgConnType()
811 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleSetConnMode()
891 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleSetAdvParams()
952 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleReadAdvParams()
985 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleSetScanParams()
1027 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleWriteScanRsp()
1067 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleWriteAdvData()
[all …]
Dbtm_ble_batchscan.c616 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleSetStorageConfig()
689 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleEnableBatchScan()
763 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleDisableBatchScan()
809 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleReadScanReports()
867 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in BTM_BleTrackAdvertiser()
Dbtm_sco.c179 if (btm_cb.devcb.local_version.hci_version >= HCI_PROTO_VERSION_1_2) in btm_esco_conn_rsp()
208 if (btm_cb.devcb.local_version.hci_version >= HCI_PROTO_VERSION_2_0) in btm_esco_conn_rsp()
214 else if (btm_cb.devcb.local_version.hci_version >= HCI_PROTO_VERSION_2_0) in btm_esco_conn_rsp()
425 if (btm_cb.devcb.local_version.hci_version >= HCI_PROTO_VERSION_2_0) in btm_send_connect_request()
660 if (btm_cb.devcb.local_version.hci_version >= HCI_PROTO_VERSION_2_0) in BTM_CreateSco()
1370 if (btm_cb.devcb.local_version.hci_version >= HCI_PROTO_VERSION_2_0) in BTM_SetEScoMode()
1538 if (btm_cb.devcb.local_version.hci_version >= HCI_PROTO_VERSION_2_0) in BTM_ChangeEScoLinkParms()
Dbtm_sec.c213 if (memcmp(btm_cb.devcb.id_keys.ir, &temp_value, sizeof(BT_OCTET16)) == 0) in BTM_SecRegister()
423 if (HCI_SIMPLE_PAIRING_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0])) in BTM_SetSecurityMode()
473 && (btm_cb.devcb.state > BTM_DEV_STATE_WAIT_AFTER_RESET) ) in BTM_SetPinType()
1246 if (!HCI_SIMPLE_PAIRING_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0])) in btm_sec_bond_by_transport()
1289 if (!HCI_SIMPLE_PAIRING_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0]) in btm_sec_bond_by_transport()
1843 btm_cb.devcb.loc_auth_req = auth_req; in BTM_IoCapRsp()
1844 btm_cb.devcb.loc_io_caps = io_cap; in BTM_IoCapRsp()
1940 BDADDR_TO_STREAM(p, btm_cb.devcb.local_addr); in BTM_BuildOobData()
1975 DEVCLASS_TO_STREAM(p, btm_cb.devcb.dev_class); in BTM_BuildOobData()
2150 …&& (btm_sec_io_map[p_dev_rec->rmt_io_caps][btm_cb.devcb.loc_io_caps])) /* authenticated link key i… in btm_sec_is_upgrade_possible()
[all …]
Dbtm_int.h72 … HCI_ATOMIC_ENCRYPT_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0])) \
75 #define BTM_IS_BRCM_CONTROLLER() (btm_cb.devcb.local_version.manufacturer == LMP_COMPID_BROADCOM)
835 tBTM_DEVCB devcb; member
Dbtm_ble_multi_adv.c263 BDADDR_TO_STREAM (pp, btm_cb.devcb.local_addr); in btm_ble_multi_adv_set_params()
402 if (!SMP_Encrypt(btm_cb.devcb.id_keys.irk, BT_OCTET16_LEN, p->param_buf, 3, &output)) in btm_ble_multi_adv_gen_rpa_cmpl()
Dbtm_ble_addr.c108 if (!SMP_Encrypt(btm_cb.devcb.id_keys.irk, BT_OCTET16_LEN, p->param_buf, 3, &output)) in btm_gen_resolve_paddr_low()
Dbtm_dev.c374 if (p_dev_rec && HCI_SWITCH_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0])) in btm_dev_support_switch()
Dbtm_ble_adv_filter.c1305 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in btm_ble_adv_filter_init()
/external/bluetooth/bluedroid/stack/l2cap/
Dl2c_ble.c125 if ((HCI_LE_CONN_PARAM_REQ_SUPPORTED(btm_cb.devcb.local_le_features) && in L2CA_UpdateBleConnParams()
426 if (!HCI_LE_SLAVE_INIT_FEAT_EXC_SUPPORTED(btm_cb.devcb.local_le_features)) in l2cble_advertiser_conn_comp()
Dl2c_utils.c2230 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in l2cu_create_conn()
/external/bluetooth/bluedroid/vnd/ble/
Dvendor_ble.c722 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) in btm_ble_vendor_init()
/external/bluetooth/bluedroid/stack/btu/
Dbtu_hcif.c472 && (btm_cb.devcb.state == BTM_DEV_STATE_WAIT_RESET_CMPLT)) ) in btu_hcif_send_cmd()