gref 268 drivers/block/xen-blkback/blkback.c grant_ref_t gref) gref 277 drivers/block/xen-blkback/blkback.c if (gref < data->gnt) gref 279 drivers/block/xen-blkback/blkback.c else if (gref > data->gnt) gref 833 drivers/block/xen-blkback/blkback.c pages[i]->gref); gref 853 drivers/block/xen-blkback/blkback.c flags, pages[i]->gref, gref 970 drivers/block/xen-blkback/blkback.c pages[i]->gref = req->u.indirect.indirect_grefs[i]; gref 987 drivers/block/xen-blkback/blkback.c pending_req->segments[n]->gref = segments[i].gref; gref 1301 drivers/block/xen-blkback/blkback.c pages[i]->gref = req->u.rw.seg[i].gref; gref 333 drivers/block/xen-blkback/common.h grant_ref_t gref; gref 188 drivers/block/xen-blkback/xenbus.c static int xen_blkif_map(struct xen_blkif_ring *ring, grant_ref_t *gref, gref 198 drivers/block/xen-blkback/xenbus.c err = xenbus_map_ring_valloc(blkif->be->dev, gref, nr_grefs, gref 86 drivers/block/xen-blkfront.c grant_ref_t gref; gref 310 drivers/block/xen-blkfront.c gnt_list_entry->gref = GRANT_INVALID_REF; gref 339 drivers/block/xen-blkfront.c if (gnt_list_entry->gref != GRANT_INVALID_REF) gref 348 drivers/block/xen-blkfront.c gnttab_page_grant_foreign_access_ref_one(gnt_list_entry->gref, gref 361 drivers/block/xen-blkfront.c if (gnt_list_entry->gref != GRANT_INVALID_REF) gref 365 drivers/block/xen-blkfront.c gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); gref 366 drivers/block/xen-blkfront.c BUG_ON(gnt_list_entry->gref == -ENOSPC); gref 371 drivers/block/xen-blkfront.c gnttab_grant_foreign_access_ref(gnt_list_entry->gref, gref 385 drivers/block/xen-blkfront.c if (gnt_list_entry->gref != GRANT_INVALID_REF) gref 389 drivers/block/xen-blkfront.c gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); gref 390 drivers/block/xen-blkfront.c BUG_ON(gnt_list_entry->gref == -ENOSPC); gref 622 drivers/block/xen-blkfront.c ring_req->u.indirect.indirect_grefs[n] = gnt_list_entry->gref; gref 626 drivers/block/xen-blkfront.c ref = gnt_list_entry->gref; gref 659 drivers/block/xen-blkfront.c .gref = ref, gref 665 drivers/block/xen-blkfront.c .gref = ref, gref 1268 drivers/block/xen-blkfront.c if (persistent_gnt->gref != GRANT_INVALID_REF) { gref 1269 drivers/block/xen-blkfront.c gnttab_end_foreign_access(persistent_gnt->gref, gref 1293 drivers/block/xen-blkfront.c gnttab_end_foreign_access(persistent_gnt->gref, 0, 0UL); gref 1308 drivers/block/xen-blkfront.c gnttab_end_foreign_access(persistent_gnt->gref, 0, 0UL); gref 1495 drivers/block/xen-blkfront.c if (gnttab_query_foreign_access(s->grants_used[i]->gref)) { gref 1504 drivers/block/xen-blkfront.c s->grants_used[i]->gref); gref 1514 drivers/block/xen-blkfront.c gnttab_end_foreign_access(s->grants_used[i]->gref, 0, 0UL); gref 1515 drivers/block/xen-blkfront.c s->grants_used[i]->gref = GRANT_INVALID_REF; gref 1521 drivers/block/xen-blkfront.c if (gnttab_query_foreign_access(s->indirect_grants[i]->gref)) { gref 1524 drivers/block/xen-blkfront.c s->indirect_grants[i]->gref); gref 1530 drivers/block/xen-blkfront.c gnttab_end_foreign_access(s->indirect_grants[i]->gref, 0, 0UL); gref 1539 drivers/block/xen-blkfront.c s->indirect_grants[i]->gref = GRANT_INVALID_REF; gref 1677 drivers/block/xen-blkfront.c grant_ref_t gref[XENBUS_MAX_RING_GRANTS]; gref 1691 drivers/block/xen-blkfront.c err = xenbus_grant_ring(dev, rinfo->ring.sring, info->nr_ring_pages, gref); gref 1698 drivers/block/xen-blkfront.c rinfo->ring_ref[i] = gref[i]; gref 2677 drivers/block/xen-blkfront.c if (gnt_list_entry->gref == GRANT_INVALID_REF || gref 2678 drivers/block/xen-blkfront.c gnttab_query_foreign_access(gnt_list_entry->gref)) gref 2682 drivers/block/xen-blkfront.c gnttab_end_foreign_access(gnt_list_entry->gref, 0, 0UL); gref 2684 drivers/block/xen-blkfront.c gnt_list_entry->gref = GRANT_INVALID_REF; gref 256 drivers/char/tpm/xen-tpmfront.c grant_ref_t gref; gref 264 drivers/char/tpm/xen-tpmfront.c rv = xenbus_grant_ring(dev, priv->shr, 1, &gref); gref 268 drivers/char/tpm/xen-tpmfront.c priv->ring_ref = gref; gref 150 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c if (evtchnl->gref != GRANT_INVALID_REF) gref 151 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c gnttab_end_foreign_access(evtchnl->gref, 0, page); gref 162 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c grant_ref_t gref; gref 171 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c evtchnl->gref = GRANT_INVALID_REF; gref 188 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c ret = xenbus_grant_ring(xb_dev, sring, 1, &gref); gref 205 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c gref = ret; gref 208 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c evtchnl->gref = gref; gref 278 drivers/gpu/drm/xen/xen_drm_front_evtchnl.c ret = xenbus_printf(xbt, path, node_ring, "%u", evtchnl->gref); gref 40 drivers/gpu/drm/xen/xen_drm_front_evtchnl.h int gref; gref 40 drivers/input/misc/xen-kbdfront.c int gref; gref 216 drivers/input/misc/xen-kbdfront.c info->gref = -1; gref 433 drivers/input/misc/xen-kbdfront.c info->gref = ret; gref 457 drivers/input/misc/xen-kbdfront.c "%u", info->gref); gref 484 drivers/input/misc/xen-kbdfront.c gnttab_end_foreign_access(info->gref, 0, 0UL); gref 485 drivers/input/misc/xen-kbdfront.c info->gref = -1; gref 494 drivers/input/misc/xen-kbdfront.c if (info->gref >= 0) gref 495 drivers/input/misc/xen-kbdfront.c gnttab_end_foreign_access(info->gref, 0, 0UL); gref 496 drivers/input/misc/xen-kbdfront.c info->gref = -1; gref 423 drivers/net/xen-netback/common.h u32 xenvif_set_hash_key(struct xenvif *vif, u32 gref, u32 len); gref 425 drivers/net/xen-netback/common.h u32 xenvif_set_hash_mapping(struct xenvif *vif, u32 gref, u32 len, gref 289 drivers/net/xen-netback/hash.c u32 xenvif_set_hash_key(struct xenvif *vif, u32 gref, u32 len) gref 293 drivers/net/xen-netback/hash.c .source.u.ref = gref, gref 333 drivers/net/xen-netback/hash.c u32 xenvif_set_hash_mapping(struct xenvif *vif, u32 gref, u32 len, gref 339 drivers/net/xen-netback/hash.c .source.u.ref = gref, gref 336 drivers/net/xen-netback/netback.c txp->gref, queue->vif->domid); gref 981 drivers/net/xen-netback/netback.c queue->tx_copy_ops[*copy_ops].source.u.ref = txreq.gref; gref 187 drivers/net/xen-netback/rx.c op->source.u.ref = foreign->gref; gref 195 drivers/net/xen-netback/rx.c op->dest.u.ref = req->gref; gref 324 drivers/net/xen-netfront.c req->gref = ref; gref 453 drivers/net/xen-netfront.c tx->gref = ref; gref 733 drivers/net/xen-netfront.c RING_GET_REQUEST(&queue->rx, queue->rx.req_prod_pvt)->gref = ref; gref 1537 drivers/net/xen-netfront.c grant_ref_t gref; gref 1554 drivers/net/xen-netfront.c err = xenbus_grant_ring(dev, txs, 1, &gref); gref 1557 drivers/net/xen-netfront.c queue->tx_ring_ref = gref; gref 1568 drivers/net/xen-netfront.c err = xenbus_grant_ring(dev, rxs, 1, &gref); gref 1571 drivers/net/xen-netfront.c queue->rx_ring_ref = gref; gref 790 drivers/pci/xen-pcifront.c grant_ref_t gref; gref 792 drivers/pci/xen-pcifront.c err = xenbus_grant_ring(pdev->xdev, pdev->sh_info, 1, &gref); gref 796 drivers/pci/xen-pcifront.c pdev->gnt_ref = gref; gref 100 drivers/scsi/xen-scsifront.c int gref[vscsiif_grants_sg(SG_ALL) + SG_ALL]; gref 236 drivers/scsi/xen-scsifront.c if (unlikely(gnttab_query_foreign_access(shadow->gref[i]))) { gref 241 drivers/scsi/xen-scsifront.c gnttab_end_foreign_access(shadow->gref[i], 0, 0UL); gref 448 drivers/scsi/xen-scsifront.c shadow->gref[ref_cnt] = ref; gref 449 drivers/scsi/xen-scsifront.c shadow->seg[ref_cnt].gref = ref; gref 484 drivers/scsi/xen-scsifront.c shadow->gref[ref_cnt] = ref; gref 485 drivers/scsi/xen-scsifront.c seg->gref = ref; gref 706 drivers/scsi/xen-scsifront.c grant_ref_t gref; gref 719 drivers/scsi/xen-scsifront.c err = xenbus_grant_ring(dev, sring, 1, &gref); gref 726 drivers/scsi/xen-scsifront.c info->ring_ref = gref; gref 105 drivers/xen/gntalloc.c struct gntalloc_gref *gref; gref 110 drivers/xen/gntalloc.c static void __del_gref(struct gntalloc_gref *gref); gref 114 drivers/xen/gntalloc.c struct gntalloc_gref *gref, *n; gref 115 drivers/xen/gntalloc.c list_for_each_entry_safe(gref, n, &gref_list, next_gref) { gref 116 drivers/xen/gntalloc.c if (!gref->users) gref 117 drivers/xen/gntalloc.c __del_gref(gref); gref 127 drivers/xen/gntalloc.c struct gntalloc_gref *gref, *next; gref 131 drivers/xen/gntalloc.c gref = kzalloc(sizeof(*gref), GFP_KERNEL); gref 132 drivers/xen/gntalloc.c if (!gref) { gref 136 drivers/xen/gntalloc.c list_add_tail(&gref->next_gref, &queue_gref); gref 137 drivers/xen/gntalloc.c list_add_tail(&gref->next_file, &queue_file); gref 138 drivers/xen/gntalloc.c gref->users = 1; gref 139 drivers/xen/gntalloc.c gref->file_index = op->index + i * PAGE_SIZE; gref 140 drivers/xen/gntalloc.c gref->page = alloc_page(GFP_KERNEL|__GFP_ZERO); gref 141 drivers/xen/gntalloc.c if (!gref->page) { gref 148 drivers/xen/gntalloc.c xen_page_to_gfn(gref->page), gref 152 drivers/xen/gntalloc.c gref_ids[i] = gref->gref_id = rc; gref 167 drivers/xen/gntalloc.c list_for_each_entry_safe(gref, next, &queue_file, next_file) { gref 168 drivers/xen/gntalloc.c list_del(&gref->next_file); gref 169 drivers/xen/gntalloc.c __del_gref(gref); gref 184 drivers/xen/gntalloc.c static void __del_gref(struct gntalloc_gref *gref) gref 186 drivers/xen/gntalloc.c if (gref->notify.flags & UNMAP_NOTIFY_CLEAR_BYTE) { gref 187 drivers/xen/gntalloc.c uint8_t *tmp = kmap(gref->page); gref 188 drivers/xen/gntalloc.c tmp[gref->notify.pgoff] = 0; gref 189 drivers/xen/gntalloc.c kunmap(gref->page); gref 191 drivers/xen/gntalloc.c if (gref->notify.flags & UNMAP_NOTIFY_SEND_EVENT) { gref 192 drivers/xen/gntalloc.c notify_remote_via_evtchn(gref->notify.event); gref 193 drivers/xen/gntalloc.c evtchn_put(gref->notify.event); gref 196 drivers/xen/gntalloc.c gref->notify.flags = 0; gref 198 drivers/xen/gntalloc.c if (gref->gref_id) { gref 199 drivers/xen/gntalloc.c if (gnttab_query_foreign_access(gref->gref_id)) gref 202 drivers/xen/gntalloc.c if (!gnttab_end_foreign_access_ref(gref->gref_id, 0)) gref 205 drivers/xen/gntalloc.c gnttab_free_grant_reference(gref->gref_id); gref 209 drivers/xen/gntalloc.c list_del(&gref->next_gref); gref 211 drivers/xen/gntalloc.c if (gref->page) gref 212 drivers/xen/gntalloc.c __free_page(gref->page); gref 214 drivers/xen/gntalloc.c kfree(gref); gref 221 drivers/xen/gntalloc.c struct gntalloc_gref *rv = NULL, *gref; gref 222 drivers/xen/gntalloc.c list_for_each_entry(gref, &priv->list, next_file) { gref 223 drivers/xen/gntalloc.c if (gref->file_index == index && !rv) gref 224 drivers/xen/gntalloc.c rv = gref; gref 226 drivers/xen/gntalloc.c if (gref->file_index != index) gref 264 drivers/xen/gntalloc.c struct gntalloc_gref *gref; gref 270 drivers/xen/gntalloc.c gref = list_entry(priv->list.next, gref 272 drivers/xen/gntalloc.c list_del(&gref->next_file); gref 273 drivers/xen/gntalloc.c gref->users--; gref 274 drivers/xen/gntalloc.c if (gref->users == 0) gref 275 drivers/xen/gntalloc.c __del_gref(gref); gref 351 drivers/xen/gntalloc.c struct gntalloc_gref *gref, *n; gref 361 drivers/xen/gntalloc.c gref = find_grefs(priv, op.index, op.count); gref 362 drivers/xen/gntalloc.c if (gref) { gref 368 drivers/xen/gntalloc.c n = list_entry(gref->next_file.next, gref 370 drivers/xen/gntalloc.c list_del(&gref->next_file); gref 371 drivers/xen/gntalloc.c gref->users--; gref 372 drivers/xen/gntalloc.c gref = n; gref 389 drivers/xen/gntalloc.c struct gntalloc_gref *gref; gref 402 drivers/xen/gntalloc.c gref = find_grefs(priv, index, 1); gref 403 drivers/xen/gntalloc.c if (!gref) { gref 427 drivers/xen/gntalloc.c if (gref->notify.flags & UNMAP_NOTIFY_SEND_EVENT) gref 428 drivers/xen/gntalloc.c evtchn_put(gref->notify.event); gref 430 drivers/xen/gntalloc.c gref->notify.flags = op.action; gref 431 drivers/xen/gntalloc.c gref->notify.pgoff = pgoff; gref 432 drivers/xen/gntalloc.c gref->notify.event = op.event_channel_port; gref 477 drivers/xen/gntalloc.c struct gntalloc_gref *gref, *next; gref 486 drivers/xen/gntalloc.c gref = priv->gref; gref 488 drivers/xen/gntalloc.c gref->users--; gref 489 drivers/xen/gntalloc.c next = list_entry(gref->next_gref.next, gref 491 drivers/xen/gntalloc.c if (gref->users == 0) gref 492 drivers/xen/gntalloc.c __del_gref(gref); gref 493 drivers/xen/gntalloc.c gref = next; gref 509 drivers/xen/gntalloc.c struct gntalloc_gref *gref; gref 527 drivers/xen/gntalloc.c gref = find_grefs(priv, vma->vm_pgoff << PAGE_SHIFT, count); gref 528 drivers/xen/gntalloc.c if (gref == NULL) { gref 536 drivers/xen/gntalloc.c vm_priv->gref = gref; gref 547 drivers/xen/gntalloc.c gref->users++; gref 549 drivers/xen/gntalloc.c gref->page); gref 553 drivers/xen/gntalloc.c gref = list_entry(gref->next_file.next, gref 1051 drivers/xen/grant-table.c foreign->gref = map_ops[i].ref; gref 41 drivers/xen/xen-front-pgdir-shbuf.c grant_ref_t gref[1]; /* Variable length */ gref 160 drivers/xen/xen-front-pgdir-shbuf.c gref)) / sizeof(grant_ref_t)) gref 296 drivers/xen/xen-front-pgdir-shbuf.c page_dir->gref[cur_gref], gref 386 drivers/xen/xen-front-pgdir-shbuf.c memcpy(&page_dir->gref, &buf->grefs[cur_gref], gref 455 drivers/xen/xen-scsiback.c flags, seg[i].gref, info->domid); gref 247 include/xen/grant_table.h grant_ref_t gref; gref 227 include/xen/interface/grant_table.h grant_ref_t gref; gref 188 include/xen/interface/io/blkif.h grant_ref_t gref; /* reference to I/O buffer frame */ gref 543 include/xen/interface/io/displif.h grant_ref_t gref[1]; /* Variable length */ gref 836 include/xen/interface/io/netif.h grant_ref_t gref; gref 894 include/xen/interface/io/netif.h grant_ref_t gref; gref 679 include/xen/interface/io/sndif.h grant_ref_t gref[1]; /* Variable length */ gref 182 include/xen/interface/io/vscsiif.h grant_ref_t gref; gref 174 sound/xen/xen_snd_front_evtchnl.c if (channel->gref != GRANT_INVALID_REF) gref 175 sound/xen/xen_snd_front_evtchnl.c gnttab_end_foreign_access(channel->gref, 0, page); gref 204 sound/xen/xen_snd_front_evtchnl.c grant_ref_t gref; gref 214 sound/xen/xen_snd_front_evtchnl.c channel->gref = GRANT_INVALID_REF; gref 240 sound/xen/xen_snd_front_evtchnl.c ret = xenbus_grant_ring(xb_dev, sring, 1, &gref); gref 254 sound/xen/xen_snd_front_evtchnl.c gref = ret; gref 258 sound/xen/xen_snd_front_evtchnl.c channel->gref = gref; gref 372 sound/xen/xen_snd_front_evtchnl.c ret = xenbus_printf(xbt, path, node_ring, "%u", channel->gref); gref 42 sound/xen/xen_snd_front_evtchnl.h int gref;