Lines Matching refs:mode
377 tBTM_STATUS BTM_SetInquiryMode (UINT8 mode) in BTM_SetInquiryMode() argument
381 if (mode == BTM_INQ_RESULT_STANDARD) in BTM_SetInquiryMode()
385 else if (mode == BTM_INQ_RESULT_WITH_RSSI) in BTM_SetInquiryMode()
390 else if (mode == BTM_INQ_RESULT_EXTENDED) in BTM_SetInquiryMode()
401 if (!btsnd_hcic_write_inquiry_mode (mode)) in BTM_SetInquiryMode()
470 p_inqparms->mode, p_inqparms->duration, p_inqparms->max_resps, in BTM_SetPeriodicInquiryMode()
483 if (p_inqparms->mode != BTM_GENERAL_INQUIRY && in BTM_SetPeriodicInquiryMode()
484 p_inqparms->mode != BTM_LIMITED_INQUIRY) in BTM_SetPeriodicInquiryMode()
508 p_inq->inq_active = (UINT8)((p_inqparms->mode == BTM_LIMITED_INQUIRY) ? in BTM_SetPeriodicInquiryMode()
764 if (((p_inq->inqparms.mode & BTM_BR_INQUIRY_MASK) != 0) in BTM_CancelInquiry()
774 if (((p_inq->inqparms.mode & BTM_BLE_INQUIRY_MASK) != 0) in BTM_CancelInquiry()
832 p_inqparms->mode, p_inqparms->duration, p_inqparms->max_resps, in BTM_StartInquiry()
863 if ((p_inqparms->mode & BTM_BR_INQUIRY_MASK)!= BTM_GENERAL_INQUIRY && in BTM_StartInquiry()
864 (p_inqparms->mode & BTM_BR_INQUIRY_MASK)!= BTM_LIMITED_INQUIRY in BTM_StartInquiry()
866 && (p_inqparms->mode & BTM_BLE_INQUIRY_MASK)!= BTM_BLE_GENERAL_INQUIRY in BTM_StartInquiry()
867 && (p_inqparms->mode & BTM_BLE_INQUIRY_MASK)!= BTM_BLE_LIMITED_INQUIRY in BTM_StartInquiry()
886 p_inq->inq_active = p_inqparms->mode; in BTM_StartInquiry()
894 if((p_inqparms->mode & BTM_BLE_INQUIRY_MASK) && (p_inqparms->mode & BTM_BR_INQUIRY_MASK)) in BTM_StartInquiry()
902 BTM_TRACE_API("BTM:Single Mode: No interleaving, Mode:0x%02x", p_inqparms->mode); in BTM_StartInquiry()
911 if ((p_inqparms->mode & BTM_BLE_INQUIRY_MASK) in BTM_StartInquiry()
920 p_inq->inq_active = (p_inqparms->mode & BTM_BLE_INQUIRY_MASK); in BTM_StartInquiry()
922 p_inqparms->duration, (p_inqparms->mode & BTM_BLE_INQUIRY_MASK)); in BTM_StartInquiry()
926 p_inq->inqparms.mode &= ~ BTM_BLE_INQUIRY_MASK; in BTM_StartInquiry()
930 else if ((status = btm_ble_start_inquiry((UINT8)(p_inqparms->mode & BTM_BLE_INQUIRY_MASK), in BTM_StartInquiry()
934 p_inq->inqparms.mode &= ~ BTM_BLE_INQUIRY_MASK; in BTM_StartInquiry()
937 p_inqparms->mode &= ~BTM_BLE_INQUIRY_MASK; in BTM_StartInquiry()
960 BTM_TRACE_DEBUG("BTM_StartInquiry: mode = %02x", p_inqparms->mode); in BTM_StartInquiry()
965 if ((p_inqparms->mode & BTM_BR_INQUIRY_MASK) == BTM_INQUIRY_NONE) in BTM_StartInquiry()
973 p_inq->inq_active = (p_inqparms->mode & BTM_BR_INQUIRY_MASK); in BTM_StartInquiry()
1736 …btm_process_inq_complete (BTM_ERR_PROCESSING, (UINT8)(p_inq->inqparms.mode & BTM_BR_INQUIRY_MASK)); in btm_event_filter_complete()
1758 …btm_process_inq_complete (BTM_ERR_PROCESSING, (UINT8)(p_inq->inqparms.mode & BTM_BR_INQUIRY_MASK)); in btm_event_filter_complete()
1803 … btm_process_inq_complete (BTM_NO_RESOURCES, (UINT8)(p_inqparms->mode & BTM_BR_INQUIRY_MASK)); in btm_initiate_inquiry()
1818 … btm_process_inq_complete (BTM_NO_RESOURCES, (UINT8)(p_inqparms->mode & BTM_BR_INQUIRY_MASK)); in btm_initiate_inquiry()
1829 … btm_process_inq_complete (BTM_NO_RESOURCES, (UINT8)(p_inqparms->mode & BTM_BR_INQUIRY_MASK)); in btm_initiate_inquiry()
2019 && ((((p_inq->inqparms.mode & BTM_BLE_INQUIRY_MASK) != 0) && in btm_process_inq_results()
2021 (p_inq->inqparms.mode & BTM_BLE_INQUIRY_MASK) == 0) in btm_process_inq_results()
2029 if ((p_inq->inqparms.mode & BTM_BLE_INQUIRY_MASK) != 0) in btm_process_inq_results()
2106 void btm_process_inq_complete (UINT8 status, UINT8 mode) in btm_process_inq_complete() argument
2120 p_inq->inqparms.mode &= ~(p_inq->inqparms.mode); in btm_process_inq_complete()
2126 p_inq->inqparms.mode &= ~(mode); in btm_process_inq_complete()
2149 if (!(p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) && p_inq->inqparms.mode == 0) in btm_process_inq_complete()
2180 if(p_inq->inqparms.mode != 0 && !(p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE)) in btm_process_inq_complete()
2189 if(p_inq->inqparms.mode == 0 && p_inq->scan_type == INQ_GENERAL)//this inquiry is complete in btm_process_inq_complete()
2219 void btm_process_cancel_complete(UINT8 status, UINT8 mode) in btm_process_cancel_complete() argument
2222 btm_process_inq_complete(status, mode); in btm_process_cancel_complete()