• Home
  • Raw
  • Download

Lines Matching refs:gref

88 	grant_ref_t gref;  member
331 gnt_list_entry->gref = GRANT_INVALID_REF; in fill_grant_buffer()
360 if (gnt_list_entry->gref != GRANT_INVALID_REF) in get_free_grant()
369 gnttab_page_grant_foreign_access_ref_one(gnt_list_entry->gref, in grant_foreign_access()
382 if (gnt_list_entry->gref != GRANT_INVALID_REF) in get_grant()
386 gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); in get_grant()
387 BUG_ON(gnt_list_entry->gref == -ENOSPC); in get_grant()
392 gnttab_grant_foreign_access_ref(gnt_list_entry->gref, in get_grant()
406 if (gnt_list_entry->gref != GRANT_INVALID_REF) in get_indirect_grant()
410 gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); in get_indirect_grant()
411 BUG_ON(gnt_list_entry->gref == -ENOSPC); in get_indirect_grant()
632 ring_req->u.indirect.indirect_grefs[n] = gnt_list_entry->gref; in blkif_setup_rw_req_grant()
636 ref = gnt_list_entry->gref; in blkif_setup_rw_req_grant()
669 .gref = ref, in blkif_setup_rw_req_grant()
675 .gref = ref, in blkif_setup_rw_req_grant()
1237 if (persistent_gnt->gref != GRANT_INVALID_REF) { in blkif_free_ring()
1238 gnttab_end_foreign_access(persistent_gnt->gref, in blkif_free_ring()
1262 gnttab_end_foreign_access(persistent_gnt->gref, 0, 0UL); in blkif_free_ring()
1277 gnttab_end_foreign_access(persistent_gnt->gref, 0, 0UL); in blkif_free_ring()
1471 if (!gnttab_try_end_foreign_access(s->grants_used[i]->gref)) { in blkif_completion()
1480 s->grants_used[i]->gref); in blkif_completion()
1491 s->grants_used[i]->gref = GRANT_INVALID_REF; in blkif_completion()
1497 if (!gnttab_try_end_foreign_access(s->indirect_grants[i]->gref)) { in blkif_completion()
1500 s->indirect_grants[i]->gref); in blkif_completion()
1516 s->indirect_grants[i]->gref = GRANT_INVALID_REF; in blkif_completion()
1700 grant_ref_t gref[XENBUS_MAX_RING_GRANTS]; in setup_blkring() local
1713 err = xenbus_grant_ring(dev, rinfo->ring.sring, info->nr_ring_pages, gref); in setup_blkring()
1720 rinfo->ring_ref[i] = gref[i]; in setup_blkring()
2565 if (gnt_list_entry->gref == GRANT_INVALID_REF || in purge_persistent_grants()
2566 !gnttab_try_end_foreign_access(gnt_list_entry->gref)) in purge_persistent_grants()
2571 gnt_list_entry->gref = GRANT_INVALID_REF; in purge_persistent_grants()