Lines Matching refs:inq_active
473 if (p_inq->inq_active || p_inq->inqfilt_active) in BTM_SetPeriodicInquiryMode()
502 p_inq->inq_active = (UINT8)((p_inqparms->mode == BTM_LIMITED_INQUIRY) ? in BTM_SetPeriodicInquiryMode()
554 if (btm_cb.btm_inq_vars.inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) in BTM_CancelPeriodicInquiry()
556 btm_cb.btm_inq_vars.inq_active = BTM_INQUIRY_INACTIVE; in BTM_CancelPeriodicInquiry()
710 return(btm_cb.btm_inq_vars.inq_active); in BTM_IsInquiryActive()
731 UINT8 active_mode=p_inq->inq_active; in BTM_CancelInquiry()
740 if ((p_inq->inq_active &BTM_INQUIRY_ACTIVE_MASK) != 0 && in BTM_CancelInquiry()
741 (!(p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE))) in BTM_CancelInquiry()
743 p_inq->inq_active = BTM_INQUIRY_INACTIVE; in BTM_CancelInquiry()
831 if (p_inq->inq_active || p_inq->inqfilt_active) in BTM_StartInquiry()
839 p_inq->inq_active = BTM_INQUIRY_INACTIVE; in BTM_StartInquiry()
880 p_inq->inq_active = p_inqparms->mode; in BTM_StartInquiry()
882 BTM_TRACE_DEBUG("BTM_StartInquiry: p_inq->inq_active = 0x%02x", p_inq->inq_active); in BTM_StartInquiry()
914 p_inq->inq_active = (p_inqparms->mode & BTM_BLE_INQUIRY_MASK); in BTM_StartInquiry()
967 p_inq->inq_active = (p_inqparms->mode & BTM_BR_INQUIRY_MASK); in BTM_StartInquiry()
1223 if (p_inq->inq_active != BTM_INQUIRY_INACTIVE || in BTM_ClearInqDb()
1291 if (p_inq->inq_active != BTM_INQUIRY_INACTIVE) in btm_inq_db_reset()
1293 temp_inq_active = p_inq->inq_active; /* Save so state can change BEFORE in btm_inq_db_reset()
1295 p_inq->inq_active = BTM_INQUIRY_INACTIVE; in btm_inq_db_reset()
1389 …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()
1395 if (btm_cb.btm_inq_vars.inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) in btm_inq_stop_on_ssp()
1399 else if (btm_cb.btm_inq_vars.inq_active & normal_active) in btm_inq_stop_on_ssp()
1406 btm_cb.btm_inq_vars.inq_active |= BTM_SSP_INQUIRY_ACTIVE; in btm_inq_stop_on_ssp()
1421 btm_cb.btm_inq_vars.inq_active &= ~BTM_SSP_INQUIRY_ACTIVE; in btm_inq_clear_ssp()
1445 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state); in btm_clr_inq_db()
1461 btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state); in btm_clr_inq_db()
1506 if ((p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) || !p_db) in btm_inq_find_bdaddr()
1694 … 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()
1736 p_inq->inq_active = BTM_INQUIRY_INACTIVE; in btm_event_filter_complete()
1793 … btm_cb.btm_inq_vars.inq_active, btm_cb.btm_inq_vars.state, btm_cb.btm_inq_vars.inqfilt_active); in btm_initiate_inquiry()
1797 if (p_inq->inq_active & BTM_SSP_INQUIRY_ACTIVE) in btm_initiate_inquiry()
1806 lap = (p_inq->inq_active & BTM_LIMITED_INQUIRY_ACTIVE) ? &limited_inq_lap : &general_inq_lap; in btm_initiate_inquiry()
1808 if (p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) in btm_initiate_inquiry()
1870 … 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()
1873 if (!(p_inq->inq_active & BTM_BR_INQ_ACTIVE_MASK)) in btm_process_inq_results()
2009 if (!(p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) && in btm_process_inq_results()
2116 if(status!=HCI_SUCCESS || p_inq->next_state==BTM_FINISH || !p_inq->inq_active) in btm_process_inq_complete()
2130 if(p_inq->scan_type == INQ_LE_OBSERVE && !p_inq->inq_active) in btm_process_inq_complete()
2141 … 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()
2145 if (p_inq->inq_active) in btm_process_inq_complete()
2150 if (!(p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) && p_inq->inqparms.mode == 0) in btm_process_inq_complete()
2170 p_inq->inq_active = BTM_INQUIRY_INACTIVE; in btm_process_inq_complete()
2181 if(p_inq->inqparms.mode != 0 && !(p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE)) in btm_process_inq_complete()
2184 p_inq->inq_active = BTM_INQUIRY_INACTIVE; in btm_process_inq_complete()
2204 … 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()