/linux-4.1.27/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 132 gref = kzalloc(sizeof(*gref), GFP_KERNEL); in add_grefs() 133 if (!gref) in add_grefs() 135 list_add_tail(&gref->next_gref, &queue_gref); in add_grefs() [all …]
|
D | grant-table.c | 802 foreign->gref = map_ops[i].ref; in gnttab_map_refs()
|
D | xen-scsiback.c | 454 flags, seg[i].gref, info->domid); in scsiback_gnttab_data_map_list()
|
/linux-4.1.27/drivers/input/misc/ |
D | xen-kbdfront.c | 38 int gref; member 123 info->gref = -1; in xenkbd_probe() 238 info->gref = ret; in xenkbd_connect_backend() 261 ret = xenbus_printf(xbt, dev->nodename, "page-gref", "%u", info->gref); in xenkbd_connect_backend() 288 gnttab_end_foreign_access(info->gref, 0, 0UL); in xenkbd_connect_backend() 289 info->gref = -1; in xenkbd_connect_backend() 298 if (info->gref >= 0) in xenkbd_disconnect_backend() 299 gnttab_end_foreign_access(info->gref, 0, 0UL); in xenkbd_disconnect_backend() 300 info->gref = -1; in xenkbd_disconnect_backend()
|
/linux-4.1.27/drivers/block/ |
D | xen-blkfront.c | 69 grant_ref_t gref; member 212 gnt_list_entry->gref = GRANT_INVALID_REF; in fill_grant_buffer() 244 if (gnt_list_entry->gref != GRANT_INVALID_REF) { in get_grant() 250 gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); in get_grant() 251 BUG_ON(gnt_list_entry->gref == -ENOSPC); in get_grant() 257 gnttab_grant_foreign_access_ref(gnt_list_entry->gref, in get_grant() 522 ring_req->u.indirect.indirect_grefs[n] = gnt_list_entry->gref; in blkif_queue_request() 526 ref = gnt_list_entry->gref; in blkif_queue_request() 558 .gref = ref, in blkif_queue_request() 565 .gref = ref, in blkif_queue_request() [all …]
|
/linux-4.1.27/include/xen/interface/io/ |
D | netif.h | 149 grant_ref_t gref; /* Reference to buffer page */ member 215 grant_ref_t gref; /* Reference to incoming granted frame */ member
|
D | vscsiif.h | 182 grant_ref_t gref; member
|
D | blkif.h | 139 grant_ref_t gref; /* reference to I/O buffer frame */ member
|
/linux-4.1.27/drivers/scsi/ |
D | xen-scsifront.c | 97 int gref[vscsiif_grants_sg(SG_ALL) + SG_ALL]; member 213 if (unlikely(gnttab_query_foreign_access(s->gref[i]) != 0)) { in scsifront_gnttab_done() 218 gnttab_end_foreign_access(s->gref[i], 0, 0UL); in scsifront_gnttab_done() 426 shadow->gref[ref_cnt] = ref; in map_data_for_request() 427 ring_req->seg[ref_cnt].gref = ref; in map_data_for_request() 461 shadow->gref[ref_cnt] = ref; in map_data_for_request() 462 seg->gref = ref; in map_data_for_request() 717 grant_ref_t gref; in scsifront_alloc_ring() local 730 err = xenbus_grant_ring(dev, sring, 1, &gref); in scsifront_alloc_ring() 737 info->ring_ref = gref; in scsifront_alloc_ring()
|
/linux-4.1.27/drivers/block/xen-blkback/ |
D | blkback.c | 232 grant_ref_t gref) in get_persistent_gnt() argument 241 if (gref < data->gnt) in get_persistent_gnt() 243 else if (gref > data->gnt) in get_persistent_gnt() 805 pages[i]->gref); in xen_blkbk_map() 824 flags, pages[i]->gref, in xen_blkbk_map() 939 pages[i]->gref = req->u.indirect.indirect_grefs[i]; in xen_blkbk_parse_indirect() 953 pending_req->segments[n]->gref = segments[i].gref; in xen_blkbk_parse_indirect() 1260 pages[i]->gref = req->u.rw.seg[i].gref; in dispatch_rw_block_io()
|
D | xenbus.c | 201 static int xen_blkif_map(struct xen_blkif *blkif, grant_ref_t gref, in xen_blkif_map() argument 210 err = xenbus_map_ring_valloc(blkif->be->dev, &gref, 1, in xen_blkif_map()
|
D | common.h | 334 grant_ref_t gref; member
|
/linux-4.1.27/drivers/char/tpm/ |
D | xen-tpmfront.c | 196 grant_ref_t gref; in setup_ring() local 204 rv = xenbus_grant_ring(dev, &priv->shr, 1, &gref); in setup_ring() 208 priv->ring_ref = gref; in setup_ring()
|
/linux-4.1.27/drivers/net/ |
D | xen-netfront.c | 320 req->gref = ref; in xennet_alloc_rx_buffers() 442 tx->gref = ref; in xennet_make_one_txreq() 664 RING_GET_REQUEST(&queue->rx, queue->rx.req_prod_pvt)->gref = ref; in xennet_move_rx_slot() 1487 grant_ref_t gref; in setup_netfront() local 1504 err = xenbus_grant_ring(dev, txs, 1, &gref); in setup_netfront() 1507 queue->tx_ring_ref = gref; in setup_netfront() 1518 err = xenbus_grant_ring(dev, rxs, 1, &gref); in setup_netfront() 1521 queue->rx_ring_ref = gref; in setup_netfront()
|
/linux-4.1.27/include/xen/ |
D | grant_table.h | 212 grant_ref_t gref; member
|
/linux-4.1.27/include/xen/interface/ |
D | grant_table.h | 227 grant_ref_t gref; member
|
/linux-4.1.27/drivers/pci/ |
D | xen-pcifront.c | 782 grant_ref_t gref; in pcifront_publish_info() local 784 err = xenbus_grant_ring(pdev->xdev, pdev->sh_info, 1, &gref); in pcifront_publish_info() 788 pdev->gnt_ref = gref; in pcifront_publish_info()
|
/linux-4.1.27/drivers/net/xen-netback/ |
D | netback.c | 261 npo->copy_gref = req->gref; in get_next_rx_buffer() 312 copy_gop->source.u.ref = foreign->gref; in xenvif_gop_frag_copy() 414 npo->copy_gref = req->gref; in xenvif_gop_skb() 792 txp->gref, queue->vif->domid); in xenvif_tx_create_map_op() 1287 queue->tx_copy_ops[*copy_ops].source.u.ref = txreq.gref; in xenvif_tx_build_gops()
|