Searched refs:xgt (Results 1 – 3 of 3) sorted by relevance
/openbmc/qemu/include/hw/xen/ |
H A D | xen_backend_ops.h | 154 int (*close)(xengnttab_handle *xgt); 155 int (*grant_copy)(xengnttab_handle *xgt, bool to_domain, uint32_t domid, 158 int (*set_max_grants)(xengnttab_handle *xgt, uint32_t nr_grants); 159 void *(*map_refs)(xengnttab_handle *xgt, uint32_t count, uint32_t domid, 161 int (*unmap)(xengnttab_handle *xgt, void *start_address, uint32_t *refs, 181 static inline int qemu_xen_gnttab_close(xengnttab_handle *xgt) in qemu_xen_gnttab_close() argument 186 return xen_gnttab_ops->close(xgt); in qemu_xen_gnttab_close() 189 static inline int qemu_xen_gnttab_grant_copy(xengnttab_handle *xgt, in qemu_xen_gnttab_grant_copy() argument 198 return xen_gnttab_ops->grant_copy(xgt, to_domain, domid, segs, nr_segs, in qemu_xen_gnttab_grant_copy() 202 static inline int qemu_xen_gnttab_set_max_grants(xengnttab_handle *xgt, in qemu_xen_gnttab_set_max_grants() argument [all …]
|
/openbmc/qemu/hw/i386/kvm/ |
H A D | xen_gnttab.c | 320 static int xen_be_gnttab_set_max_grants(struct xengntdev_handle *xgt, in xen_be_gnttab_set_max_grants() argument 326 static void *xen_be_gnttab_map_refs(struct xengntdev_handle *xgt, in xen_be_gnttab_map_refs() argument 363 act = g_hash_table_lookup(xgt->active_maps, GINT_TO_POINTER(refs[0])); in xen_be_gnttab_map_refs() 398 g_hash_table_insert(xgt->active_maps, GINT_TO_POINTER(refs[0]), act); in xen_be_gnttab_map_refs() 415 static int xen_be_gnttab_unmap(struct xengntdev_handle *xgt, in xen_be_gnttab_unmap() argument 432 act = g_hash_table_lookup(xgt->active_maps, GINT_TO_POINTER(refs[0])); in xen_be_gnttab_unmap() 443 g_hash_table_remove(xgt->active_maps, GINT_TO_POINTER(refs[0])); in xen_be_gnttab_unmap() 456 static int xen_be_gnttab_copy(struct xengntdev_handle *xgt, bool to_domain, in xen_be_gnttab_copy() argument 469 page = xen_be_gnttab_map_refs(xgt, 1, domid, &ref, prot); in xen_be_gnttab_copy() 486 if (xen_be_gnttab_unmap(xgt, page, &ref, 1)) { in xen_be_gnttab_copy() [all …]
|
/openbmc/qemu/hw/xen/ |
H A D | xen-operations.c | 40 static int libxengnttab_fallback_grant_copy(xengnttab_handle *xgt, in libxengnttab_fallback_grant_copy() argument 57 map = xengnttab_map_domain_grant_refs(xgt, nr_segs, domid, refs, prot); in libxengnttab_fallback_grant_copy() 80 if (xengnttab_unmap(xgt, map, nr_segs)) { in libxengnttab_fallback_grant_copy() 94 static int libxengnttab_backend_grant_copy(xengnttab_handle *xgt, in libxengnttab_backend_grant_copy() argument 127 if (xengnttab_grant_copy(xgt, nr_segs, xengnttab_segs)) { in libxengnttab_backend_grant_copy() 175 static int libxengnttab_backend_unmap(xengnttab_handle *xgt, in libxengnttab_backend_unmap() argument 179 return xengnttab_unmap(xgt, start_address, count); in libxengnttab_backend_unmap() 410 xengnttab_handle *xgt = xengnttab_open(NULL, 0); in setup_xen_backend_ops() local 412 if (xgt) { in setup_xen_backend_ops() 413 if (xengnttab_grant_copy(xgt, 0, NULL) == 0) { in setup_xen_backend_ops() [all …]
|