Searched refs:hostfd (Results 1 – 6 of 6) sorted by relevance
/qemu/semihosting/ |
H A D | guestfd.c | 35 console_in_gf.hostfd = 0; in qemu_semihosting_guestfd_init() 37 console_out_gf.hostfd = 2; in qemu_semihosting_guestfd_init() 127 void associate_guestfd(int guestfd, int hostfd) in associate_guestfd() argument 133 gf->hostfd = hostfd; in associate_guestfd()
|
H A D | syscalls.c | 183 (uint32_t)gf->hostfd, (uint64_t)addr); in gdb_fstat() 306 if (gf->hostfd != STDIN_FILENO && in host_close() 307 gf->hostfd != STDOUT_FILENO && in host_close() 308 gf->hostfd != STDERR_FILENO && in host_close() 309 close(gf->hostfd) < 0) { in host_close() 327 ret = RETRY_ON_EINTR(read(gf->hostfd, ptr, len)); in host_read() 348 ret = write(gf->hostfd, ptr, len); in host_write() 365 ret = lseek(gf->hostfd, ret, whence); in host_lseek() 379 int ret = isatty(gf->hostfd); in host_isatty() 388 if (fstat(gf->hostfd, &buf) < 0) { in host_flen() [all …]
|
H A D | arm-compat-semi.c | 379 int hostfd; in do_common_semihosting() local 402 hostfd = STDIN_FILENO; in do_common_semihosting() 404 hostfd = STDOUT_FILENO; in do_common_semihosting() 406 hostfd = STDERR_FILENO; in do_common_semihosting() 409 associate_guestfd(ret, hostfd); in do_common_semihosting()
|
/qemu/include/semihosting/ |
H A D | guestfd.h | 29 int hostfd; member 78 void associate_guestfd(int guestfd, int hostfd);
|
/qemu/hw/usb/ |
H A D | host-libusb.c | 105 int hostfd; member 948 static int usb_host_open(USBHostDevice *s, libusb_device *dev, int hostfd) in usb_host_open() argument 975 trace_usb_host_open_hostfd(hostfd); in usb_host_open() 977 rc = libusb_wrap_sys_device(ctx, hostfd, &s->dh); in usb_host_open() 981 s->hostfd = hostfd; in usb_host_open() 1005 if (hostfd && libusb_speed == 0) { in usb_host_open() 1013 rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL); in usb_host_open() 1126 if (s->hostfd != -1) { in usb_host_close() 1127 close(s->hostfd); in usb_host_close() 1128 s->hostfd = -1; in usb_host_close() [all …]
|
H A D | trace-events | 314 usb_host_open_hostfd(int hostfd) "hostfd %d"
|