/external/bluetooth/bluedroid/stack/btm/ |
btm_main.c | 34 tBTM_CB btm_cb; variable 52 memset(&btm_cb, 0, sizeof(tBTM_CB)); 55 btm_cb.trace_level = BTM_INITIAL_TRACE_LEVEL; 57 btm_cb.trace_level = BT_TRACE_LEVEL_NONE; /* No traces */
|
btm_devctl.c | 141 memset (&btm_cb.devcb, 0, sizeof (tBTM_DEVCB)); 146 memset(btm_cb.cfg.bd_name, 0, sizeof(tBTM_LOC_BD_NAME)); 148 BCM_STRNCPY_S(btm_cb.cfg.bd_name, sizeof(btm_cb.cfg.bd_name), BTM_DEF_LOCAL_NAME, BTM_MAX_LOC_BD_NAME_LEN); 152 btm_cb.devcb.reset_timer.param = (TIMER_PARAM_TYPE)TT_DEV_RESET; 153 btm_cb.devcb.rln_timer.param = (TIMER_PARAM_TYPE)TT_DEV_RLN; 154 btm_cb.devcb.rlinkp_timer.param = (TIMER_PARAM_TYPE)TT_DEV_RLNKP; 156 btm_cb.btm_acl_pkt_types_supported = BTM_ACL_PKT_TYPES_MASK_DH1 + BTM_ACL_PKT_TYPES_MASK_DM1 + 160 btm_cb.btm_sco_pkt_types_supported = BTM_SCO_PKT_TYPES_MASK_HV1 + 167 btm_cb.first_disabled_channel = 0xff; /* To allow disabling 0th channel alone * [all...] |
btm_pm.c | 149 btm_cb.pm_reg_db[*p_pm_id].mask = BTM_PM_REC_NOT_USED; 156 if(btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED) 163 btm_cb.pm_reg_db[xx].cback = p_cb; 165 btm_cb.pm_reg_db[xx].mask = mask; 210 p_cb = &(btm_cb.pm_mode_db[acl_ind]); 239 (btm_cb.pm_reg_db[pm_id].mask & BTM_PM_REG_SET)) 240 || ((pm_id == BTM_PM_SET_ONLY_ID) && (btm_cb.pm_pend_link != MAX_L2CAP_LINKS)) ) 246 btm_cb.pm_reg_db[temp_pm_id].mask |= BTM_PM_REG_SET; 252 BTM_TRACE_DEBUG2( "btm_pm state:0x%x, pm_pend_link: %d", p_cb->state, btm_cb.pm_pend_link); 257 (btm_cb.pm_pend_link != MAX_L2CAP_LINKS) ) /* command pending * [all...] |
btm_sec.c | 131 if (memcmp(btm_cb.devcb.id_keys.ir, &temp_value, sizeof(BT_OCTET16)) == 0) 144 btm_cb.api = *p_cb_info; 146 BTM_TRACE_ERROR1 ("BTM_SecRegister: btm_cb.api.p_le_callback = 0x%x ", btm_cb.api.p_le_callback); 166 btm_cb.api.p_link_key_callback = p_callback; 187 if (btm_cb.p_rmt_name_callback[i] == NULL) 189 btm_cb.p_rmt_name_callback[i] = p_callback; 214 if (btm_cb.p_rmt_name_callback[i] == p_callback) 216 btm_cb.p_rmt_name_callback[i] = NULL; 239 btm_cb.p_conn_filter_cb = p_callback [all...] |
btm_sco.c | 89 p = &btm_cb.sco_cb.sco_db[sco_inx]; 111 memset (&btm_cb.sco_cb, 0, sizeof(tSCO_CB)); 114 btm_cb.sco_cb.sco_disc_reason = BTM_INVALID_SCO_DISC_REASON; 116 btm_cb.sco_cb.def_esco_parms = btm_esco_defaults; /* Initialize with defaults */ 117 btm_cb.sco_cb.desired_sco_mode = BTM_DEFAULT_SCO_MODE; 145 p_sco = &btm_cb.sco_cb.sco_db[sco_inx]; 156 if (!btm_cb.sco_cb.esco_supported) 174 if (btm_cb.devcb.local_version.hci_version >= HCI_PROTO_VERSION_1_2) 182 *p_setup = btm_cb.sco_cb.def_esco_parms; 187 btm_cb.btm_sco_pkt_types_supported) [all...] |
btm_acl.c | 63 memset (&btm_cb.acl_db, 0, sizeof (btm_cb.acl_db)); 65 memset (btm_cb.btm_scn, 0, BTM_MAX_SCN); /* Initialize the SCN usage to FALSE */ 67 btm_cb.btm_def_link_policy = 0; 69 btm_cb.p_bl_changed_cb = NULL; 71 btm_cb.p_acl_changed_cb = NULL; 76 btm_cb.btm_def_link_super_tout = HCI_DEFAULT_INACT_TOUT; 77 btm_cb.acl_disc_reason = 0xff ; 92 tACL_CONN *p = &btm_cb.acl_db[0]; 121 tACL_CONN *p = &btm_cb.acl_db[0] [all...] |
btm_ble_bgconn.c | 51 tBTM_BLE_INQ_CB *p_inq = &btm_cb.ble_ctr_cb.inq_var; 72 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; 150 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; 167 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; 183 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; 198 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; 221 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; 288 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; 363 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb; 373 if (btm_cb.btm_inq_vars.inq_active == BTM_INQUIRY_INACTIVE [all...] |
btm_inq.c | 188 if (HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) 193 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_BLE_DISCOVERABLE_MASK); 194 btm_cb.btm_inq_vars.discoverable_mode |= (inq_mode & BTM_BLE_CONNECTABLE_MASK); 205 if (btm_cb.devcb.state < BTM_DEV_STATE_READY) 255 if ((window != btm_cb.btm_inq_vars.inq_scan_window) || 256 (interval != btm_cb.btm_inq_vars.inq_scan_period)) 260 btm_cb.btm_inq_vars.inq_scan_window = window; 261 btm_cb.btm_inq_vars.inq_scan_period = interval; 267 if (btm_cb.btm_inq_vars.connectable_mode & BTM_CONNECTABLE_MASK) 272 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_DISCOVERABLE_MASK) [all...] |
btm_ble_gap.c | 103 tBTM_BLE_INQ_CB *p_cb = &btm_cb.ble_ctr_cb.inq_var; 110 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) 153 tBTM_BLE_INQ_CB *p_inq = &btm_cb.ble_ctr_cb.inq_var; 158 if (!HCI_LE_HOST_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_1])) 164 if (btm_cb.btm_inq_vars.inq_active || p_inq->proc_mode != BTM_BLE_INQUIRY_NONE) 167 btm_cb.btm_inq_vars.p_inq_results_cb = p_results_cb; 168 btm_cb.btm_inq_vars.p_inq_cmpl_cb = p_cmpl_cb; 183 btm_cb.btm_inq_vars.inq_active |= BTM_LE_OBSERVE_ACTIVE; 195 btm_cb.btm_inq_vars.inq_active &= ~BTM_LE_OBSERVE_ACTIVE; 216 tBTM_LE_RANDOM_CB *p_addr_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb [all...] |
btm_ble.c | 82 if (!(btm_cb.sec_dev_rec[i].sec_flags & BTM_SEC_IN_USE)) 85 p_dev_rec = &btm_cb.sec_dev_rec[i]; 204 tBTM_DEVCB *p_devcb = &btm_cb.devcb; 242 memcpy (er, btm_cb.devcb.er, BT_OCTET16_LEN); 262 memcpy (irk, btm_cb.devcb.id_keys.irk, BT_OCTET16_LEN); 280 memcpy (dhk, btm_cb.devcb.id_keys.dhk, BT_OCTET16_LEN); 434 tBTM_BLE_CB *p_ble_cb = &btm_cb.ble_ctr_cb; 603 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; 626 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback; 644 btm_cb.devcb.p_le_test_cmd_cmpl_cb = p_cmd_cmpl_cback [all...] |
btm_dev.c | 74 if (!(btm_cb.sec_dev_rec[i].sec_flags & BTM_SEC_IN_USE)) 76 p_dev_rec = &btm_cb.sec_dev_rec[i]; 97 p_dev_rec->timestamp = btm_cb.dev_rec_count++; 231 if (!(btm_cb.sec_dev_rec[i].sec_flags & BTM_SEC_IN_USE)) 233 p_dev_rec = &btm_cb.sec_dev_rec[i]; 275 if (!memcmp (bd_addr, btm_cb.connecting_bda, BD_ADDR_LEN)) 276 memcpy (p_dev_rec->dev_class, btm_cb.connecting_dc, DEV_CLASS_LEN); 282 p_dev_rec->timestamp = btm_cb.dev_rec_count++; 331 if (p_dev_rec && HCI_SWITCH_SUPPORTED(btm_cb.devcb.local_lmp_features[HCI_EXT_FEATURES_PAGE_0])) 373 tBTM_SEC_DEV_REC *p_dev_rec = &btm_cb.sec_dev_rec[0] [all...] |
btm_ble_addr.c | 51 tBTM_LE_RANDOM_CB *p_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; 90 tBTM_LE_RANDOM_CB *p_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; 104 if (!SMP_Encrypt(btm_cb.devcb.id_keys.irk, BT_OCTET16_LEN, p->param_buf, 3, &output)) 143 tBTM_LE_RANDOM_CB *p_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; 183 tBTM_LE_RANDOM_CB *p_mgnt_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; 214 tBTM_LE_RANDOM_CB *p_mgnt_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; 221 p_dev_rec = &btm_cb.sec_dev_rec[p_mgnt_cb->index]; 240 tBTM_LE_RANDOM_CB *p_mgnt_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; 275 tBTM_LE_RANDOM_CB *p_mgnt_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; 288 p_dev_rec = &btm_cb.sec_dev_rec[rec_index] [all...] |
btm_int.h | 72 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) 907 #define btm_cb macro [all...] |
/external/bluetooth/bluedroid/stack/l2cap/ |
l2c_link.c | 208 BTM_SetLinkSuperTout (ci.bd_addr, btm_cb.btm_def_link_super_tout); 376 if (btm_cb.acl_disc_reason != HCI_ERR_HOST_REJECT_SECURITY) 377 btm_cb.acl_disc_reason = reason; 379 p_lcb->disc_reason = btm_cb.acl_disc_reason; [all...] |
l2c_ble.c | 532 tBTM_BLE_CB *p_cb = &btm_cb.ble_ctr_cb;
|
l2c_utils.c | [all...] |
/external/bluetooth/bluedroid/include/ |
bt_trace.h | [all...] |
/external/libnfc-nci/src/include/ |
bt_trace.h | 646 #define BTM_TRACE_ERROR0(m) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m);} 647 #define BTM_TRACE_ERROR1(m,p1) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m,p1);} 648 #define BTM_TRACE_ERROR2(m,p1,p2) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m,p1,p2); [all...] |
/external/bluetooth/bluedroid/stack/btu/ |
btu_hcif.c | 466 && (btm_cb.devcb.state == BTM_DEV_STATE_WAIT_RESET_CMPLT)) ) [all...] |