Lines Matching refs:btm_cb
157 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_BLE_DISCOVERABLE_MASK); in BTM_SetDiscoverability()
158 btm_cb.btm_inq_vars.discoverable_mode |= in BTM_SetDiscoverability()
208 if ((window != btm_cb.btm_inq_vars.inq_scan_window) || in BTM_SetDiscoverability()
209 (interval != btm_cb.btm_inq_vars.inq_scan_period)) { in BTM_SetDiscoverability()
211 btm_cb.btm_inq_vars.inq_scan_window = window; in BTM_SetDiscoverability()
212 btm_cb.btm_inq_vars.inq_scan_period = interval; in BTM_SetDiscoverability()
215 if (btm_cb.btm_inq_vars.connectable_mode & BTM_CONNECTABLE_MASK) in BTM_SetDiscoverability()
219 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_DISCOVERABLE_MASK); in BTM_SetDiscoverability()
220 btm_cb.btm_inq_vars.discoverable_mode |= inq_mode; in BTM_SetDiscoverability()
265 if (scan_type != btm_cb.btm_inq_vars.inq_scan_type) { in BTM_SetInquiryScanType()
268 btm_cb.btm_inq_vars.inq_scan_type = scan_type; in BTM_SetInquiryScanType()
298 if (scan_type != btm_cb.btm_inq_vars.page_scan_type) { in BTM_SetPageScanType()
301 btm_cb.btm_inq_vars.page_scan_type = scan_type; in BTM_SetPageScanType()
360 if (p_window) *p_window = btm_cb.btm_inq_vars.inq_scan_window; in BTM_ReadDiscoverability()
362 if (p_interval) *p_interval = btm_cb.btm_inq_vars.inq_scan_period; in BTM_ReadDiscoverability()
364 return (btm_cb.btm_inq_vars.discoverable_mode); in BTM_ReadDiscoverability()
409 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_SetPeriodicInquiryMode()
495 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_CancelPeriodicInquiry()
503 if (btm_cb.btm_inq_vars.inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) { in BTM_CancelPeriodicInquiry()
504 btm_cb.btm_inq_vars.inq_active = BTM_INQUIRY_INACTIVE; in BTM_CancelPeriodicInquiry()
505 btm_cb.btm_inq_vars.p_inq_results_cb = NULL; in BTM_CancelPeriodicInquiry()
538 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_SetConnectability()
612 if (p_window) *p_window = btm_cb.btm_inq_vars.page_scan_window; in BTM_ReadConnectability()
614 if (p_interval) *p_interval = btm_cb.btm_inq_vars.page_scan_period; in BTM_ReadConnectability()
616 return (btm_cb.btm_inq_vars.connectable_mode); in BTM_ReadConnectability()
635 return (btm_cb.btm_inq_vars.inq_active); in BTM_IsInquiryActive()
651 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_CancelInquiry()
734 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_StartInquiry()
749 btm_cb.ble_ctr_cb.inq_var.scan_type = BTM_BLE_SCAN_MODE_NONE; in BTM_StartInquiry()
910 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_CancelRemoteDeviceName()
964 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in BTM_InqDbFirst()
991 inx = (uint16_t)((p_ent - btm_cb.btm_inq_vars.inq_db) + 1); in BTM_InqDbNext()
993 for (p_ent = &btm_cb.btm_inq_vars.inq_db[inx]; inx < BTM_INQ_DB_SIZE; in BTM_InqDbNext()
1019 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in BTM_ClearInqDb()
1042 if (btm_cb.devcb.p_inq_tx_power_cmpl_cb) return (BTM_BUSY); in BTM_ReadInquiryRspTxPower()
1044 btm_cb.devcb.p_inq_tx_power_cmpl_cb = p_cb; in BTM_ReadInquiryRspTxPower()
1045 alarm_set_on_mloop(btm_cb.devcb.read_inq_tx_power_timer, in BTM_ReadInquiryRspTxPower()
1072 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_inq_db_reset()
1147 alarm_free(btm_cb.btm_inq_vars.remote_name_timer); in btm_inq_db_init()
1148 btm_cb.btm_inq_vars.remote_name_timer = in btm_inq_db_init()
1150 btm_cb.btm_inq_vars.no_inc_ssp = BTM_NO_SSP_ON_INQUIRY; in btm_inq_db_init()
1170 btm_cb.btm_inq_vars.no_inc_ssp, btm_cb.btm_inq_vars.inq_active, in btm_inq_stop_on_ssp()
1171 btm_cb.btm_inq_vars.state, btm_cb.btm_inq_vars.inqfilt_active); in btm_inq_stop_on_ssp()
1173 if (btm_cb.btm_inq_vars.no_inc_ssp) { in btm_inq_stop_on_ssp()
1174 if (btm_cb.btm_inq_vars.state == BTM_INQ_ACTIVE_STATE) { in btm_inq_stop_on_ssp()
1175 if (btm_cb.btm_inq_vars.inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) { in btm_inq_stop_on_ssp()
1177 } else if (btm_cb.btm_inq_vars.inq_active & normal_active) { in btm_inq_stop_on_ssp()
1184 btm_cb.btm_inq_vars.inq_active |= BTM_SSP_INQUIRY_ACTIVE; in btm_inq_stop_on_ssp()
1198 btm_cb.btm_inq_vars.inq_active &= ~BTM_SSP_INQUIRY_ACTIVE; in btm_inq_clear_ssp()
1215 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_clr_inq_db()
1221 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state); in btm_clr_inq_db()
1232 BTM_TRACE_DEBUG("inq_active:0x%x state:%d", btm_cb.btm_inq_vars.inq_active, in btm_clr_inq_db()
1233 btm_cb.btm_inq_vars.state); in btm_clr_inq_db()
1248 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_clr_inq_result_flt()
1266 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_inq_find_bdaddr()
1301 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_find()
1325 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_new()
1326 tINQ_DB_ENT* p_old = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_new()
1417 btm_cb.btm_inq_vars.inqfilt_active = true; in btm_set_inq_event_filter()
1440 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_event_filter_complete()
1446 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_event_filter_complete()
1447 btm_cb.btm_inq_vars.inqfilt_active); in btm_event_filter_complete()
1555 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_initiate_inquiry()
1556 btm_cb.btm_inq_vars.inqfilt_active); in btm_initiate_inquiry()
1613 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_process_inq_results()
1626 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_process_inq_results()
1627 btm_cb.btm_inq_vars.inqfilt_active); in btm_process_inq_results()
1805 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_sort_inq_result()
1806 tINQ_DB_ENT* p_next = btm_cb.btm_inq_vars.inq_db + 1; in btm_sort_inq_result()
1810 num_resp = (btm_cb.btm_inq_vars.inq_cmpl_info.num_resp < BTM_INQ_DB_SIZE) in btm_sort_inq_result()
1811 ? btm_cb.btm_inq_vars.inq_cmpl_info.num_resp in btm_sort_inq_result()
1844 tBTM_CMPL_CB* p_inq_cb = btm_cb.btm_inq_vars.p_inq_cmpl_cb; in btm_process_inq_complete()
1845 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_process_inq_complete()
1859 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_process_inq_complete()
1860 btm_cb.btm_inq_vars.inqfilt_active); in btm_process_inq_complete()
1911 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, in btm_process_inq_complete()
1912 btm_cb.btm_inq_vars.inqfilt_active); in btm_process_inq_complete()
1955 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_initiate_rem_name()
2015 tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars; in btm_process_remote_name()
2089 btm_cb.btm_inq_vars.remname_active); in btm_inq_rmt_name_failed()
2091 if (btm_cb.btm_inq_vars.remname_active) in btm_inq_rmt_name_failed()
2092 btm_process_remote_name(&btm_cb.btm_inq_vars.remname_bda, NULL, 0, in btm_inq_rmt_name_failed()
2110 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_inq_tx_power_cmpl_cb; in btm_read_inq_tx_power_timeout()
2111 btm_cb.devcb.p_inq_tx_power_cmpl_cb = NULL; in btm_read_inq_tx_power_timeout()
2125 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_inq_tx_power_cmpl_cb; in btm_read_inq_tx_power_complete()
2129 alarm_cancel(btm_cb.devcb.read_inq_tx_power_timer); in btm_read_inq_tx_power_complete()
2130 btm_cb.devcb.p_inq_tx_power_cmpl_cb = NULL; in btm_read_inq_tx_power_complete()