Lines Matching refs:op
171 struct xen_dm_op op; in xendevicemodel_create_ioreq_server() local
175 memset(&op, 0, sizeof(op)); in xendevicemodel_create_ioreq_server()
177 op.op = XEN_DMOP_create_ioreq_server; in xendevicemodel_create_ioreq_server()
178 data = &op.u.create_ioreq_server; in xendevicemodel_create_ioreq_server()
182 rc = xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_create_ioreq_server()
196 struct xen_dm_op op; in xendevicemodel_get_ioreq_server_info() local
200 memset(&op, 0, sizeof(op)); in xendevicemodel_get_ioreq_server_info()
202 op.op = XEN_DMOP_get_ioreq_server_info; in xendevicemodel_get_ioreq_server_info()
203 data = &op.u.get_ioreq_server_info; in xendevicemodel_get_ioreq_server_info()
207 rc = xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_get_ioreq_server_info()
227 struct xen_dm_op op; in xendevicemodel_map_io_range_to_ioreq_server() local
230 memset(&op, 0, sizeof(op)); in xendevicemodel_map_io_range_to_ioreq_server()
232 op.op = XEN_DMOP_map_io_range_to_ioreq_server; in xendevicemodel_map_io_range_to_ioreq_server()
233 data = &op.u.map_io_range_to_ioreq_server; in xendevicemodel_map_io_range_to_ioreq_server()
240 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_map_io_range_to_ioreq_server()
247 struct xen_dm_op op; in xendevicemodel_unmap_io_range_from_ioreq_server() local
250 memset(&op, 0, sizeof(op)); in xendevicemodel_unmap_io_range_from_ioreq_server()
252 op.op = XEN_DMOP_unmap_io_range_from_ioreq_server; in xendevicemodel_unmap_io_range_from_ioreq_server()
253 data = &op.u.unmap_io_range_from_ioreq_server; in xendevicemodel_unmap_io_range_from_ioreq_server()
260 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_unmap_io_range_from_ioreq_server()
267 struct xen_dm_op op; in xendevicemodel_map_mem_type_to_ioreq_server() local
276 memset(&op, 0, sizeof(op)); in xendevicemodel_map_mem_type_to_ioreq_server()
278 op.op = XEN_DMOP_map_mem_type_to_ioreq_server; in xendevicemodel_map_mem_type_to_ioreq_server()
279 data = &op.u.map_mem_type_to_ioreq_server; in xendevicemodel_map_mem_type_to_ioreq_server()
285 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_map_mem_type_to_ioreq_server()
292 struct xen_dm_op op; in xendevicemodel_map_pcidev_to_ioreq_server() local
300 memset(&op, 0, sizeof(op)); in xendevicemodel_map_pcidev_to_ioreq_server()
302 op.op = XEN_DMOP_map_io_range_to_ioreq_server; in xendevicemodel_map_pcidev_to_ioreq_server()
303 data = &op.u.map_io_range_to_ioreq_server; in xendevicemodel_map_pcidev_to_ioreq_server()
317 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_map_pcidev_to_ioreq_server()
324 struct xen_dm_op op; in xendevicemodel_unmap_pcidev_from_ioreq_server() local
332 memset(&op, 0, sizeof(op)); in xendevicemodel_unmap_pcidev_from_ioreq_server()
334 op.op = XEN_DMOP_unmap_io_range_from_ioreq_server; in xendevicemodel_unmap_pcidev_from_ioreq_server()
335 data = &op.u.unmap_io_range_from_ioreq_server; in xendevicemodel_unmap_pcidev_from_ioreq_server()
349 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_unmap_pcidev_from_ioreq_server()
355 struct xen_dm_op op; in xendevicemodel_destroy_ioreq_server() local
358 memset(&op, 0, sizeof(op)); in xendevicemodel_destroy_ioreq_server()
360 op.op = XEN_DMOP_destroy_ioreq_server; in xendevicemodel_destroy_ioreq_server()
361 data = &op.u.destroy_ioreq_server; in xendevicemodel_destroy_ioreq_server()
365 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_destroy_ioreq_server()
371 struct xen_dm_op op; in xendevicemodel_set_ioreq_server_state() local
374 memset(&op, 0, sizeof(op)); in xendevicemodel_set_ioreq_server_state()
376 op.op = XEN_DMOP_set_ioreq_server_state; in xendevicemodel_set_ioreq_server_state()
377 data = &op.u.set_ioreq_server_state; in xendevicemodel_set_ioreq_server_state()
382 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_set_ioreq_server_state()
389 struct xen_dm_op op; in xendevicemodel_set_pci_intx_level() local
392 memset(&op, 0, sizeof(op)); in xendevicemodel_set_pci_intx_level()
394 op.op = XEN_DMOP_set_pci_intx_level; in xendevicemodel_set_pci_intx_level()
395 data = &op.u.set_pci_intx_level; in xendevicemodel_set_pci_intx_level()
403 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_set_pci_intx_level()
410 struct xen_dm_op op; in xendevicemodel_set_isa_irq_level() local
413 memset(&op, 0, sizeof(op)); in xendevicemodel_set_isa_irq_level()
415 op.op = XEN_DMOP_set_isa_irq_level; in xendevicemodel_set_isa_irq_level()
416 data = &op.u.set_isa_irq_level; in xendevicemodel_set_isa_irq_level()
421 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_set_isa_irq_level()
427 struct xen_dm_op op; in xendevicemodel_set_pci_link_route() local
430 memset(&op, 0, sizeof(op)); in xendevicemodel_set_pci_link_route()
432 op.op = XEN_DMOP_set_pci_link_route; in xendevicemodel_set_pci_link_route()
433 data = &op.u.set_pci_link_route; in xendevicemodel_set_pci_link_route()
438 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_set_pci_link_route()
445 struct xen_dm_op op; in xendevicemodel_inject_msi() local
448 memset(&op, 0, sizeof(op)); in xendevicemodel_inject_msi()
450 op.op = XEN_DMOP_inject_msi; in xendevicemodel_inject_msi()
451 data = &op.u.inject_msi; in xendevicemodel_inject_msi()
456 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_inject_msi()
463 struct xen_dm_op op; in xendevicemodel_track_dirty_vram() local
466 memset(&op, 0, sizeof(op)); in xendevicemodel_track_dirty_vram()
468 op.op = XEN_DMOP_track_dirty_vram; in xendevicemodel_track_dirty_vram()
469 data = &op.u.track_dirty_vram; in xendevicemodel_track_dirty_vram()
474 return xendevicemodel_op(dmod, domid, 2, &op, sizeof(op), in xendevicemodel_track_dirty_vram()
482 struct xen_dm_op op; in xendevicemodel_modified_memory_bulk() local
486 memset(&op, 0, sizeof(op)); in xendevicemodel_modified_memory_bulk()
488 op.op = XEN_DMOP_modified_memory; in xendevicemodel_modified_memory_bulk()
489 header = &op.u.modified_memory; in xendevicemodel_modified_memory_bulk()
494 return xendevicemodel_op(dmod, domid, 2, &op, sizeof(op), in xendevicemodel_modified_memory_bulk()
514 struct xen_dm_op op; in xendevicemodel_set_mem_type() local
517 memset(&op, 0, sizeof(op)); in xendevicemodel_set_mem_type()
519 op.op = XEN_DMOP_set_mem_type; in xendevicemodel_set_mem_type()
520 data = &op.u.set_mem_type; in xendevicemodel_set_mem_type()
526 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_set_mem_type()
533 struct xen_dm_op op; in xendevicemodel_inject_event() local
536 memset(&op, 0, sizeof(op)); in xendevicemodel_inject_event()
538 op.op = XEN_DMOP_inject_event; in xendevicemodel_inject_event()
539 data = &op.u.inject_event; in xendevicemodel_inject_event()
548 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_inject_event()
554 struct xen_dm_op op; in xendevicemodel_shutdown() local
557 memset(&op, 0, sizeof(op)); in xendevicemodel_shutdown()
559 op.op = XEN_DMOP_remote_shutdown; in xendevicemodel_shutdown()
560 data = &op.u.remote_shutdown; in xendevicemodel_shutdown()
564 return xendevicemodel_op(dmod, domid, 1, &op, sizeof(op)); in xendevicemodel_shutdown()