Lines Matching refs:p_i
969 tINQ_DB_ENT *p_i;
981 if ((p_i = btm_inq_db_find (remote_bda)) != NULL)
983 p_cur = &p_i->inq_info;
1975 tINQ_DB_ENT *p_i;
2025 p_i = btm_inq_db_find (bda);
2037 && ( p_i == NULL ||
2039 (p_i && (p_i->inq_info.results.device_type & BT_DEVICE_TYPE_BREDR) != 0)
2060 p_i && (i_rssi > p_i->inq_info.results.rssi || p_i->inq_info.results.rssi == 0
2063 || (p_i->inq_info.results.device_type & BT_DEVICE_TYPE_BREDR) != 0
2067 p_cur = &p_i->inq_info.results;
2074 else if ((inq_res_mode == BTM_INQ_RESULT_EXTENDED) && (p_i))
2076 p_cur = &p_i->inq_info.results;
2094 if (p_i == NULL)
2096 p_i = btm_inq_db_new (bda);
2104 else if (p_i->inq_count == p_inq->inq_counter
2106 && (p_i->inq_info.results.device_type & BT_DEVICE_TYPE_BREDR)
2113 p_i->inq_info.results.rssi = (INT8)rssi;
2115 p_i->inq_info.results.rssi = BTM_INQ_RES_IGNORE_RSSI;
2120 p_cur = &p_i->inq_info.results;
2129 p_i->time_of_resp = GKI_get_tick_count ();
2131 if (p_i->inq_count != p_inq->inq_counter)
2136 if (p_i->inq_count != p_inq->inq_counter)
2139 p_i->scan_rsp = FALSE;
2144 p_i->inq_count = p_inq->inq_counter; /* Mark entry for current inquiry */
2154 p_cur->device_type == BT_DEVICE_TYPE_DUMO && p_i->scan_rsp) ||
2174 p_i->inq_info.appl_knows_rem_name = FALSE;
2195 p_i->inq_info.remote_name_len = remote_name_len;
2196 memcpy( p_i->inq_info.remote_name, p_eir_data, p_i->inq_info.remote_name_len );
2197 p_i->inq_info.remote_name[p_i->inq_info.remote_name_len] = 0;
2198 p_i->inq_info.remote_name_state = BTM_INQ_RMT_NAME_DONE;
2201 p_i->inq_info.remote_name_state = BTM_INQ_RMT_NAME_EMPTY;
2207 p_i->inq_info.remote_name_state = BTM_INQ_RMT_NAME_EMPTY;
2234 (*p_inq->p_inq_change_cb) (&p_i->inq_info, TRUE);
2532 tINQ_DB_ENT *p_i = NULL;
2613 if ((bda != NULL) && ((p_i = btm_inq_db_find (bda)) != NULL)
2616 p_i->inq_info.remote_name_state = BTM_INQ_RMT_NAME_DONE;
2617 p_n = p_i->inq_info.remote_name;
2619 p_i->inq_info.remote_name_len = (rem_name.length < BTM_MAX_REM_BD_NAME_LEN) ?
2621 evt_len = p_i->inq_info.remote_name_len;
2630 (*btm_cb.btm_inq_vars.p_inq_change_cb) (&p_i->inq_info, TRUE);
2634 if (p_i)
2635 p_i->inq_info.remote_name_state = BTM_INQ_RMT_NAME_FAILED;