Lines Matching refs:p_ent
943 tINQ_DB_ENT* p_ent = btm_inq_db_find(p_bda); in BTM_InqDbRead() local
944 if (!p_ent) return NULL; in BTM_InqDbRead()
946 return &p_ent->inq_info; in BTM_InqDbRead()
964 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in BTM_InqDbFirst() local
966 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in BTM_InqDbFirst()
967 if (p_ent->in_use) return (&p_ent->inq_info); in BTM_InqDbFirst()
986 tINQ_DB_ENT* p_ent; in BTM_InqDbNext() local
990 p_ent = (tINQ_DB_ENT*)((uint8_t*)p_cur - offsetof(tINQ_DB_ENT, inq_info)); in BTM_InqDbNext()
991 inx = (uint16_t)((p_ent - btm_cb.btm_inq_vars.inq_db) + 1); in BTM_InqDbNext()
993 for (p_ent = &btm_cb.btm_inq_vars.inq_db[inx]; inx < BTM_INQ_DB_SIZE; in BTM_InqDbNext()
994 inx++, p_ent++) { in BTM_InqDbNext()
995 if (p_ent->in_use) return (&p_ent->inq_info); in BTM_InqDbNext()
1216 tINQ_DB_ENT* p_ent = p_inq->inq_db; in btm_clr_inq_db() local
1223 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_clr_inq_db()
1224 if (p_ent->in_use) { in btm_clr_inq_db()
1226 if (p_bda == NULL || (p_ent->inq_info.results.remote_bd_addr == *p_bda)) { in btm_clr_inq_db()
1227 p_ent->in_use = false; in btm_clr_inq_db()
1301 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_find() local
1303 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_inq_db_find()
1304 if (p_ent->in_use && p_ent->inq_info.results.remote_bd_addr == p_bda) in btm_inq_db_find()
1305 return (p_ent); in btm_inq_db_find()
1325 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_new() local
1329 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) { in btm_inq_db_new()
1330 if (!p_ent->in_use) { in btm_inq_db_new()
1331 memset(p_ent, 0, sizeof(tINQ_DB_ENT)); in btm_inq_db_new()
1332 p_ent->inq_info.results.remote_bd_addr = p_bda; in btm_inq_db_new()
1333 p_ent->in_use = true; in btm_inq_db_new()
1335 return (p_ent); in btm_inq_db_new()
1338 if (p_ent->time_of_resp < ot) { in btm_inq_db_new()
1339 p_old = p_ent; in btm_inq_db_new()
1340 ot = p_ent->time_of_resp; in btm_inq_db_new()
1805 tINQ_DB_ENT* p_ent = btm_cb.btm_inq_vars.inq_db; in btm_sort_inq_result() local
1815 for (xx = 0; xx < num_resp - 1; xx++, p_ent++) { in btm_sort_inq_result()
1816 for (yy = xx + 1, p_next = p_ent + 1; yy < num_resp; yy++, p_next++) { in btm_sort_inq_result()
1817 if (p_ent->inq_info.results.rssi < p_next->inq_info.results.rssi) { in btm_sort_inq_result()
1819 memcpy(p_next, p_ent, size); in btm_sort_inq_result()
1820 memcpy(p_ent, p_tmp, size); in btm_sort_inq_result()