Lines Matching refs:btm_cb
172 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_BLE_DISCOVERABLE_MASK); in BTM_SetDiscoverability()
173 btm_cb.btm_inq_vars.discoverable_mode |= in BTM_SetDiscoverability()
223 if ((window != btm_cb.btm_inq_vars.inq_scan_window) || in BTM_SetDiscoverability()
224 (interval != btm_cb.btm_inq_vars.inq_scan_period)) { in BTM_SetDiscoverability()
226 btm_cb.btm_inq_vars.inq_scan_window = window; in BTM_SetDiscoverability()
227 btm_cb.btm_inq_vars.inq_scan_period = interval; in BTM_SetDiscoverability()
230 if (btm_cb.btm_inq_vars.connectable_mode & BTM_CONNECTABLE_MASK) in BTM_SetDiscoverability()
234 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_DISCOVERABLE_MASK); in BTM_SetDiscoverability()
235 btm_cb.btm_inq_vars.discoverable_mode |= inq_mode; in BTM_SetDiscoverability()
284 if (scan_type != btm_cb.btm_inq_vars.inq_scan_type) { in BTM_SetInquiryScanType()
287 btm_cb.btm_inq_vars.inq_scan_type = scan_type; in BTM_SetInquiryScanType()
321 if (scan_type != btm_cb.btm_inq_vars.page_scan_type) { in BTM_SetPageScanType()
324 btm_cb.btm_inq_vars.page_scan_type = scan_type; in BTM_SetPageScanType()
391 if (p_window) *p_window = btm_cb.btm_inq_vars.inq_scan_window; in BTM_ReadDiscoverability()
393 if (p_interval) *p_interval = btm_cb.btm_inq_vars.inq_scan_period; in BTM_ReadDiscoverability()
395 return (btm_cb.btm_inq_vars.discoverable_mode); in BTM_ReadDiscoverability()
415 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_CancelPeriodicInquiry()
423 if (btm_cb.btm_inq_vars.inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) { in BTM_CancelPeriodicInquiry()
424 btm_cb.btm_inq_vars.inq_active = BTM_INQUIRY_INACTIVE; in BTM_CancelPeriodicInquiry()
425 btm_cb.btm_inq_vars.p_inq_results_cb = NULL; in BTM_CancelPeriodicInquiry()
462 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_SetConnectability()
540 if (p_window) *p_window = btm_cb.btm_inq_vars.page_scan_window; in BTM_ReadConnectability()
542 if (p_interval) *p_interval = btm_cb.btm_inq_vars.page_scan_period; in BTM_ReadConnectability()
544 return (btm_cb.btm_inq_vars.connectable_mode); in BTM_ReadConnectability()
567 return (btm_cb.btm_inq_vars.inq_active); in BTM_IsInquiryActive()
587 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_CancelInquiry()
670 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_StartInquiry()
846 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_CancelRemoteDeviceName()
899 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in BTM_InqDbFirst()
926 inx = (uint16_t)((p_ent - btm_cb.btm_inq_vars.inq_db) + 1); in BTM_InqDbNext()
928 for (p_ent = &btm_cb.btm_inq_vars.inq_db[inx]; inx < BTM_INQ_DB_SIZE; in BTM_InqDbNext()
954 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_ClearInqDb()
984 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_inq_db_reset()
1059 alarm_free(btm_cb.btm_inq_vars.remote_name_timer); in btm_inq_db_init()
1060 btm_cb.btm_inq_vars.remote_name_timer = in btm_inq_db_init()
1062 btm_cb.btm_inq_vars.no_inc_ssp = BTM_NO_SSP_ON_INQUIRY; in btm_inq_db_init()
1082 btm_cb.btm_inq_vars.no_inc_ssp, btm_cb.btm_inq_vars.inq_active, in btm_inq_stop_on_ssp()
1083 btm_cb.btm_inq_vars.state, btm_cb.btm_inq_vars.inqfilt_active); in btm_inq_stop_on_ssp()
1085 if (btm_cb.btm_inq_vars.no_inc_ssp) { in btm_inq_stop_on_ssp()
1086 if (btm_cb.btm_inq_vars.state == BTM_INQ_ACTIVE_STATE) { in btm_inq_stop_on_ssp()
1087 if (btm_cb.btm_inq_vars.inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) { in btm_inq_stop_on_ssp()
1089 } else if (btm_cb.btm_inq_vars.inq_active & normal_active) { in btm_inq_stop_on_ssp()
1096 btm_cb.btm_inq_vars.inq_active |= BTM_SSP_INQUIRY_ACTIVE; in btm_inq_stop_on_ssp()
1110 btm_cb.btm_inq_vars.inq_active &= ~BTM_SSP_INQUIRY_ACTIVE; in btm_inq_clear_ssp()
1127 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_clr_inq_db()
1133 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state); in btm_clr_inq_db()
1144 BTM_TRACE_DEBUG("inq_active:0x%x state:%d", btm_cb.btm_inq_vars.inq_active, in btm_clr_inq_db()
1145 btm_cb.btm_inq_vars.state); in btm_clr_inq_db()
1160 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_clr_inq_result_flt()
1178 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_inq_find_bdaddr()
1213 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_find()
1237 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_new()
1238 tINQ_DB_ENT* p_old = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_new()
1329 btm_cb.btm_inq_vars.inqfilt_active = true; in btm_set_inq_event_filter()
1352 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_event_filter_complete()
1358 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_event_filter_complete()
1359 btm_cb.btm_inq_vars.inqfilt_active); in btm_event_filter_complete()
1467 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_initiate_inquiry()
1468 btm_cb.btm_inq_vars.inqfilt_active); in btm_initiate_inquiry()
1526 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_process_inq_results()
1539 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_process_inq_results()
1540 btm_cb.btm_inq_vars.inqfilt_active); in btm_process_inq_results()
1739 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_sort_inq_result()
1740 tINQ_DB_ENT* p_next = btm_cb.btm_inq_vars.inq_db + 1; in btm_sort_inq_result()
1744 num_resp = (btm_cb.btm_inq_vars.inq_cmpl_info.num_resp < BTM_INQ_DB_SIZE) in btm_sort_inq_result()
1745 ? btm_cb.btm_inq_vars.inq_cmpl_info.num_resp in btm_sort_inq_result()
1778 tBTM_CMPL_CB* p_inq_cb = btm_cb.btm_inq_vars.p_inq_cmpl_cb; in btm_process_inq_complete()
1779 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_process_inq_complete()
1786 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_process_inq_complete()
1787 btm_cb.btm_inq_vars.inqfilt_active); in btm_process_inq_complete()
1832 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_process_inq_complete()
1833 btm_cb.btm_inq_vars.inqfilt_active); in btm_process_inq_complete()
1876 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_initiate_rem_name()
1928 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_process_remote_name()
2002 btm_cb.btm_inq_vars.remname_active); in btm_inq_rmt_name_failed_cancelled()
2004 if (btm_cb.btm_inq_vars.remname_active) in btm_inq_rmt_name_failed_cancelled()
2005 btm_process_remote_name(&btm_cb.btm_inq_vars.remname_bda, NULL, 0, in btm_inq_rmt_name_failed_cancelled()
2023 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_inq_tx_power_cmpl_cb; in btm_read_inq_tx_power_timeout()
2024 btm_cb.devcb.p_inq_tx_power_cmpl_cb = NULL; in btm_read_inq_tx_power_timeout()
2038 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_inq_tx_power_cmpl_cb; in btm_read_inq_tx_power_complete()
2042 alarm_cancel(btm_cb.devcb.read_inq_tx_power_timer); in btm_read_inq_tx_power_complete()
2043 btm_cb.devcb.p_inq_tx_power_cmpl_cb = NULL; in btm_read_inq_tx_power_complete()