• Home
  • Raw
  • Download

Lines Matching refs:p_i

83   tINQ_DB_ENT* p_i = btm_inq_db_find(raw_address);  in btm_api_process_inquiry_result()  local
85 if (p_i == nullptr) { in btm_api_process_inquiry_result()
86 p_i = btm_inq_db_new(raw_address); in btm_api_process_inquiry_result()
87 CHECK(p_i != nullptr); in btm_api_process_inquiry_result()
88 } else if (p_i->inq_count == btm_cb.btm_inq_vars.inq_counter && in btm_api_process_inquiry_result()
89 is_classic_device(p_i->inq_info.results.device_type)) { in btm_api_process_inquiry_result()
93 p_i->inq_info.results.page_scan_rep_mode = page_scan_rep_mode; in btm_api_process_inquiry_result()
94 p_i->inq_info.results.page_scan_per_mode = 0; // RESERVED in btm_api_process_inquiry_result()
95 p_i->inq_info.results.page_scan_mode = 0; // RESERVED in btm_api_process_inquiry_result()
96 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_inquiry_result()
97 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_inquiry_result()
98 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_inquiry_result()
99 p_i->inq_info.results.clock_offset = clock_offset | BTM_CLOCK_OFFSET_VALID; in btm_api_process_inquiry_result()
100 p_i->inq_info.results.inq_result_type = BTM_INQ_RESULT_BR; in btm_api_process_inquiry_result()
101 p_i->inq_info.results.rssi = BTM_INQ_RES_IGNORE_RSSI; in btm_api_process_inquiry_result()
103 p_i->time_of_resp = bluetooth::common::time_get_os_boottime_ms(); in btm_api_process_inquiry_result()
104 p_i->inq_count = btm_cb.btm_inq_vars.inq_counter; in btm_api_process_inquiry_result()
105 p_i->inq_info.appl_knows_rem_name = false; in btm_api_process_inquiry_result()
107 if (p_i->inq_count != btm_cb.btm_inq_vars.inq_counter) { in btm_api_process_inquiry_result()
108 p_i->inq_info.results.device_type = BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result()
110 p_i->scan_rsp = false; in btm_api_process_inquiry_result()
112 p_i->inq_info.results.device_type |= BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result()
119 (btm_cb.btm_inq_vars.p_inq_results_cb)(&p_i->inq_info.results, nullptr, 0); in btm_api_process_inquiry_result()
127 tINQ_DB_ENT* p_i = btm_inq_db_find(raw_address); in btm_api_process_inquiry_result_with_rssi() local
131 if (p_i != nullptr && in btm_api_process_inquiry_result_with_rssi()
132 (rssi > p_i->inq_info.results.rssi || p_i->inq_info.results.rssi == 0 || in btm_api_process_inquiry_result_with_rssi()
133 has_classic_device(p_i->inq_info.results.device_type))) { in btm_api_process_inquiry_result_with_rssi()
139 if (p_i == nullptr) { in btm_api_process_inquiry_result_with_rssi()
140 p_i = btm_inq_db_new(raw_address); in btm_api_process_inquiry_result_with_rssi()
141 CHECK(p_i != nullptr); in btm_api_process_inquiry_result_with_rssi()
142 } else if (p_i->inq_count == btm_cb.btm_inq_vars.inq_counter && in btm_api_process_inquiry_result_with_rssi()
143 is_classic_device(p_i->inq_info.results.device_type)) { in btm_api_process_inquiry_result_with_rssi()
147 p_i->inq_info.results.rssi = rssi; in btm_api_process_inquiry_result_with_rssi()
150 p_i->inq_info.results.page_scan_rep_mode = page_scan_rep_mode; in btm_api_process_inquiry_result_with_rssi()
151 p_i->inq_info.results.page_scan_per_mode = 0; // RESERVED in btm_api_process_inquiry_result_with_rssi()
152 p_i->inq_info.results.page_scan_mode = 0; // RESERVED in btm_api_process_inquiry_result_with_rssi()
153 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_inquiry_result_with_rssi()
154 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_inquiry_result_with_rssi()
155 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_inquiry_result_with_rssi()
156 p_i->inq_info.results.clock_offset = clock_offset | BTM_CLOCK_OFFSET_VALID; in btm_api_process_inquiry_result_with_rssi()
157 p_i->inq_info.results.inq_result_type = BTM_INQ_RESULT_BR; in btm_api_process_inquiry_result_with_rssi()
159 p_i->time_of_resp = bluetooth::common::time_get_os_boottime_ms(); in btm_api_process_inquiry_result_with_rssi()
160 p_i->inq_count = btm_cb.btm_inq_vars.inq_counter; in btm_api_process_inquiry_result_with_rssi()
161 p_i->inq_info.appl_knows_rem_name = false; in btm_api_process_inquiry_result_with_rssi()
163 if (p_i->inq_count != btm_cb.btm_inq_vars.inq_counter) { in btm_api_process_inquiry_result_with_rssi()
164 p_i->inq_info.results.device_type = BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result_with_rssi()
166 p_i->scan_rsp = false; in btm_api_process_inquiry_result_with_rssi()
168 p_i->inq_info.results.device_type |= BT_DEVICE_TYPE_BREDR; in btm_api_process_inquiry_result_with_rssi()
177 (btm_cb.btm_inq_vars.p_inq_results_cb)(&p_i->inq_info.results, nullptr, 0); in btm_api_process_inquiry_result_with_rssi()
186 tINQ_DB_ENT* p_i = btm_inq_db_find(raw_address); in btm_api_process_extended_inquiry_result() local
189 if (btm_inq_find_bdaddr(raw_address) && p_i != nullptr) { in btm_api_process_extended_inquiry_result()
194 if (p_i == nullptr) { in btm_api_process_extended_inquiry_result()
195 p_i = btm_inq_db_new(raw_address); in btm_api_process_extended_inquiry_result()
196 } else if (p_i->inq_count == btm_cb.btm_inq_vars.inq_counter && in btm_api_process_extended_inquiry_result()
197 (p_i->inq_info.results.device_type == BT_DEVICE_TYPE_BREDR)) { in btm_api_process_extended_inquiry_result()
201 p_i->inq_info.results.rssi = rssi; in btm_api_process_extended_inquiry_result()
204 p_i->inq_info.results.page_scan_rep_mode = page_scan_rep_mode; in btm_api_process_extended_inquiry_result()
205 p_i->inq_info.results.page_scan_per_mode = 0; // RESERVED in btm_api_process_extended_inquiry_result()
206 p_i->inq_info.results.page_scan_mode = 0; // RESERVED in btm_api_process_extended_inquiry_result()
207 p_i->inq_info.results.dev_class[0] = device_class[0]; in btm_api_process_extended_inquiry_result()
208 p_i->inq_info.results.dev_class[1] = device_class[1]; in btm_api_process_extended_inquiry_result()
209 p_i->inq_info.results.dev_class[2] = device_class[2]; in btm_api_process_extended_inquiry_result()
210 p_i->inq_info.results.clock_offset = clock_offset | BTM_CLOCK_OFFSET_VALID; in btm_api_process_extended_inquiry_result()
211 p_i->inq_info.results.inq_result_type = BTM_INQ_RESULT_BR; in btm_api_process_extended_inquiry_result()
213 p_i->time_of_resp = bluetooth::common::time_get_os_boottime_ms(); in btm_api_process_extended_inquiry_result()
214 p_i->inq_count = btm_cb.btm_inq_vars.inq_counter; in btm_api_process_extended_inquiry_result()
215 p_i->inq_info.appl_knows_rem_name = false; in btm_api_process_extended_inquiry_result()
217 if (p_i->inq_count != btm_cb.btm_inq_vars.inq_counter) { in btm_api_process_extended_inquiry_result()
218 p_i->inq_info.results.device_type = BT_DEVICE_TYPE_BREDR; in btm_api_process_extended_inquiry_result()
220 p_i->scan_rsp = false; in btm_api_process_extended_inquiry_result()
222 p_i->inq_info.results.device_type |= BT_DEVICE_TYPE_BREDR; in btm_api_process_extended_inquiry_result()
231 memset(p_i->inq_info.results.eir_uuid, 0, in btm_api_process_extended_inquiry_result()
233 btm_set_eir_uuid(const_cast<uint8_t*>(eir_data), &p_i->inq_info.results); in btm_api_process_extended_inquiry_result()
235 (btm_cb.btm_inq_vars.p_inq_results_cb)(&p_i->inq_info.results, p_eir_data, in btm_api_process_extended_inquiry_result()