• Home
  • Raw
  • Download

Lines Matching refs:p_inqparms

405 tBTM_STATUS BTM_SetPeriodicInquiryMode(tBTM_INQ_PARMS* p_inqparms,  in BTM_SetPeriodicInquiryMode()  argument
414 p_inqparms->mode, p_inqparms->duration, p_inqparms->max_resps, in BTM_SetPeriodicInquiryMode()
415 p_inqparms->filter_cond_type, min_delay, max_delay); in BTM_SetPeriodicInquiryMode()
425 if (p_inqparms->mode != BTM_GENERAL_INQUIRY && in BTM_SetPeriodicInquiryMode()
426 p_inqparms->mode != BTM_LIMITED_INQUIRY) in BTM_SetPeriodicInquiryMode()
430 if (p_inqparms->duration < BTM_MIN_INQUIRY_LEN || in BTM_SetPeriodicInquiryMode()
431 p_inqparms->duration > BTM_MAX_INQUIRY_LENGTH || in BTM_SetPeriodicInquiryMode()
432 min_delay <= p_inqparms->duration || in BTM_SetPeriodicInquiryMode()
445 p_inq->inqparms = *p_inqparms; in BTM_SetPeriodicInquiryMode()
452 (p_inqparms->mode == BTM_LIMITED_INQUIRY) in BTM_SetPeriodicInquiryMode()
462 if (p_inqparms->filter_cond_type != BTM_CLR_INQUIRY_FILTER) { in BTM_SetPeriodicInquiryMode()
464 p_inqparms->filter_cond_type = BTM_CLR_INQUIRY_FILTER; in BTM_SetPeriodicInquiryMode()
471 status = btm_set_inq_event_filter(p_inqparms->filter_cond_type, in BTM_SetPeriodicInquiryMode()
472 &p_inqparms->filter_cond); in BTM_SetPeriodicInquiryMode()
731 tBTM_STATUS BTM_StartInquiry(tBTM_INQ_PARMS* p_inqparms, in BTM_StartInquiry() argument
737 p_inqparms->mode, p_inqparms->duration, p_inqparms->max_resps, in BTM_StartInquiry()
738 p_inqparms->filter_cond_type); in BTM_StartInquiry()
765 if ((p_inqparms->mode & BTM_BR_INQUIRY_MASK) != BTM_GENERAL_INQUIRY && in BTM_StartInquiry()
766 (p_inqparms->mode & BTM_BR_INQUIRY_MASK) != BTM_LIMITED_INQUIRY && in BTM_StartInquiry()
767 (p_inqparms->mode & BTM_BLE_INQUIRY_MASK) != BTM_BLE_GENERAL_INQUIRY && in BTM_StartInquiry()
768 (p_inqparms->mode & BTM_BLE_INQUIRY_MASK) != BTM_BLE_LIMITED_INQUIRY) { in BTM_StartInquiry()
770 << std::to_string(p_inqparms->mode); in BTM_StartInquiry()
776 p_inq->inqparms = *p_inqparms; in BTM_StartInquiry()
783 p_inq->inq_active = p_inqparms->mode; in BTM_StartInquiry()
790 if ((p_inqparms->mode & BTM_BLE_INQUIRY_MASK)) { in BTM_StartInquiry()
798 (uint8_t)(p_inqparms->mode & BTM_BLE_INQUIRY_MASK), in BTM_StartInquiry()
799 p_inqparms->duration); in BTM_StartInquiry()
805 p_inqparms->mode &= ~BTM_BLE_INQUIRY_MASK; in BTM_StartInquiry()
807 BTM_TRACE_DEBUG("BTM_StartInquiry: mode = %02x", p_inqparms->mode); in BTM_StartInquiry()
811 if ((p_inqparms->mode & BTM_BR_INQUIRY_MASK) == BTM_INQUIRY_NONE) { in BTM_StartInquiry()
822 switch (p_inqparms->filter_cond_type) { in BTM_StartInquiry()
832 p_inqparms->filter_cond_type = BTM_CLR_INQUIRY_FILTER; in BTM_StartInquiry()
838 << std::to_string(p_inqparms->filter_cond_type); in BTM_StartInquiry()
844 status = btm_set_inq_event_filter(p_inqparms->filter_cond_type, in BTM_StartInquiry()
845 &p_inqparms->filter_cond); in BTM_StartInquiry()
1550 tBTM_INQ_PARMS* p_inqparms = &p_inq->inqparms; in btm_initiate_inquiry() local
1562 (uint8_t)(p_inqparms->mode & BTM_BR_INQUIRY_MASK)); in btm_initiate_inquiry()
1568 p_inqparms->max_resps = (uint8_t)((p_inqparms->max_resps <= BTM_INQ_DB_SIZE) in btm_initiate_inquiry()
1569 ? p_inqparms->max_resps in btm_initiate_inquiry()
1577 p_inqparms->duration, p_inqparms->max_resps); in btm_initiate_inquiry()
1586 btsnd_hcic_inquiry(*lap, p_inqparms->duration, 0); in btm_initiate_inquiry()