Lines Matching defs:gref
354 grant_ref_t gref;
359 gref = gnttab_claim_grant_reference(&xnfp->xnf_gref_head);
361 } while ((gref == INVALID_GRANT_REF) &&
366 if (gref == INVALID_GRANT_REF) {
375 return (gref);
382 gref_put(xnf_t *xnfp, grant_ref_t gref)
384 ASSERT(gref != INVALID_GRANT_REF);
387 gnttab_release_grant_reference(&xnfp->xnf_gref_head, gref);
534 ASSERT(txp->tx_txreq.gref != INVALID_GRANT_REF);
539 VERIFY(gnttab_query_foreign_access(txp->tx_txreq.gref)
544 txp->tx_txreq.gref, 1);
545 gref_put(xnfp, txp->tx_txreq.gref);
1173 txrp->gref = 0;
1277 txp->tx_txreq.gref) != 0)
1281 txp->tx_txreq.gref);
1285 txp->tx_txreq.gref, 1);
1286 gref_put(xnfp, txp->tx_txreq.gref);
1575 txp->tx_txreq.gref = txp->tx_bdesc->grant_ref;
1607 txp->tx_txreq.gref = gref_get(xnfp);
1608 if (txp->tx_txreq.gref == INVALID_GRANT_REF) {
1614 gnttab_grant_foreign_access_ref(txp->tx_txreq.gref,
1707 loop->tx_txreq.gref, 1);
1708 gref_put(xnfp, loop->tx_txreq.gref);
1916 reqp->gref = bdesc->grant_ref;
2387 grant_ref_t gref;
2394 gref = gref_get(xnfp);
2395 if (gref == INVALID_GRANT_REF)
2400 gref_put(xnfp, gref);
2406 bufp->grant_ref = gref;