Lines Matching refs:p_conn
527 tBTA_GATTC_CONN* p_conn = &bta_gattc_cb.conn_track[0]; in bta_gattc_conn_alloc() local
529 for (i_conn = 0; i_conn < GATT_MAX_PHY_CHANNEL; i_conn++, p_conn++) { in bta_gattc_conn_alloc()
530 if (!p_conn->in_use) { in bta_gattc_conn_alloc()
534 p_conn->in_use = true; in bta_gattc_conn_alloc()
535 p_conn->remote_bda = remote_bda; in bta_gattc_conn_alloc()
536 return p_conn; in bta_gattc_conn_alloc()
553 tBTA_GATTC_CONN* p_conn = &bta_gattc_cb.conn_track[0]; in bta_gattc_conn_find() local
555 for (i_conn = 0; i_conn < GATT_MAX_PHY_CHANNEL; i_conn++, p_conn++) { in bta_gattc_conn_find()
556 if (p_conn->in_use && remote_bda == p_conn->remote_bda) { in bta_gattc_conn_find()
560 return p_conn; in bta_gattc_conn_find()
576 tBTA_GATTC_CONN* p_conn = bta_gattc_conn_find(remote_bda); in bta_gattc_conn_find_alloc() local
578 if (p_conn == NULL) { in bta_gattc_conn_find_alloc()
579 p_conn = bta_gattc_conn_alloc(remote_bda); in bta_gattc_conn_find_alloc()
581 return p_conn; in bta_gattc_conn_find_alloc()
594 tBTA_GATTC_CONN* p_conn = bta_gattc_conn_find(remote_bda); in bta_gattc_conn_dealloc() local
596 if (p_conn != NULL) { in bta_gattc_conn_dealloc()
597 p_conn->in_use = false; in bta_gattc_conn_dealloc()
598 p_conn->remote_bda = RawAddress::kEmpty; in bta_gattc_conn_dealloc()