Home
last modified time | relevance | path

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

/xen/tools/libs/devicemodel/
A Dcore.c25 xendevicemodel_handle *dmod = CONTAINER_OF(ah, *dmod, tc_ah); in all_restrict_cb() local
27 if (dmod->fd < 0) in all_restrict_cb()
37 xendevicemodel_handle *dmod = calloc(1, sizeof(*dmod)); in xendevicemodel_open() local
40 if (!dmod) in xendevicemodel_open()
43 dmod->fd = -1; in xendevicemodel_open()
52 dmod->logger = dmod->logger_tofree = in xendevicemodel_open()
59 dmod->xcall = xencall_open(dmod->logger, 0); in xendevicemodel_open()
67 return dmod; in xendevicemodel_open()
74 free(dmod); in xendevicemodel_open()
82 if (!dmod) in xendevicemodel_close()
[all …]
A Dlinux.c38 int osdep_xendevicemodel_open(xendevicemodel_handle *dmod) in osdep_xendevicemodel_open() argument
72 dmod->fd = fd; in osdep_xendevicemodel_open()
76 int osdep_xendevicemodel_close(xendevicemodel_handle *dmod) in osdep_xendevicemodel_close() argument
78 if (dmod->fd < 0) in osdep_xendevicemodel_close()
81 return close(dmod->fd); in osdep_xendevicemodel_close()
84 int osdep_xendevicemodel_op(xendevicemodel_handle *dmod, in osdep_xendevicemodel_op() argument
93 if (dmod->fd < 0) in osdep_xendevicemodel_op()
109 rc = ioctl(dmod->fd, IOCTL_PRIVCMD_DM_OP, &uop); in osdep_xendevicemodel_op()
119 int osdep_xendevicemodel_restrict(xendevicemodel_handle *dmod, in osdep_xendevicemodel_restrict() argument
122 if (dmod->fd < 0) { in osdep_xendevicemodel_restrict()
[all …]
A Dprivate.h25 int xendevicemodel_xcall(xendevicemodel_handle *dmod,
29 int osdep_xendevicemodel_open(xendevicemodel_handle *dmod);
30 int osdep_xendevicemodel_close(xendevicemodel_handle *dmod);
31 int osdep_xendevicemodel_op(xendevicemodel_handle *dmod,
36 xendevicemodel_handle *dmod, domid_t domid);
39 xtl_log(dmod->logger, XTL_ERROR, errno, "xendevicemodel", _f)
A Dcompat.c22 int osdep_xendevicemodel_open(xendevicemodel_handle *dmod) in osdep_xendevicemodel_open() argument
27 int osdep_xendevicemodel_close(xendevicemodel_handle *dmod) in osdep_xendevicemodel_close() argument
32 int osdep_xendevicemodel_op(xendevicemodel_handle *dmod, in osdep_xendevicemodel_op() argument
36 return xendevicemodel_xcall(dmod, domid, nr_bufs, bufs); in osdep_xendevicemodel_op()
39 int osdep_xendevicemodel_restrict(xendevicemodel_handle *dmod, in osdep_xendevicemodel_restrict() argument
/xen/tools/libs/devicemodel/include/
A Dxendevicemodel.h36 int xendevicemodel_close(xendevicemodel_handle *dmod);
53 xendevicemodel_handle *dmod, domid_t domid, int handle_bufioreq,
72 xendevicemodel_handle *dmod, domid_t domid, ioservid_t id,
137 xendevicemodel_handle *dmod, domid_t domid, ioservid_t id,
153 xendevicemodel_handle *dmod, domid_t domid, ioservid_t id,
165 xendevicemodel_handle *dmod, domid_t domid, ioservid_t id);
196 xendevicemodel_handle *dmod, domid_t domid, uint16_t segment,
209 xendevicemodel_handle *dmod, domid_t domid, uint8_t irq,
234 xendevicemodel_handle *dmod, domid_t domid, uint64_t msi_addr,
253 xendevicemodel_handle *dmod, domid_t domid, uint64_t first_pfn,
[all …]
/xen/tools/libxc/
A Dxc_devicemodel_compat.c13 return xendevicemodel_create_ioreq_server(xch->dmod, domid, in xc_hvm_create_ioreq_server()
21 return xendevicemodel_get_ioreq_server_info(xch->dmod, domid, id, in xc_hvm_get_ioreq_server_info()
30 return xendevicemodel_map_io_range_to_ioreq_server(xch->dmod, domid, in xc_hvm_map_io_range_to_ioreq_server()
39 return xendevicemodel_unmap_io_range_from_ioreq_server(xch->dmod, domid, in xc_hvm_unmap_io_range_from_ioreq_server()
48 return xendevicemodel_map_pcidev_to_ioreq_server(xch->dmod, domid, id, in xc_hvm_map_pcidev_to_ioreq_server()
57 return xendevicemodel_unmap_pcidev_from_ioreq_server(xch->dmod, domid, in xc_hvm_unmap_pcidev_from_ioreq_server()
65 return xendevicemodel_destroy_ioreq_server(xch->dmod, domid, id); in xc_hvm_destroy_ioreq_server()
71 return xendevicemodel_set_ioreq_server_state(xch->dmod, domid, id, in xc_hvm_set_ioreq_server_state()
79 return xendevicemodel_set_pci_intx_level(xch->dmod, domid, segment, in xc_hvm_set_pci_intx_level()
105 return xendevicemodel_track_dirty_vram(xch->dmod, domid, first_pfn, in xc_hvm_track_dirty_vram()
[all …]
A Dxc_private.c70 xch->dmod = xendevicemodel_open(xch->error_handler, 0); in xc_interface_open()
71 if ( xch->dmod == NULL ) in xc_interface_open()
97 rc = xendevicemodel_close(xch->dmod); in xc_interface_close()
119 return xch->dmod; in xc_interface_dmod_handle()
A Dxc_private.h100 xendevicemodel_handle *dmod; member

Completed in 10 milliseconds