Searched refs:ioctl (Results 1 - 21 of 21) sorted by relevance

/gem5/src/cpu/kvm/
H A Ddevice.hh114 int ioctl(int request, long p1) const;
115 int ioctl(int request, void *p1) const { function in class:KvmDevice
116 return ioctl(request, (long)p1);
118 int ioctl(int request) const { function in class:KvmDevice
119 return ioctl(request, 0L);
H A Ddevice.cc43 #include <sys/ioctl.h>
72 if (ioctl(KVM_GET_DEVICE_ATTR, &dattr) == -1) {
92 if (ioctl(KVM_SET_DEVICE_ATTR, &dattr) == -1) {
112 return ioctl(KVM_HAS_DEVICE_ATTR, &dattr) == 0;
119 KvmDevice::ioctl(int request, long p1) const function in class:KvmDevice
123 return ::ioctl(fd, request, p1);
H A Dvm.hh61 * @defgroup KvmIoctl KVM low-level ioctl interface.
221 * Main VM ioctl interface.
226 * @return -1 on error (error number in errno), ioctl dependent
229 int ioctl(int request, long p1) const;
230 int ioctl(int request, void *p1) const { function in class:Kvm
231 return ioctl(request, (long)p1);
233 int ioctl(int request) const { function in class:Kvm
234 return ioctl(request, 0L);
340 * @note This ioctl is usually only used if the interrupt
503 * KVM VM ioctl interfac
512 int ioctl(int request, void *p1) const { function in class:KvmVM
515 int ioctl(int request) const { function in class:KvmVM
[all...]
H A Dperfevent.hh251 * @warning This ioctl has some pretty bizarre semantics. It seems
338 * @return -1 on error (error number in errno), ioctl dependent
347 * PerfEvent ioctl interface.
352 * @return -1 on error (error number in errno), ioctl dependent
355 int ioctl(int request, long p1);
356 int ioctl(int request, void *p1) { return ioctl(request, (long)p1); } function in class:PerfKvmCounter
357 int ioctl(int request) { return ioctl(request, 0L); } function in class:PerfKvmCounter
H A Dvm.cc45 #include <sys/ioctl.h>
73 apiVersion = ioctl(KVM_GET_API_VERSION);
77 vcpuMMapSize = ioctl(KVM_GET_VCPU_MMAP_SIZE);
201 if (ioctl(KVM_GET_SUPPORTED_CPUID, (void *)&cpuid) == -1) {
233 if (ioctl(KVM_GET_MSR_INDEX_LIST, (void *)&msrs) == -1) {
267 int ret = ioctl(KVM_CHECK_EXTENSION, extension);
269 panic("KVM: ioctl failed when checking for extension\n");
274 Kvm::ioctl(int request, long p1) const function in class:Kvm
278 return ::ioctl(kvmFD, request, p1);
286 vmFD = ioctl(KVM_CREATE_V
577 KvmVM::ioctl(int request, long p1) const function in class:KvmVM
[all...]
H A Dperfevent.cc41 #include <sys/ioctl.h>
111 if (ioctl(PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP) == -1)
118 if (ioctl(PERF_EVENT_IOC_DISABLE, PERF_IOC_FLAG_GROUP) == -1)
125 if (ioctl(PERF_EVENT_IOC_PERIOD, &period) == -1)
132 if (ioctl(PERF_EVENT_IOC_REFRESH, refresh) == -1)
225 PerfKvmCounter::ioctl(int request, long p1) function in class:PerfKvmCounter
228 return ::ioctl(fd, request, p1);
H A Dbase.hh557 * vCPU ioctl interface.
562 * @return -1 on error (error number in errno), ioctl dependent
565 int ioctl(int request, long p1) const;
566 int ioctl(int request, void *p1) const { function in class:BaseKvmCPU
567 return ioctl(request, (long)p1);
569 int ioctl(int request) const { function in class:BaseKvmCPU
570 return ioctl(request, 0L);
683 /** Execute the KVM_RUN ioctl */
H A Dbase.cc43 #include <sys/ioctl.h>
830 if (ioctl(KVM_NMI) == -1)
838 if (ioctl(KVM_INTERRUPT, (void *)&interrupt) == -1)
845 if (ioctl(KVM_GET_REGS, &regs) == -1)
852 if (ioctl(KVM_SET_REGS, (void *)&regs) == -1)
859 if (ioctl(KVM_GET_SREGS, &regs) == -1)
866 if (ioctl(KVM_SET_SREGS, (void *)&regs) == -1)
873 if (ioctl(KVM_GET_FPU, &state) == -1)
880 if (ioctl(KVM_SET_FPU, (void *)&state) == -1)
893 if (ioctl(KVM_SET_ONE_RE
1179 BaseKvmCPU::ioctl(int request, long p1) const function in class:BaseKvmCPU
[all...]
H A Dx86_cpu.cc1460 if (ioctl(KVM_SET_CPUID2, (void *)&cpuid) == -1)
1480 if (ioctl(KVM_SET_MSRS, (void *)&msrs) == -1)
1500 if (ioctl(KVM_GET_MSRS, (void *)&msrs) == -1)
1562 if (ioctl(KVM_GET_DEBUGREGS, &regs) == -1)
1573 if (ioctl(KVM_SET_DEBUGREGS, (void *)&regs) == -1)
1583 if (ioctl(KVM_GET_XCRS, &regs) == -1)
1590 if (ioctl(KVM_SET_XCRS, (void *)&regs) == -1)
1597 if (ioctl(KVM_GET_XSAVE, &xsave) == -1)
1604 if (ioctl(KVM_SET_XSAVE, (void *)&xsave) == -1)
1612 if (ioctl(KVM_GET_VCPU_EVENT
[all...]
/gem5/src/gpu-compute/
H A Dcl_driver.hh57 int ioctl(ThreadContext *tc, unsigned req);
H A Dcl_driver.cc106 ClDriver::ioctl(ThreadContext *tc, unsigned req) function in class:ClDriver
258 fatal("ClDriver: bad ioctl %d\n", req);
/gem5/src/sim/
H A Demul_driver.hh49 * Currently only open(), ioctl(), and mmap() calls are supported, but other
80 * Abstract method, invoked when the user program calls ioctl() on
83 * @return The return code for the ioctl, or the negation of the errno
86 virtual int ioctl(ThreadContext *tc, unsigned req) = 0;
H A Dsyscall_emul.hh78 #include <sys/ioctl.h>
674 /// Target ioctl() handler. For the most part, programs call ioctl()
688 DPRINTF_SYSCALL(Verbose, "ioctl(%d, 0x%x, ...)\n", tgt_fd, req);
697 return emul_driver->ioctl(tc, req);
717 status = ioctl(sfdp->getSimFD(), req, conf_arg.bufferPtr());
740 status = ioctl(sfdp->getSimFD(), req, req_arg.bufferPtr());
752 warn("Unsupported ioctl call (return ENOTTY): ioctl(%d, 0x%x, ...) @ \n",
836 * descriptor for subsequent ioctl o
[all...]
/gem5/src/arch/arm/kvm/
H A Dbase_cpu.cc125 // calling the ioctl with a struct size of 0. The kernel will
150 if (ioctl(KVM_ARM_VCPU_INIT, (void *)&init) == -1)
157 if (ioctl(KVM_GET_REG_LIST, (void *)&regs) == -1) {
H A Darm_cpu.cc371 if (ioctl(KVM_ARM_VCPU_INIT, (void *)&init) == -1)
449 if (ioctl(KVM_GET_REG_LIST, (void *)&regs) == -1) {
/gem5/ext/testlib/
H A Dterminal.py111 fcntl.ioctl(0, termios.TIOCGWINSZ,
115 # It's possible that in sandboxed environments the above ioctl is not
/gem5/src/base/
H A Dpollevent.cc31 #include <sys/ioctl.h>
/gem5/src/dev/net/
H A Dethertap.cc55 #include <sys/ioctl.h>
415 if (ioctl(fd, TUNSETIFF, (void *)&ifr) < 0)
/gem5/src/dev/serial/
H A Dterminal.cc48 #include <sys/ioctl.h>
/gem5/util/tap/
H A Dtap.cc43 #include <sys/ioctl.h>
/gem5/src/base/vnc/
H A Dvncserver.cc45 #include <sys/ioctl.h>

Completed in 45 milliseconds