Lines Matching refs:kqemu_fd
72 HANDLE kqemu_fd = KQEMU_INVALID_FD; variable
76 int kqemu_fd = KQEMU_INVALID_FD; variable
175 kqemu_fd = CreateFile(KQEMU_DEVICE, GENERIC_WRITE | GENERIC_READ, in kqemu_init()
179 if (kqemu_fd == KQEMU_INVALID_FD) { in kqemu_init()
185 kqemu_fd = open(KQEMU_DEVICE, O_RDWR); in kqemu_init()
186 if (kqemu_fd == KQEMU_INVALID_FD) { in kqemu_init()
194 DeviceIoControl(kqemu_fd, KQEMU_GET_VERSION, NULL, 0, in kqemu_init()
197 ioctl(kqemu_fd, KQEMU_GET_VERSION, &version); in kqemu_init()
232 ret = DeviceIoControl(kqemu_fd, KQEMU_INIT, &kinit, sizeof(kinit), in kqemu_init()
235 ret = ioctl(kqemu_fd, KQEMU_INIT, &kinit); in kqemu_init()
240 kqemu_closefd(kqemu_fd); in kqemu_init()
241 kqemu_fd = KQEMU_INVALID_FD; in kqemu_init()
311 ret = DeviceIoControl(kqemu_fd, KQEMU_MODIFY_RAM_PAGES, in kqemu_modify_page()
316 ret = ioctl(kqemu_fd, KQEMU_MODIFY_RAM_PAGES, in kqemu_modify_page()
355 ret = DeviceIoControl(kqemu_fd, KQEMU_SET_PHYS_MEM, in kqemu_set_phys_mem()
360 ret = ioctl(kqemu_fd, KQEMU_SET_PHYS_MEM, kphys_mem); in kqemu_set_phys_mem()
760 if (DeviceIoControl(kqemu_fd, KQEMU_EXEC, in kqemu_cpu_exec()
769 ioctl(kqemu_fd, KQEMU_EXEC, kenv); in kqemu_cpu_exec()
921 CancelIo(kqemu_fd); in kqemu_cpu_interrupt()