Lines Matching refs:p_i
106 tINQ_DB_ENT* p_i = btm_inq_db_find(raw_address); in btm_api_process_inquiry_result() local
108 if (p_i == nullptr || !has_le_device(p_i->inq_info.results.device_type)) { in btm_api_process_inquiry_result()
113 if (p_i == nullptr) { in btm_api_process_inquiry_result()
114 p_i = btm_inq_db_new(raw_address); in btm_api_process_inquiry_result()
115 CHECK(p_i != nullptr); in btm_api_process_inquiry_result()
116 } else if (p_i->inq_count == btm_cb.btm_inq_vars.inq_counter && in btm_api_process_inquiry_result()
117 is_classic_device(p_i->inq_info.results.device_type)) { in btm_api_process_inquiry_result()
121 p_i->inq_info.results.page_scan_rep_mode = page_scan_rep_mode; in btm_api_process_inquiry_result()
122 p_i->inq_info.results.page_scan_per_mode = 0; // RESERVED in btm_api_process_inquiry_result()
123 p_i->inq_info.results.page_scan_mode = 0; // RESERVED in btm_api_process_inquiry_result()
124 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_inquiry_result()
125 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_inquiry_result()
126 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_inquiry_result()
127 p_i->inq_info.results.clock_offset = clock_offset | BTM_CLOCK_OFFSET_VALID; in btm_api_process_inquiry_result()
128 p_i->inq_info.results.inq_result_type = BTM_INQ_RESULT_BR; in btm_api_process_inquiry_result()
129 p_i->inq_info.results.rssi = BTM_INQ_RES_IGNORE_RSSI; in btm_api_process_inquiry_result()
131 p_i->time_of_resp = bluetooth::common::time_get_os_boottime_ms(); in btm_api_process_inquiry_result()
132 p_i->inq_count = btm_cb.btm_inq_vars.inq_counter; in btm_api_process_inquiry_result()
133 p_i->inq_info.appl_knows_rem_name = false; in btm_api_process_inquiry_result()
135 if (p_i->inq_count != btm_cb.btm_inq_vars.inq_counter) { in btm_api_process_inquiry_result()
136 p_i->inq_info.results.device_type = BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result()
138 p_i->scan_rsp = false; in btm_api_process_inquiry_result()
140 p_i->inq_info.results.device_type |= BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result()
143 check_exceeded_responses(p_i->inq_info.results.device_type, p_i->scan_rsp); in btm_api_process_inquiry_result()
148 (btm_cb.btm_inq_vars.p_inq_results_cb)(&p_i->inq_info.results, nullptr, 0); in btm_api_process_inquiry_result()
156 tINQ_DB_ENT* p_i = btm_inq_db_find(raw_address); in btm_api_process_inquiry_result_with_rssi() local
158 if (p_i == nullptr || !has_le_device(p_i->inq_info.results.device_type)) { in btm_api_process_inquiry_result_with_rssi()
165 if (btm_cb.btm_inq_vars.inqparms.report_dup && p_i != nullptr && in btm_api_process_inquiry_result_with_rssi()
166 (rssi > p_i->inq_info.results.rssi || p_i->inq_info.results.rssi == 0 || in btm_api_process_inquiry_result_with_rssi()
167 has_classic_device(p_i->inq_info.results.device_type))) { in btm_api_process_inquiry_result_with_rssi()
173 if (p_i == nullptr) { in btm_api_process_inquiry_result_with_rssi()
174 p_i = btm_inq_db_new(raw_address); in btm_api_process_inquiry_result_with_rssi()
175 CHECK(p_i != nullptr); in btm_api_process_inquiry_result_with_rssi()
176 } else if (p_i->inq_count == btm_cb.btm_inq_vars.inq_counter && in btm_api_process_inquiry_result_with_rssi()
177 is_classic_device(p_i->inq_info.results.device_type)) { in btm_api_process_inquiry_result_with_rssi()
181 p_i->inq_info.results.rssi = rssi; in btm_api_process_inquiry_result_with_rssi()
184 p_i->inq_info.results.page_scan_rep_mode = page_scan_rep_mode; in btm_api_process_inquiry_result_with_rssi()
185 p_i->inq_info.results.page_scan_per_mode = 0; // RESERVED in btm_api_process_inquiry_result_with_rssi()
186 p_i->inq_info.results.page_scan_mode = 0; // RESERVED in btm_api_process_inquiry_result_with_rssi()
187 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_inquiry_result_with_rssi()
188 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_inquiry_result_with_rssi()
189 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_inquiry_result_with_rssi()
190 p_i->inq_info.results.clock_offset = clock_offset | BTM_CLOCK_OFFSET_VALID; in btm_api_process_inquiry_result_with_rssi()
191 p_i->inq_info.results.inq_result_type = BTM_INQ_RESULT_BR; in btm_api_process_inquiry_result_with_rssi()
193 p_i->time_of_resp = bluetooth::common::time_get_os_boottime_ms(); in btm_api_process_inquiry_result_with_rssi()
194 p_i->inq_count = btm_cb.btm_inq_vars.inq_counter; in btm_api_process_inquiry_result_with_rssi()
195 p_i->inq_info.appl_knows_rem_name = false; in btm_api_process_inquiry_result_with_rssi()
197 if (p_i->inq_count != btm_cb.btm_inq_vars.inq_counter) { in btm_api_process_inquiry_result_with_rssi()
198 p_i->inq_info.results.device_type = BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result_with_rssi()
200 p_i->scan_rsp = false; in btm_api_process_inquiry_result_with_rssi()
202 p_i->inq_info.results.device_type |= BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result_with_rssi()
206 check_exceeded_responses(p_i->inq_info.results.device_type, p_i->scan_rsp); in btm_api_process_inquiry_result_with_rssi()
212 (btm_cb.btm_inq_vars.p_inq_results_cb)(&p_i->inq_info.results, nullptr, 0); in btm_api_process_inquiry_result_with_rssi()
221 tINQ_DB_ENT* p_i = btm_inq_db_find(raw_address); in btm_api_process_extended_inquiry_result() local
223 if (p_i == nullptr || !has_le_device(p_i->inq_info.results.device_type)) { in btm_api_process_extended_inquiry_result()
229 if (btm_inq_find_bdaddr(raw_address) && p_i != nullptr) { in btm_api_process_extended_inquiry_result()
234 if (p_i == nullptr) { in btm_api_process_extended_inquiry_result()
235 p_i = btm_inq_db_new(raw_address); in btm_api_process_extended_inquiry_result()
236 } else if (p_i->inq_count == btm_cb.btm_inq_vars.inq_counter && in btm_api_process_extended_inquiry_result()
237 (p_i->inq_info.results.device_type == BT_DEVICE_TYPE_BREDR)) { in btm_api_process_extended_inquiry_result()
241 p_i->inq_info.results.rssi = rssi; in btm_api_process_extended_inquiry_result()
244 p_i->inq_info.results.page_scan_rep_mode = page_scan_rep_mode; in btm_api_process_extended_inquiry_result()
245 p_i->inq_info.results.page_scan_per_mode = 0; // RESERVED in btm_api_process_extended_inquiry_result()
246 p_i->inq_info.results.page_scan_mode = 0; // RESERVED in btm_api_process_extended_inquiry_result()
247 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_extended_inquiry_result()
248 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_extended_inquiry_result()
249 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_extended_inquiry_result()
250 p_i->inq_info.results.clock_offset = clock_offset | BTM_CLOCK_OFFSET_VALID; in btm_api_process_extended_inquiry_result()
251 p_i->inq_info.results.inq_result_type = BTM_INQ_RESULT_BR; in btm_api_process_extended_inquiry_result()
253 p_i->time_of_resp = bluetooth::common::time_get_os_boottime_ms(); in btm_api_process_extended_inquiry_result()
254 p_i->inq_count = btm_cb.btm_inq_vars.inq_counter; in btm_api_process_extended_inquiry_result()
255 p_i->inq_info.appl_knows_rem_name = false; in btm_api_process_extended_inquiry_result()
257 if (p_i->inq_count != btm_cb.btm_inq_vars.inq_counter) { in btm_api_process_extended_inquiry_result()
258 p_i->inq_info.results.device_type = BT_DEVICE_TYPE_BREDR; in btm_api_process_extended_inquiry_result()
260 p_i->scan_rsp = false; in btm_api_process_extended_inquiry_result()
262 p_i->inq_info.results.device_type |= BT_DEVICE_TYPE_BREDR; in btm_api_process_extended_inquiry_result()
266 check_exceeded_responses(p_i->inq_info.results.device_type, p_i->scan_rsp); in btm_api_process_extended_inquiry_result()
272 memset(p_i->inq_info.results.eir_uuid, 0, in btm_api_process_extended_inquiry_result()
274 btm_set_eir_uuid(const_cast<uint8_t*>(eir_data), &p_i->inq_info.results); in btm_api_process_extended_inquiry_result()
276 (btm_cb.btm_inq_vars.p_inq_results_cb)(&p_i->inq_info.results, p_eir_data, in btm_api_process_extended_inquiry_result()