Lines Matching refs:btm_cb
180 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_BLE_DISCOVERABLE_MASK); in BTM_SetDiscoverability()
181 btm_cb.btm_inq_vars.discoverable_mode |= (inq_mode & BTM_BLE_DISCOVERABLE_MASK); in BTM_SetDiscoverability()
242 if ((window != btm_cb.btm_inq_vars.inq_scan_window) || in BTM_SetDiscoverability()
243 (interval != btm_cb.btm_inq_vars.inq_scan_period)) in BTM_SetDiscoverability()
247 btm_cb.btm_inq_vars.inq_scan_window = window; in BTM_SetDiscoverability()
248 btm_cb.btm_inq_vars.inq_scan_period = interval; in BTM_SetDiscoverability()
254 if (btm_cb.btm_inq_vars.connectable_mode & BTM_CONNECTABLE_MASK) in BTM_SetDiscoverability()
259 btm_cb.btm_inq_vars.discoverable_mode &= (~BTM_DISCOVERABLE_MASK); in BTM_SetDiscoverability()
260 btm_cb.btm_inq_vars.discoverable_mode |= inq_mode; in BTM_SetDiscoverability()
310 if (scan_type != btm_cb.btm_inq_vars.inq_scan_type) in BTM_SetInquiryScanType()
315 btm_cb.btm_inq_vars.inq_scan_type = scan_type; in BTM_SetInquiryScanType()
347 if (scan_type != btm_cb.btm_inq_vars.page_scan_type) in BTM_SetPageScanType()
352 btm_cb.btm_inq_vars.page_scan_type = scan_type; in BTM_SetPageScanType()
425 *p_window = btm_cb.btm_inq_vars.inq_scan_window; in BTM_ReadDiscoverability()
428 *p_interval = btm_cb.btm_inq_vars.inq_scan_period; in BTM_ReadDiscoverability()
430 return (btm_cb.btm_inq_vars.discoverable_mode); in BTM_ReadDiscoverability()
467 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in BTM_SetPeriodicInquiryMode()
551 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in BTM_CancelPeriodicInquiry()
560 if (btm_cb.btm_inq_vars.inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) in BTM_CancelPeriodicInquiry()
562 btm_cb.btm_inq_vars.inq_active = BTM_INQUIRY_INACTIVE; in BTM_CancelPeriodicInquiry()
563 btm_cb.btm_inq_vars.p_inq_results_cb = (tBTM_INQ_RESULTS_CB *) NULL; in BTM_CancelPeriodicInquiry()
597 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in BTM_SetConnectability()
690 *p_window = btm_cb.btm_inq_vars.page_scan_window; in BTM_ReadConnectability()
693 *p_interval = btm_cb.btm_inq_vars.page_scan_period; in BTM_ReadConnectability()
695 return (btm_cb.btm_inq_vars.connectable_mode); in BTM_ReadConnectability()
716 return(btm_cb.btm_inq_vars.inq_active); in BTM_IsInquiryActive()
735 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in BTM_CancelInquiry()
829 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in BTM_StartInquiry()
846 btm_cb.ble_ctr_cb.inq_var.scan_type = BTM_BLE_SCAN_MODE_NONE; in BTM_StartInquiry()
1097 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in BTM_CancelRemoteDeviceName()
1162 tINQ_DB_ENT *p_ent = btm_cb.btm_inq_vars.inq_db; in BTM_InqDbFirst()
1194 inx = (UINT16)((p_ent - btm_cb.btm_inq_vars.inq_db) + 1); in BTM_InqDbNext()
1196 for (p_ent = &btm_cb.btm_inq_vars.inq_db[inx]; inx < BTM_INQ_DB_SIZE; inx++, p_ent++) in BTM_InqDbNext()
1226 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in BTM_ClearInqDb()
1251 if (btm_cb.devcb.p_inq_tx_power_cmpl_cb) in BTM_ReadInquiryRspTxPower()
1254 btm_cb.devcb.p_inq_tx_power_cmpl_cb = p_cb; in BTM_ReadInquiryRspTxPower()
1255 alarm_set_on_queue(btm_cb.devcb.read_inq_tx_power_timer, in BTM_ReadInquiryRspTxPower()
1262 btm_cb.devcb.p_inq_tx_power_cmpl_cb = NULL; in BTM_ReadInquiryRspTxPower()
1263 alarm_cancel(btm_cb.devcb.read_inq_tx_power_timer); in BTM_ReadInquiryRspTxPower()
1290 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in btm_inq_db_reset()
1374 memset (&btm_cb.btm_inq_vars, 0, sizeof (tBTM_INQUIRY_VAR_ST)); in btm_inq_db_init()
1376 alarm_free(btm_cb.btm_inq_vars.remote_name_timer); in btm_inq_db_init()
1377 btm_cb.btm_inq_vars.remote_name_timer = in btm_inq_db_init()
1379 btm_cb.btm_inq_vars.no_inc_ssp = BTM_NO_SSP_ON_INQUIRY; in btm_inq_db_init()
1397 …btm_cb.btm_inq_vars.no_inc_ssp, btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, btm_cb.… in btm_inq_stop_on_ssp()
1399 if (btm_cb.btm_inq_vars.no_inc_ssp) in btm_inq_stop_on_ssp()
1401 if (btm_cb.btm_inq_vars.state == BTM_INQ_ACTIVE_STATE) in btm_inq_stop_on_ssp()
1403 if (btm_cb.btm_inq_vars.inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) in btm_inq_stop_on_ssp()
1407 else if (btm_cb.btm_inq_vars.inq_active & normal_active) in btm_inq_stop_on_ssp()
1414 btm_cb.btm_inq_vars.inq_active |= BTM_SSP_INQUIRY_ACTIVE; in btm_inq_stop_on_ssp()
1429 btm_cb.btm_inq_vars.inq_active &= ~BTM_SSP_INQUIRY_ACTIVE; in btm_inq_clear_ssp()
1447 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in btm_clr_inq_db()
1453 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state); in btm_clr_inq_db()
1469 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state); in btm_clr_inq_db()
1486 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in btm_clr_inq_result_flt()
1505 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in btm_inq_find_bdaddr()
1544 tINQ_DB_ENT *p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_find()
1570 tINQ_DB_ENT *p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_new()
1571 tINQ_DB_ENT *p_old = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_new()
1666 btm_cb.btm_inq_vars.inqfilt_active = TRUE; in btm_set_inq_event_filter()
1693 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in btm_event_filter_complete()
1698 … btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, btm_cb.btm_inq_vars.inqfilt_active); in btm_event_filter_complete()
1797 … btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, btm_cb.btm_inq_vars.inqfilt_active); in btm_initiate_inquiry()
1857 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in btm_process_inq_results()
1869 … btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, btm_cb.btm_inq_vars.inqfilt_active); in btm_process_inq_results()
2071 tINQ_DB_ENT *p_ent = btm_cb.btm_inq_vars.inq_db; in btm_sort_inq_result()
2072 tINQ_DB_ENT *p_next = btm_cb.btm_inq_vars.inq_db+1; in btm_sort_inq_result()
2076 num_resp = (btm_cb.btm_inq_vars.inq_cmpl_info.num_resp<BTM_INQ_DB_SIZE)? in btm_sort_inq_result()
2077 btm_cb.btm_inq_vars.inq_cmpl_info.num_resp: BTM_INQ_DB_SIZE; in btm_sort_inq_result()
2108 tBTM_CMPL_CB *p_inq_cb = btm_cb.btm_inq_vars.p_inq_cmpl_cb; in btm_process_inq_complete()
2109 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in btm_process_inq_complete()
2140 … btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, btm_cb.btm_inq_vars.inqfilt_active); in btm_process_inq_complete()
2203 … btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, btm_cb.btm_inq_vars.inqfilt_active); in btm_process_inq_complete()
2248 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in btm_initiate_rem_name()
2326 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars; in btm_process_remote_name()
2418 …BTM_TRACE_ERROR ("btm_inq_rmt_name_failed() remname_active=%d", btm_cb.btm_inq_vars.remname_activ… in btm_inq_rmt_name_failed()
2420 if (btm_cb.btm_inq_vars.remname_active) in btm_inq_rmt_name_failed()
2421 btm_process_remote_name (btm_cb.btm_inq_vars.remname_bda, NULL, 0, HCI_ERR_UNSPECIFIED); in btm_inq_rmt_name_failed()
2439 tBTM_CMPL_CB *p_cb = btm_cb.devcb.p_inq_tx_power_cmpl_cb; in btm_read_inq_tx_power_timeout()
2440 btm_cb.devcb.p_inq_tx_power_cmpl_cb = NULL; in btm_read_inq_tx_power_timeout()
2456 tBTM_CMPL_CB *p_cb = btm_cb.devcb.p_inq_tx_power_cmpl_cb; in btm_read_inq_tx_power_complete()
2460 alarm_cancel(btm_cb.devcb.read_inq_tx_power_timer); in btm_read_inq_tx_power_complete()
2461 btm_cb.devcb.p_inq_tx_power_cmpl_cb = NULL; in btm_read_inq_tx_power_complete()