Searched refs:hostfd (Results 1 – 6 of 6) sorted by relevance
/openbmc/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 | 149 gdb_do_syscall(complete, "close,%x", (uint32_t)gf->hostfd); in gdb_close() 156 (uint32_t)gf->hostfd, (uint64_t)buf, (uint64_t)len); in gdb_read() 163 (uint32_t)gf->hostfd, (uint64_t)buf, (uint64_t)len); in gdb_write() 170 (uint32_t)gf->hostfd, off, (uint32_t)gdb_whence); in gdb_lseek() 176 gdb_do_syscall(complete, "isatty,%x", (uint32_t)gf->hostfd); in gdb_isatty() 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() [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()
|
/openbmc/qemu/include/semihosting/ |
H A D | guestfd.h | 29 int hostfd; member 78 void associate_guestfd(int guestfd, int hostfd);
|
/openbmc/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 | 315 usb_host_open_hostfd(int hostfd) "hostfd %d"
|