Home
last modified time | relevance | path

Searched refs:gref (Results 1 – 19 of 19) sorted by relevance

/drivers/xen/
Dgntalloc.c105 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 …]
Dxen-front-pgdir-shbuf.c41 grant_ref_t gref[1]; /* Variable length */ member
160 gref)) / sizeof(grant_ref_t))
296 page_dir->gref[cur_gref], in backend_map()
393 memcpy(&page_dir->gref, &buf->grefs[cur_gref], in guest_fill_page_dir()
Dgrant-table.c1182 foreign->gref = map_ops[i].ref; in gnttab_map_refs()
Dxen-scsiback.c413 flags, seg[i].gref, info->domid); in scsiback_gnttab_data_map_list()
/drivers/gpu/drm/xen/
Dxen_drm_front_evtchnl.c150 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()
Dxen_drm_front_evtchnl.h40 int gref; member
/drivers/input/misc/
Dxen-kbdfront.c40 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/
Dxen-blkfront.c88 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()
[all …]
/drivers/scsi/
Dxen-scsifront.c100 int gref[vscsiif_grants_sg(SG_ALL) + SG_ALL]; member
236 if (unlikely(!gnttab_try_end_foreign_access(shadow->gref[i]))) { in scsifront_gnttab_done()
453 shadow->gref[ref_cnt] = ref; in map_data_for_request()
454 shadow->seg[ref_cnt].gref = ref; in map_data_for_request()
489 shadow->gref[ref_cnt] = ref; in map_data_for_request()
490 seg->gref = ref; in map_data_for_request()
711 grant_ref_t gref; in scsifront_alloc_ring() local
724 err = xenbus_grant_ring(dev, sring, 1, &gref); in scsifront_alloc_ring()
731 info->ring_ref = gref; in scsifront_alloc_ring()
/drivers/block/xen-blkback/
Dblkback.c206 grant_ref_t gref) in get_persistent_gnt() argument
215 if (gref < data->gnt) in get_persistent_gnt()
217 else if (gref > data->gnt) in get_persistent_gnt()
785 pages[i]->gref); in xen_blkbk_map()
811 flags, pages[i]->gref, in xen_blkbk_map()
928 pages[i]->gref = req->u.indirect.indirect_grefs[i]; in xen_blkbk_parse_indirect()
945 pending_req->segments[n]->gref = segments[i].gref; in xen_blkbk_parse_indirect()
1262 pages[i]->gref = req->u.rw.seg[i].gref; in dispatch_rw_block_io()
Dcommon.h335 grant_ref_t gref; member
Dxenbus.c191 static int xen_blkif_map(struct xen_blkif_ring *ring, grant_ref_t *gref, in xen_blkif_map() argument
204 err = xenbus_map_ring_valloc(blkif->be->dev, gref, nr_grefs, in xen_blkif_map()
/drivers/net/xen-netback/
Dhash.c291 u32 xenvif_set_hash_key(struct xenvif *vif, u32 gref, u32 len) in xenvif_set_hash_key() argument
295 .source.u.ref = gref, in xenvif_set_hash_key()
335 u32 xenvif_set_hash_mapping(struct xenvif *vif, u32 gref, u32 len, in xenvif_set_hash_mapping() argument
341 .source.u.ref = gref, in xenvif_set_hash_mapping()
Dcommon.h432 u32 xenvif_set_hash_key(struct xenvif *vif, u32 gref, u32 len);
434 u32 xenvif_set_hash_mapping(struct xenvif *vif, u32 gref, u32 len,
Drx.c213 op->source.u.ref = foreign->gref; in xenvif_rx_copy_add()
221 op->dest.u.ref = req->gref; in xenvif_rx_copy_add()
Dnetback.c348 txp->gref, queue->vif->domid); in xenvif_tx_create_map_op()
405 cop->source.u.ref = txp->gref; in xenvif_get_requests()
/drivers/char/tpm/
Dxen-tpmfront.c256 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/
Dxen-netfront.c340 req->gref = ref; in xennet_alloc_rx_buffers()
499 info->tx_local.gref = ref; in xennet_tx_setup_grant()
923 RING_GET_REQUEST(&queue->rx, queue->rx.req_prod_pvt)->gref = ref; in xennet_move_rx_slot()
1975 grant_ref_t gref; in setup_netfront() local
1992 err = xenbus_grant_ring(dev, txs, 1, &gref); in setup_netfront()
1995 queue->tx_ring_ref = gref; in setup_netfront()
2006 err = xenbus_grant_ring(dev, rxs, 1, &gref); in setup_netfront()
2009 queue->rx_ring_ref = gref; in setup_netfront()
/drivers/pci/
Dxen-pcifront.c790 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()