Home
last modified time | relevance | path

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

12

/linux/drivers/xen/
A Dgntalloc.c131 gref = kzalloc(sizeof(*gref), GFP_KERNEL); in add_grefs()
132 if (!gref) { in add_grefs()
211 if (gref->page) in __del_gref()
214 kfree(gref); in __del_gref()
224 rv = gref; in find_grefs()
362 if (gref) { in gntalloc_ioctl_dealloc()
372 gref = n; in gntalloc_ioctl_dealloc()
403 if (!gref) { in gntalloc_ioctl_unmap_notify()
486 gref = priv->gref; in gntalloc_vma_close()
536 vm_priv->gref = gref; in gntalloc_mmap()
[all …]
A 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()
/linux/drivers/gpu/drm/xen/
A 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()
A Dxen_drm_front_evtchnl.h40 int gref; member
/linux/sound/xen/
A Dxen_snd_front_evtchnl.c170 if (channel->gref != GRANT_INVALID_REF) in evtchnl_free()
171 gnttab_end_foreign_access(channel->gref, 0, page); in evtchnl_free()
200 grant_ref_t gref; in evtchnl_alloc() local
210 channel->gref = GRANT_INVALID_REF; in evtchnl_alloc()
236 ret = xenbus_grant_ring(xb_dev, sring, 1, &gref); in evtchnl_alloc()
250 gref = ret; in evtchnl_alloc()
254 channel->gref = gref; in evtchnl_alloc()
368 ret = xenbus_printf(xbt, path, node_ring, "%u", channel->gref); in evtchnl_publish()
A Dxen_snd_front_evtchnl.h42 int gref; member
/linux/drivers/input/misc/
A 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()
/linux/drivers/block/
A Dxen-blkfront.c88 grant_ref_t gref; member
323 gnt_list_entry->gref = GRANT_INVALID_REF; in fill_grant_buffer()
379 BUG_ON(gnt_list_entry->gref == -ENOSPC); in get_grant()
403 BUG_ON(gnt_list_entry->gref == -ENOSPC); in get_indirect_grant()
628 ref = gnt_list_entry->gref; in blkif_setup_rw_req_grant()
661 .gref = ref, in blkif_setup_rw_req_grant()
667 .gref = ref, in blkif_setup_rw_req_grant()
1463 s->grants_used[i]->gref); in blkif_completion()
1483 s->indirect_grants[i]->gref); in blkif_completion()
1677 grant_ref_t gref[XENBUS_MAX_RING_GRANTS]; in setup_blkring() local
[all …]
/linux/drivers/scsi/
A Dxen-scsifront.c100 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()
454 shadow->gref[ref_cnt] = ref; in map_data_for_request()
455 shadow->seg[ref_cnt].gref = ref; in map_data_for_request()
490 shadow->gref[ref_cnt] = ref; in map_data_for_request()
491 seg->gref = ref; in map_data_for_request()
712 grant_ref_t gref; in scsifront_alloc_ring() local
725 err = xenbus_grant_ring(dev, sring, 1, &gref); in scsifront_alloc_ring()
732 info->ring_ref = gref; in scsifront_alloc_ring()
/linux/drivers/block/xen-blkback/
A 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()
A Dcommon.h332 grant_ref_t gref; member
A Dxenbus.c186 static int xen_blkif_map(struct xen_blkif_ring *ring, grant_ref_t *gref, in xen_blkif_map() argument
199 err = xenbus_map_ring_valloc(blkif->be->dev, gref, nr_grefs, in xen_blkif_map()
/linux/include/xen/interface/io/
A Dnetif.h832 grant_ref_t gref; member
895 grant_ref_t gref; member
A Dvscsiif.h165 grant_ref_t gref; member
A Dblkif.h188 grant_ref_t gref; /* reference to I/O buffer frame */ member
A Ddisplif.h540 grant_ref_t gref[1]; /* Variable length */ member
A Dsndif.h662 grant_ref_t gref[1]; /* Variable length */ member
/linux/drivers/net/xen-netback/
A 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()
A Dcommon.h444 u32 xenvif_set_hash_key(struct xenvif *vif, u32 gref, u32 len);
446 u32 xenvif_set_hash_mapping(struct xenvif *vif, u32 gref, u32 len,
A Drx.c211 op->source.u.ref = foreign->gref; in xenvif_rx_copy_add()
219 op->dest.u.ref = req->gref; in xenvif_rx_copy_add()
/linux/drivers/char/tpm/
A 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()
/linux/drivers/net/
A Dxen-netfront.c332 req->gref = ref; in xennet_alloc_rx_buffers()
493 info->tx_local.gref = ref; in xennet_tx_setup_grant()
864 RING_GET_REQUEST(&queue->rx, queue->rx.req_prod_pvt)->gref = ref; in xennet_move_rx_slot()
1899 grant_ref_t gref; in setup_netfront() local
1916 err = xenbus_grant_ring(dev, txs, 1, &gref); in setup_netfront()
1919 queue->tx_ring_ref = gref; in setup_netfront()
1930 err = xenbus_grant_ring(dev, rxs, 1, &gref); in setup_netfront()
1933 queue->rx_ring_ref = gref; in setup_netfront()
/linux/include/xen/interface/
A Dgrant_table.h210 grant_ref_t gref; member
/linux/drivers/pci/
A Dxen-pcifront.c772 grant_ref_t gref; in pcifront_publish_info() local
774 err = xenbus_grant_ring(pdev->xdev, pdev->sh_info, 1, &gref); in pcifront_publish_info()
778 pdev->gnt_ref = gref; in pcifront_publish_info()
/linux/include/xen/
A Dgrant_table.h272 grant_ref_t gref; member

Completed in 64 milliseconds

12