Lines Matching refs:p_ent

1139     tINQ_DB_ENT *p_ent = btm_inq_db_find(p_bda);  in BTM_InqDbRead()  local
1140 if (!p_ent) in BTM_InqDbRead()
1143 return &p_ent->inq_info; in BTM_InqDbRead()
1162 tINQ_DB_ENT *p_ent = btm_cb.btm_inq_vars.inq_db; in BTM_InqDbFirst() local
1164 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) in BTM_InqDbFirst()
1166 if (p_ent->in_use) in BTM_InqDbFirst()
1167 return (&p_ent->inq_info); in BTM_InqDbFirst()
1188 tINQ_DB_ENT *p_ent; in BTM_InqDbNext() local
1193 p_ent = (tINQ_DB_ENT *) ((UINT8 *)p_cur - offsetof (tINQ_DB_ENT, inq_info)); in BTM_InqDbNext()
1194 inx = (UINT16)((p_ent - btm_cb.btm_inq_vars.inq_db) + 1); in BTM_InqDbNext()
1196 for (p_ent = &btm_cb.btm_inq_vars.inq_db[inx]; inx < BTM_INQ_DB_SIZE; inx++, p_ent++) in BTM_InqDbNext()
1198 if (p_ent->in_use) in BTM_InqDbNext()
1199 return (&p_ent->inq_info); in BTM_InqDbNext()
1448 tINQ_DB_ENT *p_ent = p_inq->inq_db; in btm_clr_inq_db() local
1455 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) in btm_clr_inq_db()
1457 if (p_ent->in_use) in btm_clr_inq_db()
1461 (!memcmp (p_ent->inq_info.results.remote_bd_addr, p_bda, BD_ADDR_LEN))) in btm_clr_inq_db()
1463 p_ent->in_use = FALSE; in btm_clr_inq_db()
1544 tINQ_DB_ENT *p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_find() local
1546 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) in btm_inq_db_find()
1548 … if ((p_ent->in_use) && (!memcmp (p_ent->inq_info.results.remote_bd_addr, p_bda, BD_ADDR_LEN))) in btm_inq_db_find()
1549 return (p_ent); in btm_inq_db_find()
1570 tINQ_DB_ENT *p_ent = btm_cb.btm_inq_vars.inq_db; in btm_inq_db_new() local
1574 for (xx = 0; xx < BTM_INQ_DB_SIZE; xx++, p_ent++) in btm_inq_db_new()
1576 if (!p_ent->in_use) in btm_inq_db_new()
1578 memset (p_ent, 0, sizeof (tINQ_DB_ENT)); in btm_inq_db_new()
1579 memcpy (p_ent->inq_info.results.remote_bd_addr, p_bda, BD_ADDR_LEN); in btm_inq_db_new()
1580 p_ent->in_use = TRUE; in btm_inq_db_new()
1582 return (p_ent); in btm_inq_db_new()
1585 if (p_ent->time_of_resp < ot) in btm_inq_db_new()
1587 p_old = p_ent; in btm_inq_db_new()
1588 ot = p_ent->time_of_resp; in btm_inq_db_new()
2071 tINQ_DB_ENT *p_ent = btm_cb.btm_inq_vars.inq_db; in btm_sort_inq_result() local
2080 for (xx = 0; xx < num_resp-1; xx++, p_ent++) { in btm_sort_inq_result()
2081 for (yy = xx+1, p_next = p_ent+1; yy < num_resp; yy++, p_next++) { in btm_sort_inq_result()
2082 if (p_ent->inq_info.results.rssi < p_next->inq_info.results.rssi) { in btm_sort_inq_result()
2084 memcpy(p_next, p_ent, size); in btm_sort_inq_result()
2085 memcpy(p_ent, p_tmp, size); in btm_sort_inq_result()