Home
last modified time | relevance | path

Searched refs:xgt (Results 1 – 8 of 8) sorted by relevance

/xen/tools/libs/gnttab/
A Dgnttab_core.c27 xengnttab_handle *xgt = CONTAINER_OF(ah, *xgt, tc_ah); in all_restrict_cb() local
33 xengnttab_handle *xgt = malloc(sizeof(*xgt)); in xengnttab_open() local
38 xgt->fd = -1; in xengnttab_open()
39 xgt->logger = logger; in xengnttab_open()
45 if (!xgt->logger) { in xengnttab_open()
46 xgt->logger = xgt->logger_tofree = in xengnttab_open()
55 return xgt; in xengnttab_open()
61 free(xgt); in xengnttab_open()
69 if ( !xgt ) in xengnttab_close()
75 free(xgt); in xengnttab_close()
[all …]
A Dminios.c37 int osdep_gnttab_open(xengnttab_handle *xgt) in osdep_gnttab_open() argument
43 xgt->fd = fd; in osdep_gnttab_open()
47 int osdep_gnttab_close(xengnttab_handle *xgt) in osdep_gnttab_close() argument
49 if ( xgt->fd == -1 ) in osdep_gnttab_close()
52 return close(xgt->fd); in osdep_gnttab_close()
61 void *osdep_gnttab_grant_map(xengnttab_handle *xgt, in osdep_gnttab_grant_map() argument
67 int fd = xgt->fd; in osdep_gnttab_grant_map()
80 int osdep_gnttab_unmap(xengnttab_handle *xgt, in osdep_gnttab_unmap() argument
84 int fd = xgt->fd; in osdep_gnttab_unmap()
98 int fd = xgt->fd; in osdep_gnttab_set_max_grants()
[all …]
A Dgnttab_unimp.c31 int xengnttab_close(xengnttab_handle *xgt) in xengnttab_close() argument
36 int xengnttab_set_max_grants(xengnttab_handle *xgt, uint32_t count) in xengnttab_set_max_grants() argument
41 void *xengnttab_map_grant_ref(xengnttab_handle *xgt, in xengnttab_map_grant_ref() argument
49 void *xengnttab_map_grant_refs(xengnttab_handle *xgt, in xengnttab_map_grant_refs() argument
58 void *xengnttab_map_domain_grant_refs(xengnttab_handle *xgt, in xengnttab_map_domain_grant_refs() argument
67 void *xengnttab_map_grant_ref_notify(xengnttab_handle *xgt, in xengnttab_map_grant_ref_notify() argument
82 int xengnttab_grant_copy(xengnttab_handle *xgt, in xengnttab_grant_copy() argument
89 int xengnttab_dmabuf_exp_from_refs(xengnttab_handle *xgt, uint32_t domid, in xengnttab_dmabuf_exp_from_refs() argument
96 int xengnttab_dmabuf_exp_wait_released(xengnttab_handle *xgt, uint32_t fd, in xengnttab_dmabuf_exp_wait_released() argument
102 int xengnttab_dmabuf_imp_to_refs(xengnttab_handle *xgt, uint32_t domid, in xengnttab_dmabuf_imp_to_refs() argument
[all …]
A Dlinux.c49 int osdep_gnttab_open(xengnttab_handle *xgt) in osdep_gnttab_open() argument
54 xgt->fd = fd; in osdep_gnttab_open()
58 int osdep_gnttab_close(xengnttab_handle *xgt) in osdep_gnttab_close() argument
60 if ( xgt->fd == -1 ) in osdep_gnttab_close()
63 return close(xgt->fd); in osdep_gnttab_close()
68 int fd = xgt->fd, rc; in osdep_gnttab_set_max_grants()
92 int fd = xgt->fd; in osdep_gnttab_grant_map()
178 GTERROR(xgt->logger, "mmap failed"); in osdep_gnttab_grant_map()
193 int osdep_gnttab_unmap(xengnttab_handle *xgt, in osdep_gnttab_unmap() argument
197 int fd = xgt->fd; in osdep_gnttab_unmap()
[all …]
A Dprivate.h20 int osdep_gnttab_open(xengnttab_handle *xgt);
21 int osdep_gnttab_close(xengnttab_handle *xgt);
23 int osdep_gnttab_set_max_grants(xengnttab_handle *xgt, uint32_t count);
26 void *osdep_gnttab_grant_map(xengnttab_handle *xgt,
31 int osdep_gnttab_unmap(xengnttab_handle *xgt,
34 int osdep_gnttab_grant_copy(xengnttab_handle *xgt,
38 int osdep_gnttab_dmabuf_exp_from_refs(xengnttab_handle *xgt, uint32_t domid,
42 int osdep_gnttab_dmabuf_exp_wait_released(xengnttab_handle *xgt,
45 int osdep_gnttab_dmabuf_imp_to_refs(xengnttab_handle *xgt, uint32_t domid,
49 int osdep_gnttab_dmabuf_imp_release(xengnttab_handle *xgt, uint32_t fd);
A Dfreebsd.c41 int osdep_gnttab_open(xengnttab_handle *xgt) in osdep_gnttab_open() argument
47 xgt->fd = fd; in osdep_gnttab_open()
52 int osdep_gnttab_close(xengnttab_handle *xgt) in osdep_gnttab_close() argument
54 if ( xgt->fd == -1 ) in osdep_gnttab_close()
57 return close(xgt->fd); in osdep_gnttab_close()
65 void *osdep_gnttab_grant_map(xengnttab_handle *xgt, in osdep_gnttab_grant_map() argument
72 int fd = xgt->fd; in osdep_gnttab_grant_map()
142 GTERROR(xgt->logger, "mmap failed"); in osdep_gnttab_grant_map()
159 int osdep_gnttab_unmap(xengnttab_handle *xgt, in osdep_gnttab_unmap() argument
164 int fd = xgt->fd; in osdep_gnttab_unmap()
[all …]
/xen/tools/libs/gnttab/include/
A Dxengnttab.h151 int xengnttab_close(xengnttab_handle *xgt);
160 int xengnttab_fd(xengnttab_handle *xgt);
171 void *xengnttab_map_grant_ref(xengnttab_handle *xgt,
192 void *xengnttab_map_grant_refs(xengnttab_handle *xgt,
212 void *xengnttab_map_domain_grant_refs(xengnttab_handle *xgt,
239 void *xengnttab_map_grant_ref_notify(xengnttab_handle *xgt,
268 int xengnttab_set_max_grants(xengnttab_handle *xgt,
295 int xengnttab_grant_copy(xengnttab_handle *xgt,
327 int xengnttab_dmabuf_exp_from_refs(xengnttab_handle *xgt, uint32_t domid,
349 int xengnttab_dmabuf_imp_to_refs(xengnttab_handle *xgt, uint32_t domid,
[all …]
/xen/tools/tests/depriv/
A Ddepriv-fd-checker.c171 static xengnttab_handle *xgt; variable
181 xgt = xengnttab_open(logger,0); in open_gntdev()
182 if (!xgt) trouble("xengnttab_open"); in open_gntdev()
196 int r = xengnttab_grant_copy(xgt,1,&seg); in test_gntdev()
217 return xengnttab_fd(xgt); in getfd_gntdev()
220 xengnttab_close(xgt); in close_gntdev()

Completed in 26 milliseconds