Lines Matching defs:p_inq
153 tBTM_BLE_INQ_CB *p_inq = &btm_cb.ble_ctr_cb.inq_var;
164 if (btm_cb.btm_inq_vars.inq_active || p_inq->proc_mode != BTM_BLE_INQUIRY_NONE)
169 p_inq->scan_type = (p_inq->scan_type == BTM_BLE_SCAN_MODE_NONE) ? BTM_BLE_SCAN_MODE_ACTI: p_inq->scan_type;
172 if (btsnd_hcic_ble_set_scan_params (p_inq->scan_type,
173 (UINT16)(!p_inq->scan_interval ? BTM_BLE_GAP_DISC_SCAN_INT : p_inq->scan_interval),
174 (UINT16)(!p_inq->scan_window ? BTM_BLE_GAP_DISC_SCAN_WIN : p_inq->scan_window),
182 p_inq->proc_mode = BTM_BLE_OBSERVE;
188 btu_start_timer (&p_inq->inq_timer_ent, BTU_TTYPE_BLE_INQUIRY, duration);
193 else if (p_inq->proc_mode == BTM_BLE_OBSERVE)
1106 tBTM_BLE_INQ_CB *p_inq = &btm_cb.ble_ctr_cb.inq_var;
1110 if (p_inq->proc_mode != BTM_BLE_INQUIRY_NONE)
1122 p_inq->proc_mode = mode;
1127 btu_start_timer (&p_inq->inq_timer_ent, BTU_TTYPE_BLE_INQUIRY, duration);
1174 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars;
1188 if (p_inq->remname_active)
1194 p_inq->p_remname_cmpl_cb = p_cb;
1195 p_inq->remname_active = TRUE;
1197 memcpy(p_inq->remname_bda, remote_bda, BD_ADDR_LEN);
1199 btu_start_timer (&p_inq->rmt_name_timer_ent,
1219 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars;
1224 p_inq->remname_active = FALSE;
1225 memset(p_inq->remname_bda, 0, BD_ADDR_LEN);
1226 btu_stop_timer(&p_inq->rmt_name_timer_ent);
1518 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars;
1550 if (p_i->inq_count != p_inq->inq_counter)
1558 p_i->inq_count = p_inq->inq_counter; /* Mark entry for current inquiry */
1687 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars;
1688 tBTM_INQ_RESULTS_CB *p_inq_results_cb = p_inq->p_inq_results_cb;
1725 p_inq->inq_cmpl_info.num_resp++;
1737 else if (p_i->inq_count != p_inq->inq_counter) /* first time seen in this inquiry */
1739 p_inq->inq_cmpl_info.num_resp++;
1750 if (p_inq->inqparms.max_resps &&
1751 p_inq->inq_cmpl_info.num_resp == p_inq->inqparms.max_resps)
1761 if ((p_inq->inq_active & BTM_BR_INQ_ACTIVE_MASK) != 0 &&
1762 (p_inq->inq_active & BTM_PERIODIC_INQUIRY_ACTIVE) == 0)
1804 tBTM_INQUIRY_VAR_ST *p_inq = &btm_cb.btm_inq_vars;
1819 p_inq->inq_cmpl_info.status, p_inq->inq_cmpl_info.num_resp);
1823 btm_process_inq_complete(HCI_SUCCESS, (UINT8)(p_inq->inqparms.mode & BTM_BLE_INQUIRY_MASK));