Lines Matching refs:fd

173 	ctx->fd = devfd;  in vm_create()
206 error = ioctl(ctx->fd, ACRN_IOCTL_CREATE_VM, &create_vm); in vm_create()
234 error = ioctl(ctx->fd, ACRN_IOCTL_CREATE_IOREQ_CLIENT, 0); in vm_create_ioreq_client()
245 error = ioctl(ctx->fd, ACRN_IOCTL_DESTROY_IOREQ_CLIENT, ctx->ioreq_client); in vm_destroy_ioreq_client()
257 error = ioctl(ctx->fd, ACRN_IOCTL_ATTACH_IOREQ_CLIENT, ctx->ioreq_client); in vm_attach_ioreq_client()
275 error = ioctl(ctx->fd, ACRN_IOCTL_NOTIFY_REQUEST_FINISH, &notify); in vm_notify_request_done()
289 if (ioctl(ctx->fd, ACRN_IOCTL_DESTROY_VM, NULL)) { in vm_destroy()
292 close(ctx->fd); in vm_destroy()
302 error = ioctl(ctx->fd, ACRN_IOCTL_SETUP_ASYNCIO, base); in vm_setup_asyncio()
364 error = ioctl(ctx->fd, ACRN_IOCTL_SET_MEMSEG, &memmap); in vm_map_memseg_vma()
463 error = ioctl(ctx->fd, ACRN_IOCTL_START_VM, &ctx->vmid); in vm_run()
473 if (ioctl(ctx->fd, ACRN_IOCTL_PAUSE_VM, &ctx->vmid)) { in vm_pause()
481 if (ioctl(ctx->fd, ACRN_IOCTL_RESET_VM, &ctx->vmid)) { in vm_reset()
489 if (ioctl(ctx->fd, ACRN_IOCTL_CLEAR_VM_IOREQ, NULL)) { in vm_clear_ioreq()
528 error = ioctl(ctx->fd, ACRN_IOCTL_INJECT_MSI, &msi); in vm_lapic_msi()
544 error = ioctl(ctx->fd, ACRN_IOCTL_SET_IRQLINE, *req); in vm_set_gsi_irq()
555 error = ioctl(ctx->fd, ACRN_IOCTL_ASSIGN_PCIDEV, pcidev); in vm_assign_pcidev()
566 error = ioctl(ctx->fd, ACRN_IOCTL_DEASSIGN_PCIDEV, pcidev); in vm_deassign_pcidev()
577 error = ioctl(ctx->fd, ACRN_IOCTL_ASSIGN_MMIODEV, mmiodev); in vm_assign_mmiodev()
588 error = ioctl(ctx->fd, ACRN_IOCTL_DEASSIGN_MMIODEV, mmiodev); in vm_deassign_mmiodev()
607 error = ioctl(ctx->fd, ACRN_IOCTL_SET_MEMSEG, &memmap); in vm_map_ptdev_mmio()
627 error = ioctl(ctx->fd, ACRN_IOCTL_UNSET_MEMSEG, &memmap); in vm_unmap_ptdev_mmio()
638 error = ioctl(ctx->fd, ACRN_IOCTL_CREATE_VDEV, dev); in vm_add_hv_vdev()
649 error = ioctl(ctx->fd, ACRN_IOCTL_DESTROY_VDEV, dev); in vm_remove_hv_vdev()
670 error = ioctl(ctx->fd, ACRN_IOCTL_SET_PTDEV_INTR, &ptirq); in vm_set_ptdev_intx_info()
690 error = ioctl(ctx->fd, ACRN_IOCTL_RESET_PTDEV_INTR, &ptirq); in vm_reset_ptdev_intx_info()
701 error = ioctl(ctx->fd, ACRN_IOCTL_SET_VCPU_REGS, vcpu_regs); in vm_set_vcpu_regs()
712 error = ioctl(ctx->fd, ACRN_IOCTL_PM_GET_CPU_STATE, state_buf); in vm_get_cpu_state()
723 error = ioctl(ctx->fd, ACRN_IOCTL_VM_INTR_MONITOR, intr_buf); in vm_intr_monitor()
734 error = ioctl(ctx->fd, ACRN_IOCTL_IOEVENTFD, args); in vm_ioeventfd()
745 error = ioctl(ctx->fd, ACRN_IOCTL_IRQFD, args); in vm_irqfd()