/drivers/xen/ |
D | gntalloc.c | 105 struct gntalloc_gref *gref; member 110 static void __del_gref(struct gntalloc_gref *gref); 114 struct gntalloc_gref *gref, *n; in do_cleanup() local 115 list_for_each_entry_safe(gref, n, &gref_list, next_gref) { in do_cleanup() 116 if (!gref->users) in do_cleanup() 117 __del_gref(gref); in do_cleanup() 127 struct gntalloc_gref *gref, *next; in add_grefs() local 131 gref = kzalloc(sizeof(*gref), GFP_KERNEL); in add_grefs() 132 if (!gref) { in add_grefs() 136 list_add_tail(&gref->next_gref, &queue_gref); in add_grefs() [all …]
|
D | xen-front-pgdir-shbuf.c | 41 grant_ref_t gref[1]; /* Variable length */ member 160 gref)) / sizeof(grant_ref_t)) 296 page_dir->gref[cur_gref], in backend_map() 386 memcpy(&page_dir->gref, &buf->grefs[cur_gref], in guest_fill_page_dir()
|
D | grant-table.c | 1051 foreign->gref = map_ops[i].ref; in gnttab_map_refs()
|
D | xen-scsiback.c | 455 flags, seg[i].gref, info->domid); in scsiback_gnttab_data_map_list()
|
/drivers/gpu/drm/xen/ |
D | xen_drm_front_evtchnl.c | 150 if (evtchnl->gref != GRANT_INVALID_REF) in evtchnl_free() 151 gnttab_end_foreign_access(evtchnl->gref, 0, page); in evtchnl_free() 162 grant_ref_t gref; in evtchnl_alloc() local 171 evtchnl->gref = GRANT_INVALID_REF; in evtchnl_alloc() 188 ret = xenbus_grant_ring(xb_dev, sring, 1, &gref); in evtchnl_alloc() 205 gref = ret; in evtchnl_alloc() 208 evtchnl->gref = gref; in evtchnl_alloc() 278 ret = xenbus_printf(xbt, path, node_ring, "%u", evtchnl->gref); in evtchnl_publish()
|
D | xen_drm_front_evtchnl.h | 40 int gref; member
|
/drivers/input/misc/ |
D | xen-kbdfront.c | 40 int gref; member 216 info->gref = -1; in xenkbd_probe() 433 info->gref = ret; in xenkbd_connect_backend() 457 "%u", info->gref); in xenkbd_connect_backend() 484 gnttab_end_foreign_access(info->gref, 0, 0UL); in xenkbd_connect_backend() 485 info->gref = -1; in xenkbd_connect_backend() 494 if (info->gref >= 0) in xenkbd_disconnect_backend() 495 gnttab_end_foreign_access(info->gref, 0, 0UL); in xenkbd_disconnect_backend() 496 info->gref = -1; in xenkbd_disconnect_backend()
|
/drivers/block/ |
D | xen-blkfront.c | 85 grant_ref_t gref; member 309 gnt_list_entry->gref = GRANT_INVALID_REF; in fill_grant_buffer() 338 if (gnt_list_entry->gref != GRANT_INVALID_REF) in get_free_grant() 347 gnttab_page_grant_foreign_access_ref_one(gnt_list_entry->gref, in grant_foreign_access() 360 if (gnt_list_entry->gref != GRANT_INVALID_REF) in get_grant() 364 gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); in get_grant() 365 BUG_ON(gnt_list_entry->gref == -ENOSPC); in get_grant() 370 gnttab_grant_foreign_access_ref(gnt_list_entry->gref, in get_grant() 384 if (gnt_list_entry->gref != GRANT_INVALID_REF) in get_indirect_grant() 388 gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); in get_indirect_grant() [all …]
|
/drivers/scsi/ |
D | xen-scsifront.c | 100 int gref[vscsiif_grants_sg(SG_ALL) + SG_ALL]; member 236 if (unlikely(gnttab_query_foreign_access(shadow->gref[i]))) { in scsifront_gnttab_done() 241 gnttab_end_foreign_access(shadow->gref[i], 0, 0UL); in scsifront_gnttab_done() 448 shadow->gref[ref_cnt] = ref; in map_data_for_request() 449 shadow->seg[ref_cnt].gref = ref; in map_data_for_request() 484 shadow->gref[ref_cnt] = ref; in map_data_for_request() 485 seg->gref = ref; in map_data_for_request() 706 grant_ref_t gref; in scsifront_alloc_ring() local 719 err = xenbus_grant_ring(dev, sring, 1, &gref); in scsifront_alloc_ring() 726 info->ring_ref = gref; in scsifront_alloc_ring()
|
/drivers/block/xen-blkback/ |
D | blkback.c | 268 grant_ref_t gref) in get_persistent_gnt() argument 277 if (gref < data->gnt) in get_persistent_gnt() 279 else if (gref > data->gnt) in get_persistent_gnt() 833 pages[i]->gref); in xen_blkbk_map() 853 flags, pages[i]->gref, in xen_blkbk_map() 970 pages[i]->gref = req->u.indirect.indirect_grefs[i]; in xen_blkbk_parse_indirect() 987 pending_req->segments[n]->gref = segments[i].gref; in xen_blkbk_parse_indirect() 1301 pages[i]->gref = req->u.rw.seg[i].gref; in dispatch_rw_block_io()
|
D | common.h | 333 grant_ref_t gref; member
|
D | xenbus.c | 188 static int xen_blkif_map(struct xen_blkif_ring *ring, grant_ref_t *gref, in xen_blkif_map() argument 198 err = xenbus_map_ring_valloc(blkif->be->dev, gref, nr_grefs, in xen_blkif_map()
|
/drivers/net/xen-netback/ |
D | hash.c | 289 u32 xenvif_set_hash_key(struct xenvif *vif, u32 gref, u32 len) in xenvif_set_hash_key() argument 293 .source.u.ref = gref, in xenvif_set_hash_key() 333 u32 xenvif_set_hash_mapping(struct xenvif *vif, u32 gref, u32 len, in xenvif_set_hash_mapping() argument 339 .source.u.ref = gref, in xenvif_set_hash_mapping()
|
D | common.h | 423 u32 xenvif_set_hash_key(struct xenvif *vif, u32 gref, u32 len); 425 u32 xenvif_set_hash_mapping(struct xenvif *vif, u32 gref, u32 len,
|
D | rx.c | 187 op->source.u.ref = foreign->gref; in xenvif_rx_copy_add() 195 op->dest.u.ref = req->gref; in xenvif_rx_copy_add()
|
D | netback.c | 336 txp->gref, queue->vif->domid); in xenvif_tx_create_map_op() 981 queue->tx_copy_ops[*copy_ops].source.u.ref = txreq.gref; in xenvif_tx_build_gops()
|
/drivers/char/tpm/ |
D | xen-tpmfront.c | 256 grant_ref_t gref; in setup_ring() local 264 rv = xenbus_grant_ring(dev, priv->shr, 1, &gref); in setup_ring() 268 priv->ring_ref = gref; in setup_ring()
|
/drivers/net/ |
D | xen-netfront.c | 324 req->gref = ref; in xennet_alloc_rx_buffers() 453 tx->gref = ref; in xennet_tx_setup_grant() 733 RING_GET_REQUEST(&queue->rx, queue->rx.req_prod_pvt)->gref = ref; in xennet_move_rx_slot() 1537 grant_ref_t gref; in setup_netfront() local 1554 err = xenbus_grant_ring(dev, txs, 1, &gref); in setup_netfront() 1557 queue->tx_ring_ref = gref; in setup_netfront() 1568 err = xenbus_grant_ring(dev, rxs, 1, &gref); in setup_netfront() 1571 queue->rx_ring_ref = gref; in setup_netfront()
|
/drivers/pci/ |
D | xen-pcifront.c | 790 grant_ref_t gref; in pcifront_publish_info() local 792 err = xenbus_grant_ring(pdev->xdev, pdev->sh_info, 1, &gref); in pcifront_publish_info() 796 pdev->gnt_ref = gref; in pcifront_publish_info()
|