• Home
  • Raw
  • Download

Lines Matching refs:btm_cb

362   tBTM_BLE_INQ_CB* p_cb = &btm_cb.ble_ctr_cb.inq_var;  in BTM_BleUpdateAdvFilterPolicy()
409 tBTM_BLE_INQ_CB* p_inq = &btm_cb.ble_ctr_cb.inq_var; in BTM_BleObserve()
418 btm_cb.btm_inq_vars.scan_type, p_inq->scan_interval, in BTM_BleObserve()
425 if (BTM_BLE_IS_OBS_ACTIVE(btm_cb.ble_ctr_cb.scan_activity)) { in BTM_BleObserve()
430 btm_cb.ble_ctr_cb.p_obs_results_cb = p_results_cb; in BTM_BleObserve()
431 btm_cb.ble_ctr_cb.p_obs_cmpl_cb = p_cmpl_cb; in BTM_BleObserve()
435 if (!BTM_BLE_IS_SCAN_ACTIVE(btm_cb.ble_ctr_cb.scan_activity)) { in BTM_BleObserve()
448 btm_cb.ble_ctr_cb.addr_mgnt_cb.own_addr_type, BTM_BLE_DEFAULT_SFP); in BTM_BleObserve()
455 btm_cb.ble_ctr_cb.scan_activity |= BTM_LE_OBSERVE_ACTIVE; in BTM_BleObserve()
459 alarm_set_on_mloop(btm_cb.ble_ctr_cb.observer_timer, duration_ms, in BTM_BleObserve()
463 } else if (BTM_BLE_IS_OBS_ACTIVE(btm_cb.ble_ctr_cb.scan_activity)) { in BTM_BleObserve()
502 STREAM_TO_UINT8(btm_cb.cmn_ble_vsc_cb.adv_inst_max, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
503 STREAM_TO_UINT8(btm_cb.cmn_ble_vsc_cb.rpa_offloading, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
504 STREAM_TO_UINT16(btm_cb.cmn_ble_vsc_cb.tot_scan_results_strg, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
505 STREAM_TO_UINT8(btm_cb.cmn_ble_vsc_cb.max_irk_list_sz, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
506 STREAM_TO_UINT8(btm_cb.cmn_ble_vsc_cb.filter_support, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
507 STREAM_TO_UINT8(btm_cb.cmn_ble_vsc_cb.max_filter, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
508 STREAM_TO_UINT8(btm_cb.cmn_ble_vsc_cb.energy_support, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
512 STREAM_TO_UINT16(btm_cb.cmn_ble_vsc_cb.version_supported, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
514 btm_cb.cmn_ble_vsc_cb.version_supported = BTM_VSC_CHIP_CAPABILITY_L_VERSION; in btm_ble_vendor_capability_vsc_cmpl_cback()
517 if (btm_cb.cmn_ble_vsc_cb.version_supported >= in btm_ble_vendor_capability_vsc_cmpl_cback()
520 STREAM_TO_UINT16(btm_cb.cmn_ble_vsc_cb.total_trackable_advertisers, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
521 STREAM_TO_UINT8(btm_cb.cmn_ble_vsc_cb.extended_scan_support, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
522 STREAM_TO_UINT8(btm_cb.cmn_ble_vsc_cb.debug_logging_supported, p); in btm_ble_vendor_capability_vsc_cmpl_cback()
524 btm_cb.cmn_ble_vsc_cb.values_read = true; in btm_ble_vendor_capability_vsc_cmpl_cback()
528 status, btm_cb.cmn_ble_vsc_cb.max_irk_list_sz, in btm_ble_vendor_capability_vsc_cmpl_cback()
529 btm_cb.cmn_ble_vsc_cb.adv_inst_max, btm_cb.cmn_ble_vsc_cb.rpa_offloading, in btm_ble_vendor_capability_vsc_cmpl_cback()
530 btm_cb.cmn_ble_vsc_cb.energy_support, in btm_ble_vendor_capability_vsc_cmpl_cback()
531 btm_cb.cmn_ble_vsc_cb.extended_scan_support); in btm_ble_vendor_capability_vsc_cmpl_cback()
535 if (btm_cb.cmn_ble_vsc_cb.max_filter > 0) btm_ble_adv_filter_init(); in btm_ble_vendor_capability_vsc_cmpl_cback()
539 if (btm_cb.cmn_ble_vsc_cb.max_irk_list_sz > 0 && in btm_ble_vendor_capability_vsc_cmpl_cback()
541 btm_ble_resolving_list_init(btm_cb.cmn_ble_vsc_cb.max_irk_list_sz); in btm_ble_vendor_capability_vsc_cmpl_cback()
544 if (btm_cb.cmn_ble_vsc_cb.tot_scan_results_strg > 0) btm_ble_batchscan_init(); in btm_ble_vendor_capability_vsc_cmpl_cback()
566 *p_cmn_vsc_cb = btm_cb.cmn_ble_vsc_cb; in BTM_BleGetVendorCapabilities()
585 if (btm_cb.cmn_ble_vsc_cb.values_read) return; in BTM_BleReadControllerFeatures()
612 btm_cb.ble_ctr_cb.mixed_mode = mixed_on; in BTM_BleEnableMixedPrivacyMode()
632 tBTM_BLE_CB* p_cb = &btm_cb.ble_ctr_cb; in BTM_BleConfigPrivacy()
658 btm_cb.ble_ctr_cb.mixed_mode ? BTM_PRIVACY_MIXED : BTM_PRIVACY_1_2; in BTM_BleConfigPrivacy()
682 return btm_cb.cmn_ble_vsc_cb.adv_inst_max < BTM_BLE_MULTI_ADV_MAX in BTM_BleMaxMultiAdvInstanceCount()
683 ? btm_cb.cmn_ble_vsc_cb.adv_inst_max in BTM_BleMaxMultiAdvInstanceCount()
698 return (btm_cb.ble_ctr_cb.privacy_mode != BTM_PRIVACY_NONE); in BTM_BleLocalPrivacyEnabled()
721 tBTM_BLE_INQ_CB* p_cb = &btm_cb.ble_ctr_cb.inq_var; in BTM_BleSetConnectableMode()
771 if (btm_cb.ble_ctr_cb.privacy_mode == BTM_PRIVACY_1_2 || in btm_set_conn_mode_adv_init_addr()
772 btm_cb.ble_ctr_cb.privacy_mode == BTM_PRIVACY_MIXED) { in btm_set_conn_mode_adv_init_addr()
798 if ((btm_cb.ble_ctr_cb.privacy_mode == BTM_PRIVACY_1_2 && in btm_set_conn_mode_adv_init_addr()
800 btm_cb.ble_ctr_cb.privacy_mode == BTM_PRIVACY_MIXED) { in btm_set_conn_mode_adv_init_addr()
802 list_foreach(btm_cb.sec_dev_rec, is_resolving_list_bit_set, NULL); in btm_set_conn_mode_adv_init_addr()
820 else if (btm_cb.ble_ctr_cb.privacy_mode != BTM_PRIVACY_NONE) { in btm_set_conn_mode_adv_init_addr()
837 tBTM_BLE_INQ_CB* p_cb = &btm_cb.ble_ctr_cb.inq_var; in BTM_BleSetScanParams()
846 if (btm_cb.cmn_ble_vsc_cb.extended_scan_support == 0) { in BTM_BleSetScanParams()
897 btm_cb.ble_ctr_cb.inq_var.scan_rsp = true; in BTM_BleWriteScanRsp()
899 btm_cb.ble_ctr_cb.inq_var.scan_rsp = false; in BTM_BleWriteScanRsp()
918 return (btm_cb.ble_ctr_cb.inq_var.discoverable_mode); in BTM_BleReadDiscoverability()
934 return (btm_cb.ble_ctr_cb.inq_var.connectable_mode); in BTM_BleReadConnectability()
1026 tBTM_BLE_LOCAL_ADV_DATA* p_adv_data = &btm_cb.ble_ctr_cb.inq_var.adv_data; in btm_ble_set_adv_flag()
1061 tBTM_LE_RANDOM_CB* p_addr_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; in btm_ble_set_discoverability()
1062 tBTM_BLE_INQ_CB* p_cb = &btm_cb.ble_ctr_cb.inq_var; in btm_ble_set_discoverability()
1096 btm_ble_set_adv_flag(btm_cb.btm_inq_vars.connectable_mode, combined_mode); in btm_ble_set_discoverability()
1153 tBTM_LE_RANDOM_CB* p_addr_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; in btm_ble_set_connectability()
1154 tBTM_BLE_INQ_CB* p_cb = &btm_cb.ble_ctr_cb.inq_var; in btm_ble_set_connectability()
1184 btm_ble_set_adv_flag(combined_mode, btm_cb.btm_inq_vars.discoverable_mode); in btm_ble_set_connectability()
1267 tBTM_BLE_CB* p_ble_cb = &btm_cb.ble_ctr_cb; in btm_ble_start_inquiry()
1268 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_ble_start_inquiry()
1271 mode, btm_cb.btm_inq_vars.inq_active); in btm_ble_start_inquiry()
1284 btm_cb.ble_ctr_cb.addr_mgnt_cb.own_addr_type, SP_ADV_ALL); in btm_ble_start_inquiry()
1300 btm_cb.ble_ctr_cb.addr_mgnt_cb.own_addr_type, SP_ADV_ALL); in btm_ble_start_inquiry()
1364 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_ble_read_remote_name()
1402 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_ble_cancel_remote_name()
1427 tBTM_BLE_LOCAL_ADV_DATA* p_adv_data = &btm_cb.ble_ctr_cb.inq_var.adv_data; in btm_ble_update_adv_flag()
1465 tBTM_INQ_PARMS* p_cond = &btm_cb.btm_inq_vars.inqparms; in btm_ble_is_discoverable()
1468 if (BTM_BLE_IS_OBS_ACTIVE(btm_cb.ble_ctr_cb.scan_activity)) in btm_ble_is_discoverable()
1484 if ((btm_cb.btm_inq_vars.inq_active & BTM_BLE_GENERAL_INQUIRY) && in btm_ble_is_discoverable()
1490 else if (btm_cb.btm_inq_vars.inq_active & BTM_BLE_LIMITED_INQUIRY && in btm_ble_is_discoverable()
1636 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_ble_update_inq_result()
1648 if (btm_cb.ble_ctr_cb.inq_var.scan_type == BTM_BLE_SCAN_MODE_ACTI && in btm_ble_update_inq_result()
1728 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_clear_all_pending_le_entry()
1778 if (!BTM_BLE_IS_SCAN_ACTIVE(btm_cb.ble_ctr_cb.scan_activity)) return; in btm_ble_process_ext_adv_pkt()
1840 if (!BTM_BLE_IS_SCAN_ACTIVE(btm_cb.ble_ctr_cb.scan_activity)) return; in btm_ble_process_adv_pkt()
1911 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_ble_process_adv_pkt_cont()
1942 btm_cb.ble_ctr_cb.inq_var.scan_type == BTM_BLE_SCAN_MODE_ACTI; in btm_ble_process_adv_pkt_cont()
1964 } else if (BTM_BLE_IS_OBS_ACTIVE(btm_cb.ble_ctr_cb.scan_activity)) { in btm_ble_process_adv_pkt_cont()
2030 tBTM_INQ_RESULTS_CB* p_obs_results_cb = btm_cb.ble_ctr_cb.p_obs_results_cb; in btm_ble_process_adv_pkt_cont()
2064 tBTM_BLE_INQ_CB* p_inq = &btm_cb.ble_ctr_cb.inq_var; in btm_ble_start_scan()
2088 if (btm_cb.ble_ctr_cb.inq_var.scan_type == BTM_BLE_SCAN_MODE_ACTI) in btm_ble_stop_scan()
2094 btm_cb.ble_ctr_cb.inq_var.scan_type = BTM_BLE_SCAN_MODE_NONE; in btm_ble_stop_scan()
2111 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_ble_stop_inquiry()
2112 tBTM_BLE_CB* p_ble_cb = &btm_cb.ble_ctr_cb; in btm_ble_stop_inquiry()
2146 tBTM_BLE_CB* p_ble_cb = &btm_cb.ble_ctr_cb; in btm_ble_stop_observe()
2158 if (p_obs_cb) (p_obs_cb)(&btm_cb.btm_inq_vars.inq_cmpl_info); in btm_ble_stop_observe()
2212 tBTM_BLE_INQ_CB* p_cb = &btm_cb.ble_ctr_cb.inq_var; in btm_ble_start_adv()
2242 tBTM_BLE_INQ_CB* p_cb = &btm_cb.ble_ctr_cb.inq_var; in btm_ble_stop_adv()
2271 tBTM_BLE_INQ_CB* p_cb = &btm_cb.ble_ctr_cb.inq_var; in btm_ble_start_slow_adv()
2274 tBTM_LE_RANDOM_CB* p_addr_cb = &btm_cb.ble_ctr_cb.addr_mgnt_cb; in btm_ble_start_slow_adv()
2296 btm_cb.btm_inq_vars.discoverable_mode &= ~BTM_BLE_LIMITED_DISCOVERABLE; in btm_ble_inquiry_timer_gap_limited_discovery_timeout()
2297 btm_ble_set_adv_flag(btm_cb.btm_inq_vars.connectable_mode, in btm_ble_inquiry_timer_gap_limited_discovery_timeout()
2298 btm_cb.btm_inq_vars.discoverable_mode); in btm_ble_inquiry_timer_gap_limited_discovery_timeout()
2310 if (btm_cb.ble_ctr_cb.addr_mgnt_cb.own_addr_type == BLE_ADDR_RANDOM) { in btm_ble_refresh_raddr_timer_timeout()
2349 STREAM_TO_ARRAY(btm_cb.acl_db[idx].peer_le_features, p, BD_FEATURES_LEN); in btm_ble_read_remote_features_complete()
2365 tBTM_BLE_INQ_CB* p_cb = &btm_cb.ble_ctr_cb.inq_var; in btm_ble_write_adv_enable_complete()
2384 btm_cb.ble_ctr_cb.inq_var.adv_mode = BTM_BLE_ADV_DISABLE; in btm_ble_dir_adv_tout()
2387 btm_cb.ble_ctr_cb.inq_var.directed_conn = false; in btm_ble_dir_adv_tout()
2401 btm_cb.ble_ctr_cb.cur_states |= (request_state_mask & BTM_BLE_STATE_ALL_MASK); in btm_ble_set_topology_mask()
2416 btm_cb.ble_ctr_cb.cur_states &= ~request_state_mask; in btm_ble_clear_topology_mask()
2433 btm_cb.ble_ctr_cb.link_count[link_role]++; in btm_ble_update_link_topology_mask()
2434 else if (btm_cb.ble_ctr_cb.link_count[link_role] > 0) in btm_ble_update_link_topology_mask()
2435 btm_cb.ble_ctr_cb.link_count[link_role]--; in btm_ble_update_link_topology_mask()
2437 if (btm_cb.ble_ctr_cb.link_count[HCI_ROLE_MASTER]) in btm_ble_update_link_topology_mask()
2440 if (btm_cb.ble_ctr_cb.link_count[HCI_ROLE_SLAVE]) in btm_ble_update_link_topology_mask()
2444 btm_cb.ble_ctr_cb.inq_var.adv_mode = BTM_BLE_ADV_DISABLE; in btm_ble_update_link_topology_mask()
2446 btm_cb.ble_ctr_cb.inq_var.directed_conn = BTM_BLE_CONNECT_EVT; in btm_ble_update_link_topology_mask()
2465 btm_cb.ble_ctr_cb.inq_var.adv_mode = BTM_BLE_ADV_DISABLE; in btm_ble_update_mode_operation()
2467 btm_cb.ble_ctr_cb.inq_var.directed_conn = BTM_BLE_CONNECT_EVT; in btm_ble_update_mode_operation()
2472 if (btm_cb.ble_ctr_cb.inq_var.connectable_mode == BTM_BLE_CONNECTABLE) { in btm_ble_update_mode_operation()
2473 btm_ble_set_connectability(btm_cb.btm_inq_vars.connectable_mode | in btm_ble_update_mode_operation()
2474 btm_cb.ble_ctr_cb.inq_var.connectable_mode); in btm_ble_update_mode_operation()
2503 tBTM_BLE_CB* p_cb = &btm_cb.ble_ctr_cb; in btm_ble_init()
2510 memset(&(btm_cb.cmn_ble_vsc_cb), 0, sizeof(tBTM_BLE_VSC_CB)); in btm_ble_init()
2511 btm_cb.cmn_ble_vsc_cb.values_read = false; in btm_ble_init()
2553 uint16_t cur_states = btm_cb.ble_ctr_cb.cur_states; in btm_ble_topology_check()