Home
last modified time | relevance | path

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

12

/linux-6.1.9/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.c33 grant_ref_t gref[1]; /* Variable length */ member
151 gref)) / sizeof(grant_ref_t))
287 page_dir->gref[cur_gref], in backend_map()
384 memcpy(&page_dir->gref, &buf->grefs[cur_gref], in guest_fill_page_dir()
/linux-6.1.9/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, NULL); 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, NULL); in xenkbd_disconnect_backend()
496 info->gref = -1; in xenkbd_disconnect_backend()
/linux-6.1.9/drivers/block/
Dxen-blkfront.c88 grant_ref_t gref; member
330 gnt_list_entry->gref = INVALID_GRANT_REF; in fill_grant_buffer()
359 if (gnt_list_entry->gref != INVALID_GRANT_REF) in get_free_grant()
368 gnttab_page_grant_foreign_access_ref_one(gnt_list_entry->gref, in grant_foreign_access()
381 if (gnt_list_entry->gref != INVALID_GRANT_REF) in get_grant()
385 gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); in get_grant()
386 BUG_ON(gnt_list_entry->gref == -ENOSPC); in get_grant()
391 gnttab_grant_foreign_access_ref(gnt_list_entry->gref, in get_grant()
405 if (gnt_list_entry->gref != INVALID_GRANT_REF) in get_indirect_grant()
409 gnt_list_entry->gref = gnttab_claim_grant_reference(gref_head); in get_indirect_grant()
[all …]
/linux-6.1.9/include/xen/interface/io/
Dnetif.h832 grant_ref_t gref; member
895 grant_ref_t gref; member
Dvscsiif.h237 grant_ref_t gref; member
Dblkif.h188 grant_ref_t gref; /* reference to I/O buffer frame */ member
Dusbif.h327 grant_ref_t gref; member
Ddisplif.h540 grant_ref_t gref[1]; /* Variable length */ member
Dsndif.h662 grant_ref_t gref[1]; /* Variable length */ member
/linux-6.1.9/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()
1263 pages[i]->gref = req->u.rw.seg[i].gref; in dispatch_rw_block_io()
Dcommon.h335 grant_ref_t gref; member
Dxenbus.c192 static int xen_blkif_map(struct xen_blkif_ring *ring, grant_ref_t *gref, in xen_blkif_map() argument
205 err = xenbus_map_ring_valloc(blkif->be->dev, gref, nr_grefs, in xen_blkif_map()
/linux-6.1.9/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.c352 txp->gref, queue->vif->domid); in xenvif_tx_create_map_op()
405 cop->source.u.ref = txp->gref; in xenvif_get_requests()
/linux-6.1.9/drivers/gpu/drm/xen/
Dxen_drm_front_evtchnl.c150 xenbus_teardown_ring(&page, 1, &evtchnl->gref); in evtchnl_free()
171 1, &evtchnl->gref); in evtchnl_alloc()
257 ret = xenbus_printf(xbt, path, node_ring, "%u", evtchnl->gref); in evtchnl_publish()
Dxen_drm_front_evtchnl.h40 int gref; member
/linux-6.1.9/sound/xen/
Dxen_snd_front_evtchnl.h33 int gref; member
Dxen_snd_front_evtchnl.c170 xenbus_teardown_ring(&page, 1, &channel->gref); in evtchnl_free()
206 ret = xenbus_setup_ring(xb_dev, GFP_KERNEL, &page, 1, &channel->gref); in evtchnl_alloc()
344 ret = xenbus_printf(xbt, path, node_ring, "%u", channel->gref); in evtchnl_publish()
/linux-6.1.9/drivers/scsi/
Dxen-scsifront.c99 int gref[vscsiif_grants_sg(SG_ALL) + SG_ALL]; member
248 if (unlikely(!gnttab_try_end_foreign_access(shadow->gref[i]))) { in scsifront_gnttab_done()
526 shadow->gref[ref_cnt] = ref; in map_data_for_request()
527 shadow->seg[ref_cnt].gref = ref; in map_data_for_request()
562 shadow->gref[ref_cnt] = ref; in map_data_for_request()
563 seg->gref = ref; in map_data_for_request()
/linux-6.1.9/include/xen/interface/
Dgrant_table.h232 grant_ref_t gref; member
/linux-6.1.9/include/xen/
Dgrant_table.h280 grant_ref_t gref; member
/linux-6.1.9/drivers/usb/host/
Dxen-hcd.c606 seg[i].gref = ref; in xenhcd_gnttab_map()
734 if (!gnttab_try_end_foreign_access(shadow->req.seg[i].gref)) in xenhcd_gnttab_done()

12