Lines Matching refs:gref
88 grant_ref_t gref;
330 gnt_list_entry->gref = INVALID_GRANT_REF;
359 if (gnt_list_entry->gref != INVALID_GRANT_REF)
368 gnttab_page_grant_foreign_access_ref_one(gnt_list_entry->gref,
381 if (gnt_list_entry->gref != INVALID_GRANT_REF)
384 /* Assign a gref to this page */
385 gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head);
386 BUG_ON(gnt_list_entry->gref == -ENOSPC);
391 gnttab_grant_foreign_access_ref(gnt_list_entry->gref,
405 if (gnt_list_entry->gref != INVALID_GRANT_REF)
408 /* Assign a gref to this page */
409 gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head);
410 BUG_ON(gnt_list_entry->gref == -ENOSPC);
632 ring_req->u.indirect.indirect_grefs[n] = gnt_list_entry->gref;
636 ref = gnt_list_entry->gref;
669 .gref = ref,
675 .gref = ref,
1232 if (persistent_gnt->gref != INVALID_GRANT_REF) {
1233 gnttab_end_foreign_access(persistent_gnt->gref,
1257 gnttab_end_foreign_access(persistent_gnt->gref, NULL);
1272 gnttab_end_foreign_access(persistent_gnt->gref, NULL);
1459 if (!gnttab_try_end_foreign_access(s->grants_used[i]->gref)) {
1468 s->grants_used[i]->gref);
1479 s->grants_used[i]->gref = INVALID_GRANT_REF;
1485 if (!gnttab_try_end_foreign_access(s->indirect_grants[i]->gref)) {
1488 s->indirect_grants[i]->gref);
1504 s->indirect_grants[i]->gref = INVALID_GRANT_REF;
2543 if (gnt_list_entry->gref == INVALID_GRANT_REF ||
2544 !gnttab_try_end_foreign_access(gnt_list_entry->gref))
2549 gnt_list_entry->gref = INVALID_GRANT_REF;