Lines Matching refs:hostfd
105 int hostfd; member
910 static int usb_host_open(USBHostDevice *s, libusb_device *dev, int hostfd) in usb_host_open() argument
937 trace_usb_host_open_hostfd(hostfd); in usb_host_open()
939 rc = libusb_wrap_sys_device(ctx, hostfd, &s->dh); in usb_host_open()
943 s->hostfd = hostfd; in usb_host_open()
967 if (hostfd && libusb_speed == 0) { in usb_host_open()
975 int rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL); in usb_host_open()
1088 if (s->hostfd != -1) { in usb_host_close()
1089 close(s->hostfd); in usb_host_close()
1090 s->hostfd = -1; in usb_host_close()
1170 s->hostfd = -1; in usb_host_realize()